Particle Soft » Jump to Bottom
 

Knowledge Base
Quickly solve problems and get answers to frequently asked questions...

Article #20

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


Particle Gallery
The rating box only appears on certain images
Why does the box that allows users to rate images only appears on certain images?
I get an Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect error
SQL injection vulnerability in viewimage.php
What version of GD do I need?

Valid XHTML 1.0! Valid CSS!

Particle Soft   » Jump to Top