Title: Warning: realpath() [function.realpath]: Unable to access
Last modified: August 19, 2016

---

# Warning: realpath() [function.realpath]: Unable to access

 *  [blaatje123456](https://wordpress.org/support/users/blaatje123456/)
 * (@blaatje123456)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-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 1767`
 * line 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?

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/page/2/?output_format=md)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929666)
 * 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)](http://codex.wordpress.org/Changing_File_Permissions)
 *  Thread Starter [blaatje123456](https://wordpress.org/support/users/blaatje123456/)
 * (@blaatje123456)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929695)
 * 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?
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929699)
 * 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](http://codex.wordpress.org/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](http://codex.wordpress.org/phpMyAdmin) that you have something
   similar that matches your paths:
 * `fileupload_realpath`
    /home/mjbj/public_html/wordpress/wp-content
 * `fileupload_url`
    /http://mjbj.com/wordpress/wp-content
 * `upload_path`
    wp-content/uploads
 *  Thread Starter [blaatje123456](https://wordpress.org/support/users/blaatje123456/)
 * (@blaatje123456)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929717)
 * have 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);
       }
       ```
   
 *  Thread Starter [blaatje123456](https://wordpress.org/support/users/blaatje123456/)
 * (@blaatje123456)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929720)
 *     ```
       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 850
       ```
   
 * After 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/”
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929721)
 * Use FTP client to create wp-content/uploads folder and change permissions accordingly.
 *  Thread Starter [blaatje123456](https://wordpress.org/support/users/blaatje123456/)
 * (@blaatje123456)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929723)
 * already done, to chmod 777
 * see this screenshot:
 * [http://img296.imageshack.us/img296/8376/screenzc0.jpg](http://img296.imageshack.us/img296/8376/screenzc0.jpg)
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [17 years, 4 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929724)
 * > _/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”.
 *  Thread Starter [blaatje123456](https://wordpress.org/support/users/blaatje123456/)
 * (@blaatje123456)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929729)
 * i know, my config screen is this:
 * [http://img401.imageshack.us/img401/2388/35846330rh3.jpg](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 situation
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929730)
 * I 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](http://codex.wordpress.org/phpMyAdmin).
 * Then review and follow the instructions in [Installing WordPress](http://codex.wordpress.org/Installing_WordPress)
   and [Uploading WordPress to a remote host](http://codex.wordpress.org/Uploading_WordPress_to_a_remote_host).
 *  Thread Starter [blaatje123456](https://wordpress.org/support/users/blaatje123456/)
 * (@blaatje123456)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929735)
 * 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.
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929738)
 * 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](http://codex.wordpress.org/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.
 *  [zerochaos](https://wordpress.org/support/users/zerochaos/)
 * (@zerochaos)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929843)
 * 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 replace
 *     ```
       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;
       ```
   
 * 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!
 *  [pronetas](https://wordpress.org/support/users/pronetas/)
 * (@pronetas)
 * [17 years ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929942)
 * 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
 *  [jlubeck](https://wordpress.org/support/users/jlubeck/)
 * (@jlubeck)
 * [17 years ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/#post-929945)
 * 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!

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/page/2/?output_format=md)

The topic ‘Warning: realpath() [function.realpath]: Unable to access’ is closed 
to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 28 replies
 * 14 participants
 * Last reply from: [Gary](https://wordpress.org/support/users/garydouglas/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/warning-realpath-functionrealpath-unable-to-access/page/2/#post-929987)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
