Catchable fatal error:

Community Forums Forums General Discussion Catchable fatal error:

This topic is: not resolved

This topic contains 2 replies, has 1 voice, and was last updated by  webnetimages 1 year, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20997

    webnetimages
    Participant
    Post count: 14

    error with genesis and minimun theme:

    http://kanjea.com/lolasfloristas/store/productos/categoria/variados/

     

    the error only appears with a genesis theme!

    #20998

    webnetimages
    Participant
    Post count: 14

    error says:
    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/kanjea/public_html/wp-includes/formatting.php on line 2583

    #21002

    webnetimages
    Participant
    Post count: 14

    Hi, jusf for future updates and some other people like me:

    >>>wp-content/themes/genesis/lib/structure/header.php

    change:
    if ( $canonical )
    printf( '<link rel="canonical" href="%s" />' . "\n", esc_url( apply_filters( 'genesis_canonical', $canonical ) ) );

    by:

    if ( ( $canonical ) && (is_string($canonical)) )
    printf( '<link rel="canonical" href="%s" />' . "\n", esc_url( apply_filters( 'genesis_canonical', $canonical ) ) );

     

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

You must be logged in to reply to this topic.