• So, I messed it up. No I didn’t have a backup.

    I moved all of my files out of my wordpress folder into the root: I quickly realized that that was a bad move, and copied them back. I’ve double and triple checked, and yes, all of the files made it back to the original folder.

    The website works, but wp-admin is broken. It now gives me the error:

    Warning: require_once(/home/content/32/8538432/html/wp-admin/admin.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/32/8538432/html/wp-admin/index.php on line 10

    Fatal error: require_once() [function.require]: Failed opening required ‘/home/content/32/8538432/html/wp-admin/admin.php’ (include_path=’.:/usr/local/php5_3/lib/php’) in /home/content/32/8538432/html/wp-admin/index.php on line 10

    What did I do? I don’t think the .htaccess file got overwritten. If all of the files are back in their original place then what is going wrong?

Viewing 1 replies (of 1 total)
  • Hi, wyrdup, & welcome to the WordPress support forum. Firstly, if you wouldn’t mind, please let us have a look at your .htaccess file, i.e., the one in the root folder. You can simply copy-&-paste it in.

    Next, if you actually installed the site to a folder called wordpress, then, depending on whether your host is Linux or Windows-based, you either need to copy or move your wordpress/index.php file to the root & make this change:
    require( dirname( __FILE__ ) . ‘/wordpress/wp-blog-header.php’ );
    In Linux you copy it; in Windows you move it. Please substitute your actual folder name if it isn’t wordpress.

    Just so you know, the website content is actually stored in the database as opposed to the files. That does need to be backed up regularly.

    In summary–please let us have a look at your .htaccess & index.php files of your root folder in your next reply. Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Admin.php error after moving files’ is closed to new replies.