• After researching and trying to apply code to manage the excerpt length of my posts I received this fatal error from WordPress:

    Fatal error: Cannot redeclare custom_excerpt_length() (previously declared in /home4/brada/public_html/wp-content/themes/book-rev-lite/functions.php:407) in /home4/brada/public_html/wp-content/themes/book-rev-lite/functions.php on line 1181

    I tried to fix the problem but am not very knowledgeable when it comes to coding. The only solution I can think of is if someone can copy the Book Rev Lite Theme’s functions.php code into notepad and send it to me so I can replace my code.

    I know it’s a lot to ask but I’m in a jam and it would be really appreciated. Thank you in advance for your time.

    Warm Regards,

    Brad

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    Your theme “book-rev-lite” seems to be the issue.

    To rule out any theme specific issue, try switching to the unedited default Twenty Fifteen theme for a moment using the WP dashboard.

    Thread Starter littlestbookshelf

    (@littlestbookshelf)

    This did not work. I downloaded the theme and copied the functions.php file in an attempt to fix the error. Is there another way to resolve this problem?

    Thread Starter littlestbookshelf

    (@littlestbookshelf)

    Anytime I try to navigate away from the functions.php page the error screen loads. I can’t uninstall the current theme or do any changes from within WordPress.

    Thread Starter littlestbookshelf

    (@littlestbookshelf)

    What I think is happening is I’m unable to access my website or login to WordPress because of the error. Is there a way to uninstall the theme through another channel?

    Moderator t-p

    (@t-p)

    I’m unable to access my website or login to WordPress because of the error. Is there a way to uninstall the theme through another channel?

    use FTP or whatever file management application your host provides.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Book Rev Lite: Theme (functions.php)’ is closed to new replies.