This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 1 year, 11 months ago.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Error message after adding character removal script
This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 1 year, 11 months ago.
I tried to add the script to remove characters from search string in this article:
https://knowledgebase.ajaxsearchpro.com/miscellaneous/other/replace-or-remove-characters-from-search-phrase
The removal seems to be working but if I hit enter with nothing in the search box I get this error on the Woocommerce shop page:
Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/dev.circuitassembly.com/public_html/wp-content/themes/divi-child/functions.php on line 40
at the top of the results page.
Can you please tell me what is wrong?
Hi,
That script will not work with empty removals. Instead of the custom code for that, try the built in features here: https://i.imgur.com/HzlV4E0.png
Best,You must be logged in to reply to this topic.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |