POSTS won’t index "non object" error

  • parksian
    Participant
    # 2 weeks, 4 days ago

    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
    # 2 weeks, 4 days ago

    Which WPSOLR version is it?

    parksian
    Participant
    # 2 weeks, 4 days ago

    20.1

    wpsolr
    Keymaster
    # 2 weeks, 4 days ago

    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
    # 2 weeks, 3 days ago

    Is there a way to fix that?

    wpsolr
    Keymaster
    # 2 weeks, 3 days ago

    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 2 weeks, 3 days ago by  wpsolr.
    parksian
    Participant
    # 2 weeks, 3 days ago

    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
    # 2 weeks, 3 days ago

    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
    # 2 weeks, 3 days ago

    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.