Simbul,
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;}}
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.
Hi,
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.
Simbul:
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.
http://www.(mysite).org/zenphoto/albums/zp-core/i.php?a=test&i=DSCF0118.JPG&s=thumb
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.
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).
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
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?
Hello! I am another member with a blank album list issue... I have two albums up at: http://definedbyeye.com/wedding/zenphoto/. My blog is up at: http://definedbyeye.com/wedding/. URLrewrite is currently disabled.
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.
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.