• Resolved quelyn

    (@quelyn)


    I was in the middle of updating a post when this error appeared:

    Fatal error: Cannot redeclare the_title() (previously declared in /home/xxxxxx/emocrap.com/blog/wp-includes/post-template.php:43) in /home/xxxxxx/emocrap.com/blog/wp-includes/post-template.php on line 723

    I can’t access the admin panel to disable any addons, etc.

    I checked in Post-template and this is 711 to 723

    function the_title($before = '', $after = '', $echo = true) {
    	$title = get_the_title();
    	if ( strlen($title) == 0 )
    		return;
    	$title = $before . $title . $after;
    	if ( $echo )
    		echo $title;
    	else
    		return $title;
    }

    [Please post code snippets between backticks or use the code button.]

    I’ve never altered this code in my life.

    I can’t find much about this other than PHP coding help, but I didn’t code this, any help is appreciated

Viewing 3 replies - 1 through 3 (of 3 total)
  • Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Eleven theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    – re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress.

    Thread Starter quelyn

    (@quelyn)

    Okay, I did an upgrade from my host to 3.3.1 and it APPEARS to be working, so nevermind this one.

    Thread Starter quelyn

    (@quelyn)

    Thank you Esmi for your reply, I wasn’t able to get into the admin panel to do that (Deactivate plugins). But it’s oddly working now.. I’ll have to monitor.

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

The topic ‘Cannot redeclare the_title()’ is closed to new replies.