Forums

HELP!!TRIED TO MOVE FILES NOW SITE IS DOWN (41 posts)

  1. netchix007
    Member
    Posted 2 years ago #

    I tried to move my wordpress files to a new directory according to this post i found on your site:

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    my index.php file was in my wp-admin folder, so i moved it to my website root, per instructions. when i got to the line that says change require('./wp-blog-header.php'); in the index.php file to include the new directory name i ran into a problem. my index file doesn't reference this header. if i leave the file as-is and try to go back to the admin panel, i get an error: Fatal error: require_once() [function.require]:

    Warning: require_once(ABSPATHadmin.php) [function.require-once]: failed to open stream: No such file or directory in /home/hnalette/public_html/index.php on line 10

    Fatal error: require_once() [function.require]: Failed opening required 'ABSPATHadmin.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hnalette/public_html/index.php on line 10

    line 10 of my index file has: require_once(ABSPATH . 'admin.php');
    if i change this to include the new directory -- /main/admin.php, i still get the same error. if i move everything back to the root of my site, the site still won't work because i changed the wordpress url in the admin settings. i'm stuck.

  2. smootie
    Member
    Posted 2 years ago #

    my index.php file was in my wp-admin folder, so i moved it to my website root, per instructions

    Uh... #1. you don't MOVE the index you copy it and upload it to the root. #2. you don't copy the index.php in the admin folder, you copy the index in the main WP folder.

  3. Chris_K
    Member
    Posted 2 years ago #

    my index.php file was in my wp-admin folder, so i moved it to my website root, per instructions.

    Whoops! Wrong index.php. Move that one back. You want to move the one in the root of your WordPress installation!

  4. netchix007
    Member
    Posted 2 years ago #

    okay, when i moved the index.php file, it was one of 3 - wp-admin had one, wp-content had one, and wp-content/themes had one. the one on the root of wp-content had nothing in it. i did a search through all of my files and these were the only index files that came up. there wasn't one already on my root.

  5. netchix007
    Member
    Posted 2 years ago #

    when i initially did the install, it was installed on my root. i had the wp-files and folders directly on my root. i add a subdirectory to my root called main and moved everything in there. the .htaccess file was already on my root and the index files were in those other folders.

  6. netchix007
    Member
    Posted 2 years ago #

    please help!

  7. smootie
    Member
    Posted 2 years ago #

    There IS a main index.php for WP. It's not in a folder. It's in the same area that contains the wp-config file. It IS there or your site would have never worked. You just NOW moved everything into a subdirectory called main? What's the URL to your site?

  8. netchix007
    Member
    Posted 2 years ago #

    fatblastzone.com

  9. smootie
    Member
    Posted 2 years ago #

    For starters you haven't moved all the WP files to their new location >> xmlrpc.php. And you say you moved them to a folder called "main"? http://fatblastzone.com/main gives an internal server error.

  10. netchix007
    Member
    Posted 2 years ago #

    i moved the ones starting with wp-...
    i just moved the xml one.

  11. smootie
    Member
    Posted 2 years ago #

    Again..... where did you move them to?

  12. netchix007
    Member
    Posted 2 years ago #

    i moved them to fatblastzone.com/main...please try again.

  13. smootie
    Member
    Posted 2 years ago #

    Ok... so it is "main". Obviously the index.php you uploaded to that directory has been modified which is causing the error. Start by uploading a fresh copy of the index.php -- the MAIN index.php.

  14. smootie
    Member
    Posted 2 years ago #

    Ok excellent. At least we're seeing the list of files. The REASON we're just seeing a list of files is because there's no index.php As I said above... upload the main index.php to the "main" directory.

  15. netchix007
    Member
    Posted 2 years ago #

    where can i get a fresh copy?

  16. netchix007
    Member
    Posted 2 years ago #

    i only have the other two - one in themes and one with nothing in it.

  17. smootie
    Member
    Posted 2 years ago #

    Download WP using the red link at the top right of this screen.

  18. smootie
    Member
    Posted 2 years ago #

    This would be an excellent time to mention that you should always keep backup copies of everything... *cough*

  19. smootie
    Member
    Posted 2 years ago #

    You'll need to upload the index.php for wp-includes also. It's missing.

  20. smootie
    Member
    Posted 2 years ago #

    BRB. Going outside to smoke. Don't worry, we'll get it fixed. I've done this a zillion times :)

  21. netchix007
    Member
    Posted 2 years ago #

    ok...if i upload the index file to the main folder, i can see the website with some sort of warning on top. i'm getting closer. my problem though, is that i want to go to fatblastzone.com and see the content...not fatblastzone.com/main.

  22. netchix007
    Member
    Posted 2 years ago #

    also, i still can't get to the admin panel...errors. i'll try refreshing the index file in wp-admin with the one i just downloaded.

  23. smootie
    Member
    Posted 2 years ago #

    my problem though, is that i want to go to fatblastzone.com and see the content...not fatblastzone.com/main

    I know. That's what we're doing.

    I think you have some missing files. Did you upload the index for wp-includes?

  24. smootie
    Member
    Posted 2 years ago #

    i still can't get to the admin panel...errors

    #1. Did you already change the URLs as instructed here?:

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    #2. We have to take this a step at a time. The next thing you need to do is download the .htaccess file from the "main" subdirectory. Then you need to make a copy of the index.php and change this line:

    require('./wp-blog-header.php');

    to

    require('./main/wp-blog-header.php');

    Then upload both it and the .htaccess file to your root.

  25. netchix007
    Member
    Posted 2 years ago #

    i don't see one in the folder i just downloaded.

  26. smootie
    Member
    Posted 2 years ago #

    You don't see one what?

  27. netchix007
    Member
    Posted 2 years ago #

    yes, i already change the worpress url to http://fatblastzone.com/main.
    i left the blog url at http://fatblastzone.com.

    i'll do #2 now.

  28. netchix007
    Member
    Posted 2 years ago #

    okay, the .htaccess file was already on my root and i just uploaded the index file to my root.

  29. smootie
    Member
    Posted 2 years ago #

    Awesome! Now you should be able to log into your admin. Do that and then #1. update your permalinks and #2. change to the default theme. The error is coming from the theme you're using.

  30. netchix007
    Member
    Posted 2 years ago #

    if i change to the default theme, will that mess up any customizations i've made to the theme i'm using now?

Topic Closed

This topic has been closed to new replies.

About this Topic