• Resolved blueyez

    (@blueyez)


    i get this error afther i delete a image
    what should i do ?

    # Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/ueyez/public_html/bl/wp-content/uploads/2008/02/bmw325icabrio.thumbnail.jpg) is not within the allowed path(s): (/home/btour:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/btour/public_html/rac/wp-includes/post.php on line 1514
    
    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/ueyez/public_html/bl/wp-content/uploads/2008/02/bmw325icabrio.jpg) is not within the allowed path(s): (/home/btour:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/btour/public_html/rac/wp-includes/post-template.php on line 429
    
    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/ueyez/public_html/bl/wp-content/uploads/2008/02/bmw325icabrio.thumbnail.jpg) is not within the allowed path(s): (/home/btour:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/btour/public_html/rac/wp-includes/post.php on line 1514
    
    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/ueyez/public_html/bl/wp-content/uploads/2008/02/bmw325icabrio.thumbnail.jpg) is not within the allowed path(s): (/home/btour:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/btour/public_html/rac/wp-includes/post.php on line 1514
    
    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/ueyez/public_html/bl/wp-content/uploads/2008/02/dacialogan.thumbnail.jpg) is not within the allowed path(s): (/home/btour:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/btour/public_html/rac/wp-includes/post.php on line 1514
    
    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/ueyez/public_html/bl/wp-content/uploads/2008/02/dacialogan.jpg) is not within the allowed path(s): (/home/btour:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/btour/public_html/rac/wp-includes/post-template.php on line 429
    
    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/ueyez/public_html/bl/wp-content/uploads/2008/02/dacialogan.thumbnail.jpg) is not within the allowed path(s): (/home/btour:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/btour/public_html/rac/wp-includes/post.php on line 1514
    
    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/ueyez/public_html/bl/wp-content/uploads/2008/02/dacialogan.thumbnail.jpg) is not within the allowed path(s): (/home/btour:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/btour/public_html/rac/wp-includes/post.php on line 1514
Viewing 8 replies - 1 through 8 (of 8 total)
  • I get the same error inside the control panel when I browse my uploaded images. Why? Running 2.5 now, but I also had the issue before upgrading. Anyone?

    Did you change the location of your blog or database structure?

    Might/should be fixed when you add define(‘WP_TEMP_DIR’,’/tmp’); to the wp-config.php file.

    It does not work
    add define(‘WP_TEMP_DIR’,’/tmp’); to the wp-config.php file.

    mbrindle

    (@mbrindle)

    Hi I’m having the same problem but doing that doesn’t seem to help. Any other ideas?

    The full error is

    Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: open_basedir restriction in effect. File(/megamegamega/mega/albums/fash-off/mega_fashoff_bbb_77.jpg) is not within the allowed path(s): (/home/matthewbriuk/public_html) in /home/matthewbriuk/public_html/megamegamega/wp/wp-content/plugins/myzenalbums/myzenalbums.php on line 81

    Any help would be really appreciated!

    what you really need to to do is this;
    stgoos had the right idea, only you need to use relative linking. so instead of DEFINE(‘WP_TEMP_DIR’,’/tmp’) it needs to be relative to where your blog sits.

    in example:
    my blog is in a folder named blog under my sites root
    so https://www.robloranger.ca/blog
    my tmp folder is is one level above the files for https://www.robloranger.ca
    so my relative link to /tmp would be ../../tmp
    and the definition to add to wp-config.php would be DEFINE(‘WP_TEMP_DIR’,’../../tmp’)

    basically how relative linking works is you need to place one ‘../’ for each directory higher than your blog’s root until your reach the directory where /tmp is

    hope this helps

    Great solution!

    But finally didn’t work for me. I’m still havin same problem.

    PHP Warning: file_exists() [function.file-exists]: open_basedir restriction in eff
    ect. File(/home/.ergo/myname/myname/wp-content/uploads/2006/09/file-name.miniatura.jpg) is not within the allowed path(s): (/var/www/vhosts/mydomain.com/httpdocs:/tmp) in /var/www/vhosts/mydomain.com/httpdocs/wp-includes/post.php on line 2576

    My tmp folder is at /var/www/vhosts/mydomain/tmp and I addes the line
    define(‘WP_TEMP_DIR’,’../../tmp’);

    but I’m still getting the error…

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘file_exists() [function.file-exists]: open_basedir restriction in effect.’ is closed to new replies.