• Resolved kim_hurwitz

    (@kim_hurwitz)


    Hi – I am very new to this. Installed the latest WP version onto my GoDaddy hosting and everything was fine until I tried to migrate the mysite.com/wordpress files to mysite.com/blog. Somehow I changed the html on the index file?! and can’t login to edit my blog. The shell does appear.

    Here is the error message I get when trying to edit:
    Warning: require_once(admin.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/m/w/g/mwgmedia/html/wordpress/wp-admin/edit.php on line 2

    Fatal error: require_once() [function.require]: Failed opening required ‘admin.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/m/w/g/mwgmedia/html/wordpress/wp-admin/edit.php on line 2

    How can I fix this? Please help….I don’t want to have to erase, reinstall and re-do the entire blog….I appreciate any advice…

Viewing 9 replies - 1 through 9 (of 9 total)
  • You should have asked how to proceed before trying to do anything!
    Seemingly you did NOT move all the files to their proper location.

    EDIT. For what yuou wanted you didn’t need to copy/move anything.
    And there is no index.html in the whole WP package.

    Did you follow the instructions on this page?
    https://codex.www.ads-software.com/Moving_WordPress#Moving_WordPress_Within_Your_Site

    If not what have you done so far other than moving your WP directory?

    Actually, in the case above even that tutorial is an overkill. The common sense way is this:

    1. Login to admin > Settings > General
    2. Change the two URL values to the new one: in this specific case from example.com/wordpress to example.com/blog
    3. Save and disregard the error message
    4. Do NOT try to see your blog
    5. Via FTP rename the “wordpress” folder to “blog”.
    Done.

    Thread Starter kim_hurwitz

    (@kim_hurwitz)

    Thanks for replying so quickly. I don’t think I’m explaining myself very well. I can’t even get into my settings to change the files from example.com/wordpress to example.com/blog.

    I have a bigger problem—I tried to ‘fix’ the html…OK, I know I shouldn’t have. I cannot login at all. Here is what I get:

    Warning: require_once(admin.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/m/w/g/mwgmedia/html/wordpress/wp-admin/page.php on line 2

    Fatal error: require_once() [function.require]: Failed opening required ‘admin.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/m/w/g/mwgmedia/html/wordpress/wp-admin/page.php on line 2

    Can this be fixed? Or should I delete all and reinstall to start anew? thanks for your help.

    Re-installing is a newbie obsession and, usually, it never solves anything.

    Re-uploading the files to the correct location might be a solution. (meaning do NOT try to run any install script!)

    I have no idea what kind of html were you trying to “fix”. Don’t ever touch anything that you have no clue what it is. There is nothing HTML related in all those error messages: I repeat, they tell you about missing and/or misplaced files.

    Thread Starter kim_hurwitz

    (@kim_hurwitz)

    Good point, and yes my newbieness is showing, but re-uploading what might be now-corrupted files won’t help either, will it?

    I cannot even login…doesn’t the message above suggest that I need to add _path=’.:/usr/local/php5/lib/php’) in /home/content/m/w/g/mwgmedia/html/wordpress/wp-admin/page.php on line 2?

    Other forums for login problems have mentioned removing plug-ins in order to properly login. It doesn’t seem to recognize me.

    Well, don’t upload “corrupted files”. Upload a clean package = fresh download.

    Upload a fresh copy of the wp-admin folder.

    Thread Starter kim_hurwitz

    (@kim_hurwitz)

    how do I get a fresh copy of this – I am doing this via GoDaddy?

    If you scroll up on this page do you see a big red button on the top right, saying “Download”?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Tried to copy files to a different URL thread; lost index html’ is closed to new replies.