Hello,
some minutes ago i had to patch my local "lib/plugin/PhotoAlbum.php" (in 1.3.9) .
The problem was, that , although my server globals are allow_url_fopen=1 , within the function fromFile it was set to 0 (and i do know why: the .htaccess sets this to false...)
I did patch the function fromFile with this method:
at the beginning I save the old value and set it to true:
$old_value=ini_get('allow_url_fopen');
ini_set('allow_url_fopen',1);
and at the end of the function i set it back to the old value:
ini_set('allow_url_fopen',$old_value);
This works now, the error "Wrong server setting: allow_url_fopen set to Off" isnt shown anymore, but is this really the way to get the PhotoAlbum work ?
Maybe this is something, you might have missed while testing.
Bye Andre
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
some minutes ago i had to patch my local "lib/plugin/PhotoAlbum.php" (in 1.3.9) .
The problem was, that , although my server globals are allow_url_fopen=1 , within the function fromFile it was set to 0 (and i do know why: the .htaccess sets this to false...)
I did patch the function fromFile with this method:
at the beginning I save the old value and set it to true:
$old_value=ini_get('allow_url_fopen');
ini_set('allow_url_fopen',1);
and at the end of the function i set it back to the old value:
ini_set('allow_url_fopen',$old_value);
This works now, the error "Wrong server setting: allow_url_fopen set to Off" isnt shown anymore, but is this really the way to get the PhotoAlbum work ?
Maybe this is something, you might have missed while testing.
Bye Andre
we have now a workaround library lib/HttpClient.php
I'll use this for the Photoalbum plugin also in the next release.
fixed in current CVS (and more)
weblocation argument is now optional on local fs,
no lib/HttpClient.php workaround yet.