• Resolved emmanueldcarie

    (@emmanueldcarie)


    Hello Pascal,

    I have this error when I try to synchronize my index to my Solr server.

    <br /> <b>Notice</b>: Trying to get property of non-object in <b>/var/www/centralecsn/docs/wp-content/plugins/wpsolr-search-engine/classes/solr/wpsolr-index-solr-client.php</b> on line <b>506</b><br /> <br /> <b>Notice</b>: Trying to get property of non-object in <b>/var/www/centralecsn/docs/wp-content/plugins/wpsolr-search-engine/classes/solr/wpsolr-index-solr-client.php</b> on line <b>507</b><br />

    It seems related to these 2 lines of code in wpsolr-index-solr-client.php:

    $pauthor          = isset( $pauth_info ) ? $pauth_info->display_name : '';?
    $pauthor_s        = isset( $pauth_info ) ? get_author_posts_url( $pauth_info->ID, $pauth_info->user_nicename ) : '';

    Although the indexing seems to churn along, I’m not sure what to think here.

    Cheers
    -Emmanuel

    https://www.ads-software.com/plugins/wpsolr-search-engine/

Viewing 1 replies (of 1 total)
  • Plugin Author WPSolr free

    (@wpsolr)

    Try to check what’s in $pauth_info for this specific post.

    It is set, but does not contain the field display_name.

Viewing 1 replies (of 1 total)
  • The topic ‘wpsolr and json error’ is closed to new replies.