Apparently, this plugin will not work under PHP 5.4. Such a pity!
Fatal error: Call-time pass-by-reference has been removed in /path/to/my/site/wp-content/plugins/gallery3-picker/proxy.php on line 243
Etienne Sky seems to be upgrading the old G3client plugin and combining it with Gallery3 Picker, and he seems to be doing a great job so far — which is PHP 5.4 compatible: https://github.com/etiennesky/g3client
]]>I tried this plugin on my subdirectory install of WordPress and it did not work. I got the “No pictures in this folder”. I tried a bunch of stuff but finally fixed it by editing wp-content/plugins/gallery3-picker/picker.php.
I changed the line:
$plugin_url = get_settings('home').'/wp-content/plugins/'.dirname(plugin_basename(__FILE__));
To the following:
$plugin_url = get_settings('siteurl').'/wp-content/plugins/'.dirname(plugin_basename(__FILE__));
And now I can pick images from my gallery3!
I don’t know if this module is still maintained, but hopefully this helps anyone with the same problem I had.
-s
]]>Hi there – just installed this plugin but not sure from where to obtain the API key. Thanks,
gabstero
]]>When I update the Gallery 3 settngs in WordPress I get the message:
Fatal error: Call to undefined function curl_init() in /var/www/…/wp-content/plugins/gallery3-picker/picker.php on line 411
Hi,
after choose the image I get an error “403 – Forbidden”.
I noticed a strange url:
http:…/media-upload.php?tab=gallery3_picker&post_id=0&gallery3_picker_id=103&
thumb=https://www.xxx.yy/gallery3/var/thumbs/image.jpg?m=1234567890
As you can see there is a ‘?’ before the last parameter. If I change this with a ‘&’ it’s work. I think Gallery3 add this parameter because the Rest mudule installed, but I’m not sure.
In /wp-content/plugins/gallery3-picker/gallery.js there is this function:
function fetchImage(data)
{
window.location = userSettings.url + 'wp-admin/media-upload.php?tab=gallery3_picker&post_id=' + post_id + '&gallery3_picker_id=' + data.id + '&thumb=' + data.thumb;
}
Inspecting data there are two properties:
id: #number#
thumb: #url with query e.g. http:…/gallery3/var/thumbs/image.jpg?m=1234567890#
A quick workaround could be change the function like this:
function fetchImage(data)
{
var url = data.thumb.split("?m=");
// window.location = userSettings.url + 'wp-admin/media-upload.php?tab=gallery3_picker&post_id=' + post_id + '&gallery3_picker_id=' + data.id + '&thumb=' + data.thumb;
window.location = userSettings.url + 'wp-admin/media-upload.php?tab=gallery3_picker&post_id=' + post_id + '&gallery3_picker_id=' + data.id + '&thumb=' + url[0];
}
From the url I extracted the path without the query. I did some tests and it works.
Is there a better solution?
Thank you very much.
]]>Hello, thanks for the cool plugin.
I’ve been trying to configure without any luck. After adding my gallery3 url and updating, I get sent to out to ‘wp-admin/options-general.php?page=picker.php&updated=true’, but I have multiple sites running on one install of WordPress (separate wp_tables running off the same core). So, upon clicking ‘update options’, I am being sent to the root install instead of ‘get_option(url)/wp-admin’.
I haven’t been able to modify the plugin code to make the configuration update. Do you have any advice?
Thanks very much for your time and efforts.
]]>Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected $end in XXX\wp-content\plugins\gallery3-picker\picker.php on line 599
Trying to activate this on an internal instance of WP running version 3.1
]]>I just installed this module, and it works perfectly in FF4.x (I don’t remember), but it doesn’t in IE9. Specifically, the “Gallery 3” tab shows up in the media picker, but I only see the “Loading…” text without seeing the tree load. I generally use FF, so not a big deal, but wanted to warn people out there.
]]>Just installed gallery3-picker version 0.9.5. Installation went ok but when attempting to configure, it wouldn’t run, complaining of php syntax errors in file picker.php.
In this file I found an inconsistency in the PHP start tags use. Many are written as <?php
but a few as just <?
. Since I have configured PHP on my server to recognize just the former, the code would bomb. I suspect that the same could happen to other users, depending on their PHP configuration.
So I changed the <?
tags to <?php
and everything works.
I really like the concept of this plugin, but it doesn’t work for me. I’ve got Gallery 3.0.1 and WordPress 3.1. I can see the Gallery3 tab, but it simply says “Loading…” and nothing shows up. No tree, no photos or anything. Any pointers in the right direction so that I can get it working?
Oh, and I don’t have guest access to REST enabled on my gallery, but my REST API key is correct.
]]>I’m trying to figure out this error…
I’m attempting to insert a photo into a post, but I’m unable to do so. I can see the tree, I can see all the thumbnails of the photos I’ve added to Gallery 3. When I click on a thumb, the next thing I see is a 404 error telling me the photo cannot be found.
]]>Help, I’m using the Gallery3 Picker (v0.9.5).
I can see the tree structure (directories) but can see any pictures.
Here is what I see in my WP error log:
12-Jan-2011 04:36:30] PHP Warning: Invalid argument supplied for foreach() in /home/*/public_html/wp-content/plugins/gallery3-picker/proxy.php on line 140
[12-Jan-2011 04:36:30] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/*/public_html/wp-content/plugins/gallery3-picker/proxy.php:140) in /home/*/public_html/wp-content/plugins/gallery3-picker/proxy.php on line 18
Any help greatly appreciated.
]]>It sounds like this is exactly the plugin I need, but what ever I try, it keeps telling me that the “Gallery3 REST API key incorrect.” While, of course, I’ve double checked the API key numerous times and have added a new, non-admin user to Gallery3 and tried it with the API key of this user, too – to no avail either … Tried it with guest access enabled and disabled …
Any suggestions?
Thanks!
Franz