|
Question:
I get an Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect error
Answer:
If your thumbnails are not appearing and you look at the file you may get an error which looks something like:
Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 23145 is not allowed to access /tmp/nkt7pQ owned by uid 250 in /complete/generators/thumbnail.php on line 40
This is caused by running PHP in safe mode. Version 1.0.2 onwards has support to handle this.
Or to manually patch it, find:
if (ini_get("allow_url_fopen") == 0){ default_thumb(); }
And below add:
if (ini_get("safe_mode") == 1){ default_thumb(); }
In both:
generators/thumbnail.php
generators/preview.php
Software:
Particle Gallery
Versions:
1.0.0 - 1.0.1
|