I don't knwo what i'm doing wrong here but when I'm writing a post with KPICASA_GALLERY(wout.schuth) in it, it won't show my picasa gallery but a totaly blanc message.
I am using PHP 5.2.4 and i have installed lightbox.
PHP safemode is off.
Thanx a lot already!
Wout Schuth
reis.anneschuth.nl
Hello,
I tried it on my test setup ( http://www.boloxe.com/techblog/?p=5 ) and it works fine here. Could you tell me which version of WP and kPicasa you're using?
Guillaume
Nice update, at least now i know what the problem is, thanks!
I get this
Error: your PHP configuration does not allow kPicasa Gallery to connect to Picasa Web Albums. Please ask your administrator to enable file_get_contents()
Now I can't change my php settings but I tried unsuccesfully to write around this "file_get_contents()" problem. There seems to be a solution though, I found this link.
By the way I am using WP 2.2.2 and kPicasa 0.0.3
Thanks a lot!
Maybe you could try to replace both lines where you have $data = file_get_contents($url); with:
$ph = fopen($url, 'r');
$data = '';
while (!feof($ph)) {
$data .= fread($ph, 8192);
}
fclose($ph);
Does that work?
Thanks for helping me.
I found out that fopen is not allowed by my server, see my phpinfo:
http://reis.anneschuth.nl/phpinfo.php
cURL is allowed so I found this piece of code:
if (function_exists('curl_init')) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
}
else {
@ini_set('allow_url_fopen', 1);
$data = file_get_contents($url);
}
Sadly it is not working for me and i don't know why :-(
Now I see on the page I made
KPICASA_GALLERY(myname)
I released a new version (0.0.4) which will try to use cURL if the configuration does not allow for file_get_content.
If that still doesn't work, unfortunately I don't know of any other way of doing a request to the Picasa server :(
Let me know how it goes.
Whauw, you are great!
It works!
Magic trick?
Thanks a lot, I won't bother you again :-)
No problem :)
If you like my plugin you could rate it and I would love if you would leave a comment on my blog (you'll find the information here: http://wordpress.org/extend/plugins/kpicasa-gallery/)
seller12
Member
Posted 1 year ago #
i have the same problem, it does'nt show any picture's. I also checked if my provider blocked fopen-command, and it does. But why wouldn't it work ???
you want to see: just goto http://www.thecorporate.nl
I have edited the php.ini with the right line's so it is a ridel to me. Please help.
seller12, "blocking url in fopen" means that your provider does not allow kPicasa to make a request to the Google servers. kPicasa has to connect to Google to download the list of albums and the pictures.
The output in the link you posted is definately not normal. Have you played with the files? If not, it's most likely your provider returning something weird.
Let me know.
seller12
Member
Posted 1 year ago #
Mhhh i have checked some settings, and i have added phpinfo to my server
http://www.thecorporate.nl/phpinfo.php
Jou can see that fopen is turned off, but the strange thing is that i have placed allow_url_fopen = On in my private.ini. But my server still does'nt accept the request ?
So i dont't get it :D
Not all servers allow you to overwrite those settings. I think that's what happening here.