Title: PHP Warning
Last modified: August 31, 2016

---

# PHP Warning

 *  Resolved [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * (@maigret)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-warning-78/)
 * Hi Jordy,
 * we have this define in wp-config.php :
 *     ```
       /** Define media folder */
       define('UPLOADS', 'files');
       ```
   
 * And it seems to break something as we can see in log server:
 * [Fri Jan 15 07:31:39.806307 2016] [fcgid:warn] [pid 5629] [client IP:39058] mod_fcgid:
   stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(/
   var/www/clients/clientXX/webXXX/web/../wp-content/uploads/2011/01/afnic-logo-
   300@2x.png) is not within the allowed path(s): (/var/www/clients/clientXX/webXXX/
   web:/var/www/clients/clientXX/webXXX/private:/var/www/clients/clientXX/webXXX/
   tmp:/var/www/seo-camp.org/web:/srv/www/seo-camp.org/web:/usr/share/php5:/usr/
   share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /
   var/www/clients/clientXX/webXXX/web/wp-content/plugins/wp-retina-2x/wp-retina-
   2x.php on line 569
 * For security reasons, I have replaced numbers by XXX. The plugin is looking for
   a file which is not located in default uploads folder.
 * Thanks!
 * [https://wordpress.org/plugins/wp-retina-2x/](https://wordpress.org/plugins/wp-retina-2x/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-78/#post-6946012)
 * The plugin works with customized folder such as this. It seems like the problem
   here that you have a PHP restriction here and the plugin is not allowed to access
   the folder, then the plugin would look for more folders where it will also fail
   to see the files.
 * Can you check this thread: [http://stackoverflow.com/questions/1846882/open-basedir-restriction-in-effect-file-is-not-within-the-allowed-paths](http://stackoverflow.com/questions/1846882/open-basedir-restriction-in-effect-file-is-not-within-the-allowed-paths).
   That could fix this issue 🙂
 *  Thread Starter [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * (@maigret)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-78/#post-6946014)
 * Thanks for you answer which help me understand the behavior. I’ll check my server
   with my admin sys. 🙂
 * P.S : can you edit my post and removed the domain URL?
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-78/#post-6946015)
 * Sorry, I can’t edit post, but maybe you can edit since it’s yours? Or maybe we
   can try to add a modlook in the tags and a moderator will have a look a it.
 *  Thread Starter [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * (@maigret)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-78/#post-6946016)
 * I can’t edit too. Thanks for tagging it. I’ll mark this topic as resolved since
   it’s not a bug in your useful plugin! FYI, we recommend it in our premium WordPress
   themes. 😉
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-78/#post-6946017)
 * Thanks a lot for recommending it! I added the tag modlook but it’s gone… I will
   re-add it again 🙂
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-78/#post-6946018)
 * > P.S : can you edit my post and removed the domain URL?
 * Stock answer below:
 * > I’m sorry, but that’s only done in extreme cases.
   > [http://codex.wordpress.org/Forum_Welcome#Deleting_.2F_Editing_Posts](http://codex.wordpress.org/Forum_Welcome#Deleting_.2F_Editing_Posts)
   > Search engine hits are _never_ extreme and the post will not be edited.
 * And besides, there’s nothing here that needs editing.
 *  Thread Starter [Aurélien Denis](https://wordpress.org/support/users/maigret/)
 * (@maigret)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-78/#post-6946019)
 * OK. Thanks.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-78/#post-6946020)
 * [@tigroumeow](https://wordpress.org/support/users/tigroumeow/) When I delete 
   the `modlook` tag could you please not re-add it? 😉
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-78/#post-6946021)
 * > [@tigroumeow](https://wordpress.org/support/users/tigroumeow/) When I delete
   > the modlook tag could you please not re-add it? 😉
 * Sorry, I thought it didn’t work at first 😉

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://ps.w.org/wp-retina-2x/assets/icon-256x256.png?rev=2597316)
 * [Perfect Images: Regenerate Thumbnails, Image Sizes, WebP & AVIF](https://wordpress.org/plugins/wp-retina-2x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-retina-2x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-retina-2x/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-retina-2x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-retina-2x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-retina-2x/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/php-warning-78/#post-6946021)
 * Status: resolved