• Resolved idahorivers

    (@idahorivers)


    It looks like I need to access my wordpress files via my FTP host and over write the corrupted functions.php. I’m using the Organic Seed theme, but all I have access to this weekend is the twentytwelve functions.php. What are my best options?

    Fatal error: Cannot redeclare new_excerpt_more() (previously declared in D:\hshome\idahorivers\idahorivers.org\riverguy\wp-content\themes\organic_seed\functions.php:411) in D:\hshome\idahorivers\idahorivers.org\riverguy\wp-content\themes\organic_seed\functions.php on line 511

Viewing 7 replies - 1 through 7 (of 7 total)
  • Deactivate the theme – by changing the name on the theme’s folder:

    wp-content
        themes
            organic_seed.HOLD

    Yes, via FTP is the way to do that.

    Thread Starter idahorivers

    (@idahorivers)

    Thanks, but I need you to be more specific (it’s clear I’m not having the best luck with my first site). Where is the theme’s folder? On the FTP site I presume. And do I add “.HOLD” after the code you shared?
    I presume I will still need to do something to overwrite or correct the functions.php. Thanks for the help.

    Yes, use FTP to access the files on the server (ask your hosts if you’re not sure how to do that). Then use the file structure I posted above to find your theme folder and change the name on the folder – adding .HOLD is an easy way to change it. That will deactivate the theme and WP will automatically default to twentythirteen – so you can login again.

    What were you doing when this error happened? Unless you have a backup copy of that file or know what got messed up, it’s unlikely we can help you fix it as we don’t have access to commercial themes.

    The themes folder is under ‘/wp-content/themes/’.

    If you wrote this theme, functions.php should be in the Organic Seed folder in there. Else you’ll need to replace the functions.php file from the original source (the theme when you first downloaded it).

    Thread Starter idahorivers

    (@idahorivers)

    I was working with excerpts and had just “discovered” the more function. When I used it to shorten a post excerpt that appears on the front page, the … disappeared. I thought that looked really lame, looked for a fix on the support forum and came up with a few lines of code that I pasted into the functions.php at the very bottom (after checking to find out where the code was supposed to be pasted in and finding that “it didn’t matter”). I can easily delete that code from the bottom of the functions.php if I can access it, but it sounds like I’ll need to reinstall the seed functions.php (when I can get it from our IT).

    You could always just download the file and edit it in notepad, then re-upload.

    Thread Starter idahorivers

    (@idahorivers)

    That sounds straight forward. As soon as I can access the FTP site, I’ll do that and post my outcome.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Fatal Error recovery’ is closed to new replies.