I'm not currently in a development phase, but I'd be happy to have a look at your modifications. And it's good to know that ZenphotoPress is evolving thanks to the effort of the people using it
Whenever I try to add a photo, it's able to bring up the pop-up menu and I can pick an album but when I select the individual images no thumbnails show.
And when I click on the text where the thumbnail should be there's a problem with the link. It directly links to this URL site.com/zenphoto/1.jpg and I get a 404 error message on my website.
So my question is if I have uploaded photos and created an album on my ZenPhoto site should the dialog box in wordpress be adding thumbnails and images from that part of my site server? Incidentally, I created the zenphoto db on the same db as my blog uses.
I'm sure this can be resolved with minimal fuss (at least I hope) so if anyone out there would care to enlighten me I'd be truly grateful. Specifics are encouraged since I am not the most high-tech web user.
The db should not be a problem. All images used by ZenphotoPress are taken straight from Zenphoto, so you should see the URL of your Zenphoto gallery in the first part of the URLs generated by ZenphotoPress.
Usually issues like this one are related to mod_rewrite: have a check in the past discussions here on the forum and see if you can find some hints.
Failing that, try adding some details and I'll se if I can understand what the problem is.
Hi there. I don't seem to be able to get this to work.
After I install the plugin in wordpress and go to options. I click the ZenPressed option and it tries to go to a page that doesn't exist in a directory that doesn't exist.
wp-admin/zenphotopress/zp_config.php
I've check the ftp and neither the folder or zp_config.php file is in the admin. The zp_config.php file is only where the readme said to put it in the wp-plugins folder.
Thanks Simbul. I did read through those earlier posts about the mod_rewrite when I encountered that problem and I tried it both ways, checking the mod_rewrite box and unchecking it. Both ways didn't matter. I still can't see thumbnails in my blog posts and the text link that shows in the blog post, when I click on it, takes me to a 404 Error on my own site.
Any other idea of the problem? I'm trying to think of any more details to give a better understanding of the problem. Currently my zenfolder sits on my server at http://www.slapclap.com/zenphoto/ - that's in the root directory. How do I get Zenphotopress to pull from that url and also create thumbnails? When I choose a gallery in a blog post and then click on the image all I get is the text image link.
@Michael: this is strange. Did you check the url of the (supposed) images in the ZenphotoPress popup? This could be useful in understanding what's going on. Another source of info is debug mode: to turn it on have a look at the first lines of code in classes.php, there's a pretty obvious place where you should write ZP_E_ALL.
@mrbrindle: this is strange too. The url you're reporting should actually be created by Wordpress, so it's likely that the problem is on its part. Actually, the url is right, the only problem is you should have "wp-content/plugins" instead of "wp-admin". Btw, I assume you meant wp-content, since the wp-plugins doesn't exist in Wordpress
Could this be due to my gallery configuration? The website URL field is filled out on that page in admin config menu. If not how can I correct this and would it also address my thumbnails problem?
I will have to look further into the debug mode for the classes.php doc. I opened it but I guess it wasn't obvious enough for me to tell where to include the ZP_E_ALL code.
Hey thanks again for the tips, suggestions. I feel closer to a resolution.
@Michael: well, the URL is definitely wrong and this is most likely what's been causing your thumbnails not to show up. As to why it is so... I have no clue, at the moment. By the way, what do you mean with "custom link"? As for the debug code, I should have been more specific: open the classes.php file and change the following line `$zp_eh = new ZenphotoPressErrorHandler(ZP_E_FATAL); // To debug use ZP_E_ALL` to `$zp_eh = new ZenphotoPressErrorHandler(ZP_E_ALL); // To debug use ZP_E_ALL`
@dustybin: what do you see when you enter the proxy link in the browser? Since no album is shown, the problem is most likely to be in the code returned by the proxy call.
Uhm. The output looks good to me. Ok, next suspect on the list: the fact that the call is working when done in the browser does not actually ensure it is done correctly by PHP.
Actually, it just dawned on me that your problem could be related to the fact that your Zenphoto directory is password-protected: when you simulate the proxy call through the browser you're actually supplying the credentials yourself, but poor PHP does not know them. Let me know (if you find a way to test this theory without compromising the security of your server).
Hi Simbul, again thanks for the help. I figured out the problem and it was an easy one that was easy to correct.
I went into Settings in my Wordpress Dashboard and changed the Zenphotogallery URL to /zenphoto. Before it also included my site url which screwed up the thumbnails and links in the posts.
Incidentally, the example URl in that field in the Settings menu suggests using your full URL but /zenphoto does the trick.
Strange. The setting is actually meant to work with the full URL. Would you mind providing me with some more info on your configuration? I'd like to understand this strange behavior. You can reach me at webmaster -AT- simbul -POINT- net, if you want
And in my post it seems to ignore the sort and the number of photos to show. It could be just something simple, but I cannot figure it out for the life of me.
Forgot to mention I'm running Wordpress 2.6.3 and latest zenphoto. Both on seperate databases. Running PHP 5+.
The plugin can grab photos, not a problem, just the way and amount I would like to show isn't working.
First, thanks for a great plugin. I used it in an early version of my family's personal blog and am trying to use the new version in an updated version of the blog.
Here's the problem:
When I click the ZP menu button, the menu shows my galleries as it should. But none of the thumbnails show -- just links in boxes. If I click one of those links, it puts the link text into the body of my post. Clicking the link takes me to the proper photo and gallery.
So I tried using the shortcode for a full gallery to see if there's a difference. The shortcode creates a matrix of links -- no thumbnails again -- to each photo in the gallery. Clicking any link takes me to the proper gallery.
The URL of the thumbnail that's not showing up is this, according to Firefox's Element Properties:
The filename of the photo, DSCF0118.jpg, is the right name for the full sized photo.
I'm using PHP 5 and the most recent versions of WP, ZenPhoto and ZenPhotoPress.
Poking around in FTP reveals this:
The Album/(album name) structure is working as it should. All folders have proper permissions. Inside my test album are the 7 photos I uploaded. There are no thumbnails in the test folder. There are thumbnails in the cache/test folder.
ZP's admin for the "test" gallery shows thumbnails for each image. I edited one thumbnail's size to make sure.
Where should the thumbnails be, and what am I doing wrong?
Many thanks, Dave PS: Simbul -- I found this forum after sending you an e-mail about this topic. Ignore the e-mail, and my apologies.
Hi, I'm having a problem with no galleries showing up in my dialog. I am aware this has been previously posted here but the solutions (upgrading to php5) that worked for others don't seem to be working for me (already have php5).
Here is info when pasting the proxycall address in the browser:
Notice: Use of undefined constant REQUEST_METHOD - assumed 'REQUEST_METHOD' in C:\wamp\www\wordpress2-7\wp-content\plugins\zenphotopress\zenphoto_bridge.php on line 20 a:2:{i:0;a:3:{s:5:"value";s:1:"1";s:4:"name";s:11:"1st Gallery";s:8:"parentid";N;}i:1;a:3:{s:5:"value";s:1:"2";s:4:"name";s:12:"Various pics";s:8:"parentid";N;}}
I reckon from your path that you're on a Windows webserver. I'm not sure anyone ever tried installing ZPP on Windows, so your issue may be related to this.
Anyway, the response to the proxy call is correct. The problem is, the notice above it makes it impossible for ZPP to parse it correctly. You can try disabling the notice in your webserver - which I guess you can do, being on a local IP.
@ahakka: what do you mean "same problem"? What I meant was, do you see the album names correctly in Zenphoto even though you don't see them correctly in ZenphotoPress?
Anyway, from your statement on Zenphoto 1.2 I assume names are ok on that side. Is also Wordpress is having some problems with chinese characters, or is it only ZPP?
Hi Simbul. I am running Zenphoto 1.1 and Wordpress 2.3 linked together by your excellent plugin. Will ZenphotoPress 1.5 work with Wordpress 2.7 and Zenphoto 1.2.2 ? Basically can I upgrade everything with no known issues?
I upgraded WordPress to 2.7.1 before installing ZenPhotoPress, so I don't know if it worked before. I tried setting my path to http://definedbyeye.com/wedding/zenphoto and /wedding/zenphoto. Both WordPress and Zenphoto are in the directory /wedding (bad of me, I know...) so I'm assuming that has something to do with it.
Which admin file are you trying to include in zp_config? And is ABSPATH supposed to be defined somewhere? I tried including both the WordPress and the Zenphoto admin.php's and either I did it wrong or neither worked.
Thanks for any help you have in pointing me in the right direction.
Your issue may be solved in the latest nightly build: try downloading it from http://downloads.wordpress.org/plugin/zenphotopress.zip and installing it. Let me know if it works: I had no chance to test it since I can't easily reproduce the environment you're in.
Hi everyone. First I want to say thank you to Simbul for making such an easy to understand/use plug-in. Now for the issue I'm having. I've searched the forums but did not find anything so forgive me if I've missed it. The installation of the plug-in went perfectly and it's everything is working fine. My issue is with display aesthetics. Using the widget/badge, I would like to be able to display the four latest images in my sidebar as a 2x2 block instead of the 1x4 it is now. How would I go about making that change?
Comments
Whenever I try to add a photo, it's able to bring up the pop-up menu and I can pick an album but when I select the individual images no thumbnails show.
And when I click on the text where the thumbnail should be there's a problem with the link. It directly links to this URL site.com/zenphoto/1.jpg and I get a 404 error message on my website.
So my question is if I have uploaded photos and created an album on my ZenPhoto site should the dialog box in wordpress be adding thumbnails and images from that part of my site server? Incidentally, I created the zenphoto db on the same db as my blog uses.
I'm sure this can be resolved with minimal fuss (at least I hope) so if anyone out there would care to enlighten me I'd be truly grateful. Specifics are encouraged since I am not the most high-tech web user.
All images used by ZenphotoPress are taken straight from Zenphoto, so you should see the URL of your Zenphoto gallery in the first part of the URLs generated by ZenphotoPress.
Usually issues like this one are related to mod_rewrite: have a check in the past discussions here on the forum and see if you can find some hints.
Failing that, try adding some details and I'll se if I can understand what the problem is.
After I install the plugin in wordpress and go to options. I click the ZenPressed option and it tries to go to a page that doesn't exist in a directory that doesn't exist.
wp-admin/zenphotopress/zp_config.php
I've check the ftp and neither the folder or zp_config.php file is in the admin. The zp_config.php file is only where the readme said to put it in the wp-plugins folder.
Any ideas?
Any other idea of the problem? I'm trying to think of any more details to give a better understanding of the problem. Currently my zenfolder sits on my server at http://www.slapclap.com/zenphoto/ - that's in the root directory. How do I get Zenphotopress to pull from that url and also create thumbnails? When I choose a gallery in a blog post and then click on the image all I get is the text image link.
@mrbrindle: this is strange too. The url you're reporting should actually be created by Wordpress, so it's likely that the problem is on its part. Actually, the url is right, the only problem is you should have "wp-content/plugins" instead of "wp-admin".
Btw, I assume you meant wp-content, since the wp-plugins doesn't exist in Wordpress
That's a good question regarding the url of the images and I noticed the problem, although not exactly sure how to fix it. The bad URL begins with http://slapclap.com/www.slapclap.com/zenphoto but when I do a custom link (which links correctly) it is http://slapclap.com/zenphoto.
Could this be due to my gallery configuration? The website URL field is filled out on that page in admin config menu. If not how can I correct this and would it also address my thumbnails problem?
I will have to look further into the debug mode for the classes.php doc. I opened it but I guess it wasn't obvious enough for me to tell where to include the ZP_E_ALL code.
Hey thanks again for the tips, suggestions. I feel closer to a resolution.
My zenphoto installation works perfectly, with mod-rewrite turned on or off.
I am unable to get the albums to show on Zenphotopress editor.
Here is a snapshot with debug turned on:
http://empire.ispeeds.net/~subx/Picture 1.png
The proxy link works ok, and there doesnt seem to be any errors reported?
Here is my php configuration, i have exported it as .html
because my server isnt open to the public yet:
http://empire.ispeeds.net/~subx/info.php.html
Hope you can help
By the way, what do you mean with "custom link"?
As for the debug code, I should have been more specific: open the classes.php file and change the following line
`$zp_eh = new ZenphotoPressErrorHandler(ZP_E_FATAL); // To debug use ZP_E_ALL`
to
`$zp_eh = new ZenphotoPressErrorHandler(ZP_E_ALL); // To debug use ZP_E_ALL`
@dustybin: what do you see when you enter the proxy link in the browser? Since no album is shown, the problem is most likely to be in the code returned by the proxy call.
This is what shows when i enter the proxy link:
a:5:{i:0;a:3:{s:5:"value";s:1:"4";s:4:"name";s:21:"BBQ Birthday May 2008";s:8:"parentid";N;}i:1;a:3:{s:5:"value";s:1:"2";s:4:"name";s:14:"Christmas 2006";s:8:"parentid";N;}i:2;a:3:{s:5:"value";s:1:"5";s:4:"name";s:14:"Halloween 2006";s:8:"parentid";N;}i:3;a:3:{s:5:"value";s:1:"1";s:4:"name";s:6:"Random";s:8:"parentid";N;}i:4;a:3:{s:5:"value";s:1:"3";s:4:"name";s:13:"Thailand 2007";s:8:"parentid";N;}}
Ok, next suspect on the list: the fact that the call is working when done in the browser does not actually ensure it is done correctly by PHP.
Actually, it just dawned on me that your problem could be related to the fact that your Zenphoto directory is password-protected: when you simulate the proxy call through the browser you're actually supplying the credentials yourself, but poor PHP does not know them.
Let me know (if you find a way to test this theory without compromising the security of your server).
That was it!!!!! I turned off the password protected directory, and it works perfectly! :-)
Many thanks for great plugin :-)
I went into Settings in my Wordpress Dashboard and changed the Zenphotogallery URL to /zenphoto. Before it also included my site url which screwed up the thumbnails and links in the posts.
Incidentally, the example URl in that field in the Settings menu suggests using your full URL but /zenphoto does the trick.
Would you mind providing me with some more info on your configuration? I'd like to understand this strange behavior.
You can reach me at webmaster -AT- simbul -POINT- net, if you want
first off great plugin! However I have a slight issue with the shortcodes, I'm using the following line:
[zenphotopress] sort=latest number=5 album=0 [/zenphotopress]
And in my post it seems to ignore the sort and the number of photos to show. It could be just something simple, but I cannot figure it out for the life of me.
Forgot to mention I'm running Wordpress 2.6.3 and latest zenphoto. Both on seperate databases. Running PHP 5+.
The plugin can grab photos, not a problem, just the way and amount I would like to show isn't working.
`[zenphotopress sort=latest number=5 album=0]`
(You don't need a closing tag, by the way)
First, thanks for a great plugin. I used it in an early version of my family's personal blog and am trying to use the new version in an updated version of the blog.
Here's the problem:
When I click the ZP menu button, the menu shows my galleries as it should. But none of the thumbnails show -- just links in boxes. If I click one of those links, it puts the link text into the body of my post. Clicking the link takes me to the proper photo and gallery.
So I tried using the shortcode for a full gallery to see if there's a difference. The shortcode creates a matrix of links -- no thumbnails again -- to each photo in the gallery. Clicking any link takes me to the proper gallery.
The URL of the thumbnail that's not showing up is this, according to Firefox's Element Properties:
http://www.(mysite).org/zenphoto/albums/zp-core/i.php?a=test&i=DSCF0118.JPG&s=thumb
The filename of the photo, DSCF0118.jpg, is the right name for the full sized photo.
I'm using PHP 5 and the most recent versions of WP, ZenPhoto and ZenPhotoPress.
Poking around in FTP reveals this:
The Album/(album name) structure is working as it should. All folders have proper permissions. Inside my test album are the 7 photos I uploaded. There are no thumbnails in the test folder. There are thumbnails in the cache/test folder.
ZP's admin for the "test" gallery shows thumbnails for each image. I edited one thumbnail's size to make sure.
Where should the thumbnails be, and what am I doing wrong?
Many thanks,
Dave
PS: Simbul -- I found this forum after sending you an e-mail about this topic. Ignore the e-mail, and my apologies.
This URL is a little weird: the "albums" part shouldn't be there.
What did you put in the configuration for the Zenphoto path?
Also, try inserting in the browser both the URL you provided above and the same URL without "albums/" and let me know what you see.
Many thanks for the quick help, and the great plugin!
i running:
wordpress 2.7
mysql 5.1
zenphoto 1.2.2
i installed zenphotopress 1.5.2, but can't display chinese. i get many ???? in the albums select drop-down.
how to ?
mysql charaterset is utf-8.
zenphoto 1.2 display chinese is ok.
any idea?
Below is info after enabling debugging:
INFO
PHP Version: 5.2.8
INFO
Current working directory: C:\wamp\www\wordpress2-7\wp-content\plugins\zenphotopress\tinymce
INFO
POST:
INFO
GET: Array ( [tinyMCE] => 1 [ver] => 20081129 )
INFO
ZenphotoProxy method: file_get_contents
INFO
ZenphotoProxy call: http://192.168.1.10/wp-content/plugins/zenphotopress/zenphoto_bridge.php?function=get_albums&admin_path=C:\\wamp\\www\\wordpress2-7/zenphoto/zp-core
Here is info when pasting the proxycall address in the browser:
Notice: Use of undefined constant REQUEST_METHOD - assumed 'REQUEST_METHOD' in C:\wamp\www\wordpress2-7\wp-content\plugins\zenphotopress\zenphoto_bridge.php on line 20
a:2:{i:0;a:3:{s:5:"value";s:1:"1";s:4:"name";s:11:"1st Gallery";s:8:"parentid";N;}i:1;a:3:{s:5:"value";s:1:"2";s:4:"name";s:12:"Various pics";s:8:"parentid";N;}}
Any ideas??
thanks
Anyway, the response to the proxy call is correct. The problem is, the notice above it makes it impossible for ZPP to parse it correctly. You can try disabling the notice in your webserver - which I guess you can do, being on a local IP.
Anyway, from your statement on Zenphoto 1.2 I assume names are ok on that side. Is also Wordpress is having some problems with chinese characters, or is it only ZPP?
I set the error reporting to all and clicked the ZP icon when editing a page. I get:
INFO
PHP Version: 5.1.6
INFO
Current working directory: /home/definedbyeye/public_html/wedding/wp-content/plugins/zenphotopress/tinymce
INFO
POST:
INFO
GET: Array ( [tinyMCE] => 1 [ver] => 20081129 )
INFO
ZenphotoProxy method: cURL
INFO
ZenphotoProxy call: http://definedbyeye.com/wedding/wp-content/plugins/zenphotopress/zenphoto_bridge.php?function=get_albums&admin_path=/home/definedbyeye/public_html/wedding/zenphoto/zp-core
I upgraded WordPress to 2.7.1 before installing ZenPhotoPress, so I don't know if it worked before. I tried setting my path to http://definedbyeye.com/wedding/zenphoto and /wedding/zenphoto. Both WordPress and Zenphoto are in the directory /wedding (bad of me, I know...) so I'm assuming that has something to do with it.
Which admin file are you trying to include in zp_config? And is ABSPATH supposed to be defined somewhere? I tried including both the WordPress and the Zenphoto admin.php's and either I did it wrong or neither worked.
Thanks for any help you have in pointing me in the right direction.
Let me know if it works: I had no chance to test it since I can't easily reproduce the environment you're in.