Skip Navigation

[Resolved] Calling get_parent_class() without arguments is deprecated

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 1.54 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 6 replies, has 2 voices.

Last updated by Minesh 4 weeks ago.

Assisted by: Minesh.

Author
Posts
#2777772

I am trying to: fix the search function on the advanced search page- currently when you enter a word that should return results, none are appearing.

Link to a page where the issue can be seen: hidden link

I expected to see: the search page when you enter a word like shell in the Keyword search box a bunch of shell images should be on display

Instead, I got: the message "No items found"

I installed a query monitor and am getting the following:
Level:
Deprecated

Message:
Calling get_parent_class() without arguments is deprecated

Location:
wp-content/plugins/wp-views/application/models/WooCommerce/WcQuery.php:69
get_parent_class()
wp-content/plugins/wp-views/application/models/WooCommerce/WcQuery.php:69
OTGS\T\V\M\W\WcQuery->__construct()
wp-content/plugins/wp-views/application/controllers/compatibility/woocommerce.php:84
OTGS\T\V\C\C\WooCommerceCompatibility->init_wc_query()
wp-content/plugins/wp-views/application/controllers/compatibility/woocommerce.php:57
OTGS\T\V\C\C\WooCommerceCompatibility->initialize()
wp-content/plugins/wp-views/application/controllers/compatibility.php:196
OTGS\T\V\C\Compatibility->initialize_single_integration()
wp-content/plugins/wp-views/application/controllers/compatibility.php:127
OTGS\T\V\C\Compatibility->initialize_all_integrations()
wp-content/plugins/wp-views/application/controllers/compatibility.php:33
OTGS\T\V\C\Compatibility->initialize()
wp-content/plugins/wp-views/application/controllers/main.php:76
WPV_Main->initialize_classes()
wp-includes/class-wp-hook.php:310
do_action('toolset_common_loaded')
wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/bootstrap.php:107
Toolset_Common_Bootstrap->__construct()
wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/bootstrap.php:126
Toolset_Common_Bootstrap::get_instance()
wp-content/plugins/types/application/controllers/main.php:171
Types_Main->after_setup_theme()
wp-includes/class-wp-hook.php:310
do_action('after_setup_theme')
wp-settings.php:610

Count:
1

Component:
Plugin: wp-views

#2777812

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

The notice about the "Calling get_parent_class() without arguments is deprecated" is known to us and we already reported that in front of our Devs and we will try to fix it with the next Dev cycle. Please note that there is no ETA on it.

However - I'm not sure why view is not displaying the result.

Can you please tell me what word I should use that should return the result but its not returning any results.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2778677

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I see you set your view to query the post type "product".

Can you please tell me what products you configure keyword as "shells" and with what custom fields or any other entity?

#2779095

we have grouped and variable products (we do not want simple products to appear) - all of our products are images (we sell prints & canvas of images)

the fields that should be used to find the products that apply to the word(s) entered into Search bar are:
Custom Fields: Title, Artist, Primary Color, Ratios, Release
Non-Custom Fields: Tags, Name, Category, SKU

#2779357

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now: hidden link

The keyword "shells" is configured as product tag and you will have to index posts once you many any changes to Relevanssi configuration of post types, taxonomy or custom fields. You will have to index the posts every time you should make a change and build the index from the following Relevanssi settings page:
- hidden link

Please do changes wisely as you have "17644" posts to index and that is a lot and it will take time when you click on button "Build the index".

Now, when I search with the "shells" keyword I can see the results:
- hidden link

#2779701

Will I need to re-index after adding additional tag words to products?

#2779733

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - if you see after adding new tags if it does not work then yes, you will have to re-index.