PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Started getting WP_Error Object error

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
12

Hi, a site I look after has started showing an error when trying to use a search/filter form

WP_Error Object ( [errors] => Array ( [invalid_taxonomy] => Array ( [0] => Invalid taxonomy. ) ) [error_data] => Array ( ) [additional_data:protected] => Array ( ) )

Not sure how long this has been going on for. We have MDTF version 2.2.9 installed (not sure if it has recently been updated - someone else looks after plugin updates)

Would really appreciate your help trying to fix it. Happy to pay a bit for some additional support for you to fix.

 

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png

Update  the  plugin  to  latest  version - https://wp-filter.com/howto/how-to-make-auto-update-for-wordpress-plugins-and-themes-bought-on-envato/

I have just repurchased as was previously purchased through old developer and I didn't have access. Have updated the plugin to the latest version and have added my license key to the private data. Am still getting the error. Would appreciate any help you can give. Thanks

Hello

I fixed the fatal error.

But it looks like the filter was not configured, and now there are problems with the display template

Did the filter work before?

Ok we're getting there..  yes, the filtering and everything has been working perfectly for years. Not sure why it has suddenly stopped working.

I see that all the searches return 0 results now. And if you enter no filters and press search it takes you to the about page

 

hello

Can  I  disable  plugins to  test?

Yes you can. What did you edit to fix the fatal error?

If we can't fix it soon we will have to try and roll back to a backup as client is losing out on enquiries

 

 

Our developer will take care of it today

Hello

Ok! I see you rolled back to the old version of the plugin

Hi again, yes the client had to roll back before you got a chance to fix things. They have since tried to update again and got the same error (Have rolled back again now)

I have taken a clone of the site and done some investigating. It looks like the problem occurs when updating ACF from version 5 to 6

I have updated the private credentials with the dev site logins etc. You will see the search is all currently working. But if you update ACF then the error will come back.

Are you able to investigate for me? would really like to get it fixed

Thanks

 

Hello

But if you update ACF then the error will come back. - I can't update this plugin - https://share.pluginus.net/image/i20230626183458.png

Sorry, you should be able to now

Hello

Please  do a test

Thanks, the search seems to be functioning but the results output is different to how it was. (looks like the dev site is outputting to the search template, but the live site to an archive template) I have added the live site url into the private data on this post so you can compare

Ok!  Please  do a test

Thank you. The template now seems to be working ok. But the world"NULL" gets printed at the top of the page - could you fix this.

Could you please let me know what the issue was and what was updated or what files? I will need to replicate the fix on the live site next time we do updates

Jon

Removed

Hello

But the world"NULL" gets printed at the top of the page - Done!

In file - \wp-content\plugins\meta-data-filter\index.php - I  added code - https://share.pluginus.net/image/i20230630102701.png

$proi_array = array('acf-post-type','acf-taxonomy','wpcf7_contact_form');
if ($output_tpl == 'search' && !in_array($query->query['post_type'],$proi_array)) {

The problem is that displaying the result in this template is a side effect. The correct operation is displayed in the search template - https://share.pluginus.net/image/i20230630102958.png

Many thanks for your help. this appears to be working correctly now and have updated the live site.

Will this fix be added into the plugin files - so we can update the plugin in future and it not get overwritten?

- so we can update the plugin in future and it not get overwritten?  - Unfortunately yes, you need to update this code after installing the new version - Because - https://share.pluginus.net/image/i20230630132141.png

12