WordPress.org

Ready to get started?Download WordPress

Forums

I really screwed it up this time! (27 posts)

  1. djfellows
    Member
    Posted 6 months ago #

    In trying to "correct" a problem to gain access to administration page, I attempted a fix from a forum thread. I entered through the website and went to functions.php. Didn't seem to work and after undoing the fix, on refresh I get:

    Fatal error: Cannot redeclare require_wp_db() (previously declared in /home/content/a/i/s/aiscorporate/html/blog/wp-includes/load.php:327) in /home/content/a/i/s/aiscorporate/html/blog/wp-includes/functions.php on line 3090

    Can't access anything...HELP

  2. djfellows
    Member
    Posted 6 months ago #

  3. Michelle
    Member
    Posted 6 months ago #

    Sounds like maybe you edited the wrong functions.php file? Usually when there's discussion of editing functions.php it's the one in /wp-content/themes/YOUR-CURRENT-THEME/. If you edited a file within /wp-includes that's the wrong one. A possible fix would be to download the latest version of WordPress to your desktop and re-upload the files in wp-includes via FTP.

    If you were indeed editing the functions.php within your theme folder, then please post the current contents of that file so we can check it out. Thanks!

  4. djfellows
    Member
    Posted 6 months ago #

    Ok...attempting to upload the new wp-includes file.....

  5. djfellows
    Member
    Posted 6 months ago #

    Well...some progress. I can actually see the blog home page. There is a warning though. and my "Insurance Matters" text is no longer formatted.

    http://aiscorporate.com/blog/

  6. Michelle
    Member
    Posted 6 months ago #

    You mentioned you started this process because of issues logging into WordPress's control panel, so it may be that you didn't have a clean installation before? Try uploading clean/new versions of the files in /wp-admin as well.

    The last thing to ensure you have everything new is to re-upload the files in the root of your WordPress installation, but when you do that be sure to NOT overwrite/replace wp-config.php. (I'd make a backup of everything).

  7. djfellows
    Member
    Posted 6 months ago #

    Hmmm...novice on this stuff.

    Can I back up from local root folder or off of server? Obviously I don't want to lose content.

  8. Michelle
    Member
    Posted 6 months ago #

    I usually connect via FTP and download a few key files: from the root, wp-config.php and .htaccess (if you can see it), and my current them from /wp-content/themes. That way if you accidentally delete something you can re-upload those files.

    You can also make a backup of your database, which is where your content is stored, but for what we're doing right here you're probably okay with just the files right now.

  9. djfellows
    Member
    Posted 6 months ago #

    Connect via FTP ...is that the same as downloading through Dreamweaver connection?

  10. Michelle
    Member
    Posted 6 months ago #

    I'm not familiar with how Dreamweaver connections work but I'd guess so? I usually use the FileZilla client. But if you're used to Dreamweaver and know how to download a file from the server and save it somewhere on your hard drive, that should work fine.

  11. djfellows
    Member
    Posted 6 months ago #

    ok. trying to figure out how to get /wp-content/themes. It is a folder with many sub folders. Can't remember if this is Morning after or twenty something...

  12. djfellows
    Member
    Posted 6 months ago #

    If I just copy my local root folder, would that suffice. Also, where do I find database that contain articles?

  13. Michelle
    Member
    Posted 6 months ago #

    I think you're okay if you copy your local folder, but do make sure to get/save a copy of wp-config.php from the server before you upload anything.

    Start by doing just what you did when you uploaded wp-includes, but do it for wp-admin this time.

    If that fixes things, great! If not, you'll need to re-upload the stuff in the root of WordPress (except for wp-config.php and .htaccess).

    Your database is usually accessible via your web host's Cpanel or something similar.

  14. djfellows
    Member
    Posted 6 months ago #

    Nothing changed after adding new wp-admin. Still have warning. So now I should try a complete replacement except for wp-config.php and .htaccess...??? How do I preserve articles?

  15. Michelle
    Member
    Posted 6 months ago #

    Now upload just the files in the root of your WordPress install, EXCEPT for wp-config.php.

    They're going to be files like wp-activate.php, wp-blog-header.php etc.

    All your articles are in your database, which we're not touching so they shouldn't be affected.

  16. djfellows
    Member
    Posted 6 months ago #

    and what about .htaccess

  17. Michelle
    Member
    Posted 6 months ago #

    Yes, leave .htaccess as-is, don't over write it.

  18. djfellows
    Member
    Posted 6 months ago #

    So I am uploading the entire download minus the congig and htaccess?

  19. Michelle
    Member
    Posted 6 months ago #

    And minus /wp-content. Just

    /wp-includes (already done)
    /wp-admin (already done)
    and root files except for wp-config.php and .htaccess

  20. djfellows
    Member
    Posted 6 months ago #

    got it...one more thing...I don't see the htaccess anywhere in the new version.

  21. Michelle
    Member
    Posted 6 months ago #

    That's okay. .htaccess is a file which is automatically generated by WordPress when you go to Settings > Permalinks and click 'save'. You may not have it on your local machine.

  22. djfellows
    Member
    Posted 6 months ago #

    so sorry... what about this wp-config-sample.php from the new version...?

  23. Michelle
    Member
    Posted 6 months ago #

    It won't hurt anything if you upload it, but you don't need to.

  24. djfellows
    Member
    Posted 6 months ago #

    ok...there isn't even a wp-config.php in the new version anywhere well, here it goes.

  25. djfellows
    Member
    Posted 6 months ago #

    Yeeaahhh!! I honor of Valentine's Day tomorrow. I Love You!! Thank you so much!

    Now I need to figure why when logged in to admin, I can't get to the tabs to edit pages... Are there 2 different admin panels?

  26. Michelle
    Member
    Posted 6 months ago #

    Yay! Congratulations!! :)

    I'm not sure what you mean by not being able to get into the tabs to edit pages. There aren't two control panels, just the one probably at aiscorporate.com/blog/wp-admin/

  27. djfellows
    Member
    Posted 6 months ago #

    I used t have a dashboard with all the nav buttons like in the image on this link. http://codex.wordpress.org/File:admintools.png

    Now I only have posts, comments, updates, profile and tools. No settings, plugins, appearance, etc.

  28. djfellows
    Member
    Posted 6 months ago #

    I figured it out...I have 2 different logins from 3 years ago.

    One as Contributor and the other as Admin.

    Thanks again for all your help!! Have a great evening!

Reply

You must log in to post.

About this Topic