Warning: realpath() [function.realpath]: Unable to access
-
Hi all,
After installing wordpress 2.7 i get this error:
Warning: realpath() [function.realpath]: Unable to access /usr/home/web/snl126273/wp-content/uploads in /usr/home/web/snl122463/blog/wp-includes/functions.php on line 1767line 1767 is:
function path_is_absolute( $path ) { // this is definitive if true but fails if $path does not exist or contains a symbolic link if ( realpath($path) == $path ) return true;need i set this setting to false?
-
Make sure you have proper setting in Settings->Miscellaneous for the Uploads folder and make sure that folder has the proper file permissions (e.g. 777)
thanks, i have looked into this issue but i saw something strange:
Warning: realpath() [function.realpath]: Unable to access /usr/home/web/snl126273/blog/wp-admin/blog/wp-content/uploads in /usr/home/web/snl126273/blog/wp-includes/functions.php on line 1767
but the path is no wp-admin. it’s the path without the wp-admin part. How to fix this?
I’m guessing you got all your WordPress files uploaded properly because you were able to install WordPress. You could have file permission problems so make sure you read Changing File Permissions in regards to wp-content, wp-content/uploads folders.
In my wp_options table I have the following values so you might want to make sure via phpMyAdmin that you have something similar that matches your paths:
fileupload_realpath
/home/mjbj/public_html/wordpress/wp-contentfileupload_url
/http://mjbj.com/wordpress/wp-contentupload_path
wp-content/uploadshave checked and check again, but i’m stuck.
Unable to access /usr/home/web/snl126273/blog/wp-admin/wp-content/uploads/ in /usr/home/web/snl126273/blog/wp-includes/functions.php on line 1767
line 1767:
function path_is_absolute( $path ) { // this is definitive if true but fails if $path does not exist or contains a symbolic link if ( realpath($path) == $path ) return true; if ( strlen($path) == 0 || $path{0} == '.' ) return false; // windows allows absolute paths like this if ( preg_match('#^[a-zA-Z]:\\\\#', $path) ) return true; // a path starting with / or \ is absolute; anything else is relative return (bool) preg_match('#^[/\\\\]#', $path); }Warning: realpath() [function.realpath]: Unable to access /usr/home/web/snl126273/blog/wp-admin/wp-content/uploads/ in /usr/home/web/snl126273/blog/wp-includes/functions.php on line 1767 Warning: realpath() [function.realpath]: Unable to access /usr/home/web/snl126273/blog/wp-admin/wp-content/uploads/ in /usr/home/web/snl126273/blog/wp-includes/functions.php on line 1767 Warning: Cannot modify header information - headers already sent by (output started at /usr/home/web/snl126273/blog/wp-includes/functions.php:1767) in /usr/home/web/snl126273/blog/wp-includes/pluggable.php on line 850After removing a file
it says the “wp-admin/wp-content/uploads” folder is not there. That’s right, because it doesn’t exist. It must be “wp-content/uploads”
where to fix this?
into the media-> Miscellaneous Settings the path is “wp-content/uploads/”Use FTP client to create wp-content/uploads folder and change permissions accordingly.
already done, to chmod 777
see this screenshot:
/usr/home/web/snl126273/blog/wp-admin/blog/wp-content/uploads
That path doesn’t really make any sense. What is the value on the top two fields on your Settings->Miscellaneous config screen?
The first field should just be “wp-content/uploads”. Not “wp-admin/blog/wp-content/uploads”.
i know, my config screen is this:
http://img401.imageshack.us/img401/2388/35846330rh3.jpg
i have fixed now:
i have created 3 new folders into the wp-admin folder.
my structure is now:/blog/wp-admin/blog/wp-content/uploads/
(not into the miscellaneous screen) but @ my ftp
very strange and weird situationI don’t know that you have it correct.
In fact you might be better off starting over by deleting all WordPress files and folders, except wp-config.php.
Then drop the WordPress tables using phpMyAdmin.
Then review and follow the instructions in Installing WordPress and Uploading WordPress to a remote host.
Well, it’s working now.
I have already deleted all the files (except the wp-content folder)but doesn’t help.With this solution of creating some folders into the admin folder it works now.
With a directory structure like /blog/wp-admin/blog/wp-content/uploads/ I would expect you to have problems in the future.
Please read WordPress Backups and in particular pay attention to how to backup your database because you will likely have problems in the future so it will be important to have a database backup.
I also had the same problem after installing WordPress 2.7. Solved the problem as follows:
1. Create a folders in ‘wp-admin’ ‘wp-content/uploads’
2. Open wp-includes/functions.php and replacefunction path_is_absolute( $path ) { // this is definitive if true but fails if $path does not exist or contains a symbolic link if ( realpath($path) == $path ) return true;with
function path_is_absolute( $path ) { // this is definitive if true but fails if $path does not exist or contains a symbolic link if ( realpath($path) != $path ) $path == realpath($path); else return true;That’s all! All files will now be filled in wp-content/uploads. Enjoy!
no didnt help
Warning: realpath() [function.realpath]: Unable to access /var/www/vhosts/feeder.lt/subdomains/market/httpdocs/wp-admin/wp-content/uploads in /var/www/vhosts/feeder.lt/subdomains/market/httpdocs/wp-includes/functions.php on line 1767
Warning: realpath() [function.realpath]: Unable to access /var/www/vhosts/feeder.lt/subdomains/market/httpdocs/wp-admin/wp-content/uploads in /var/www/vhosts/feeder.lt/subdomains/market/httpdocs/wp-includes/functions.php on line 1768
Were you able to solve this problem? I’m have the same issue. Everything is working, but those warning are very annoying.
I’m having the same blog installed in two different hostings, one has the warnings and the other hasn’t. So I’m guessing it has something to do with the PHP configuration? But I have no clue what to look for…
Cheers!
The topic ‘Warning: realpath() [function.realpath]: Unable to access’ is closed to new replies.