• Hello everyone ,

    when i try to go on my website my-esource.com , i get this error message ( Fatal error: Cannot redeclare mysql2date() (previously declared in /home/nmmarwan/public_html/wp-includes/functions.php:26) in /home/nmmarwan/public_html/wp-content/themes/dt-the7/functions.php on line 42 ).

    I really don’t know what to do .

    These are the lines 26 to 42 quoted in the error message :

    function mysql2date( $format, $date, $translate = true ) {
    	if ( empty( $date ) )
    		return false;
    
    	if ( 'G' == $format )
    		return strtotime( $date . ' +0000' );
    
    	$i = strtotime( $date );
    
    	if ( 'U' == $format )
    		return $i;
    
    	if ( $translate )
    		return date_i18n( $format, $i );
    	else
    		return date( $format, $i );
    }

    Thank you

Viewing 1 replies (of 1 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    From the message it would appear to be a theme issue. The dt-the7 theme in particular. Have you tried reaching out to the theme’s author about it?

    Do keep in mind if it is a purchased theme, forum volunteers are not given access to that code.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error: Cannot redeclare mysql2date’ is closed to new replies.