POSTS won’t index "non object" error

  • parksian
    Participant
    5 years ago #13888

    I am trying to create my index but am receiving the following error

    Error on line 941 of file /home/nginx/domains/foodlovers.xyz/public/wp-content/plugins/wpsolr-search-engine/wpsolr/core/classes/engines/class-wpsolr-abstractindexclient.php: Trying to get property ‘name’ of non-object

    Any idea what I can do to fix this?

    wpsolr
    Keymaster
    5 years ago #13889

    Which WPSOLR version is it?

    parksian
    Participant
    5 years ago #13890

    20.1

    wpsolr
    Keymaster
    5 years ago #13891

    It could be that some of your taxonomies do not have a name. Perhaps they had been imported (WP All Import, SQL …)

    See: https://www.wpsolr.com/forums/topic/indexing-error-after-importing-posts-with-wp-all-import/

    parksian
    Participant
    5 years ago #13892

    Is there a way to fix that?

    wpsolr
    Keymaster
    5 years ago #13894

    You can try to add some debug information on $term_parent_id and $term_parent on line 939:
    $term_parent = get_term( $term_parent_id, 'category' );

    • This reply was modified 5 years ago by wpsolr.
    parksian
    Participant
    5 years ago #13896

    Tried var_dump, is this any help?

    NULL NULL array(3) refcount(2){ [“className”]=> string(54) “wpsolr\core\classes\engines\WPSOLR_AbstractIndexClient” refcount(1) [“file_name”]=> string(146) “/home/nginx/domains/foodlovers.xyz/public/wp-content/plugins/wpsolr-search-engine/wpsolr/core/classes/engines/class-wpsolr-abstractindexclient.php” refcount(2) [“base_name”]=> string(32) “class-wpsolr-abstractindexclient” refcount(2) } #0 wpsolr\core\classes\engines\sayHello() called at [/home/nginx/domains/foodlovers.xyz/public/wp-content/plugins/wpsolr-search-engine/wpsolr/core/classes/engines/class-wpsolr-abstractindexclient.php:1306] #1 require_once(/home/nginx/domains/foodlovers.xyz/public/wp-content/plugins/wpsolr-search-engine/wpsolr/core/classes/engines/class-wpsolr-abstractindexclient.php) called at [/home/nginx/domains/foodlovers.xyz/public/wp-content/plugins/wpsolr-search-engine/wpsolr/core/class-wpsolr-autoloader.php:37] #2 wpsolr\WPSOLR_Autoloader::Load(wpsolr\core\classes\engines\WPSOLR_AbstractIndexClient) #3 spl_autoload_call(wpsolr\core\classes\engines\WPSOLR_AbstractIndexClient) called at [/home/nginx/domains/foodlovers.xyz/public/wp-content/plugins/wpsolr-search-engine/wpsolr/core/dashboard/dashboard_operations.inc.php:36] #4 include(/home/nginx/domains/foodlovers.xyz/public/wp-content/plugins/wpsolr-search-engine/wpsolr/core/dashboard/dashboard_operations.inc.php) called at [/home/nginx/domains/foodlovers.xyz/public/wp-content/plugins/wpsolr-search-engine/wpsolr/core/dashboard/dashboard.php:418] #5 fun_set_solr_options() called at [/home/nginx/domains/foodlovers.xyz/public/wp-includes/class-wp-hook.php:286] #6 WP_Hook->apply_filters(, Array ([0] => )) called at [/home/nginx/domains/foodlovers.xyz/public/wp-includes/class-wp-hook.php:310] #7 WP_Hook->do_action(Array ([0] => )) called at [/home/nginx/domains/foodlovers.xyz/public/wp-includes/plugin.php:465] #8 do_action(toplevel_page_solr_settings) called at [/home/nginx/domains/foodlovers.xyz/public/wp-admin/admin.php:253]

    parksian
    Participant
    5 years ago #13897

    Can I somehow just fix this manually in PHPMyAdmin? I have been through the taxonomy table and all taxonomies seem to have a name there.

    parksian
    Participant
    5 years ago #13898

    For now I may have found a solution to the posts. I am bulk editing and resaving and it appears to add them to the solr index.

    Still don’t have a solution for attachments but will keep pushing and hopefully find something.

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

You must be logged in to reply to this topic.