Jump to content
GreatWebDeveloper

Prestashop 1.7.6.5 Search Returning 404 Page

Recommended Posts

Posted (edited)

Hi 

My siteb is returning 404 when i try to search a product in the search bar.

  • I tried rebuilding the index,
  • Clear the cache
  • Deleted htaccess
  • Enabled Search Within a word

But no luck. Can someone help me resolving this? 

Edited by GreatWebDeveloper (see edit history)

Share this post


Link to post
Share on other sites

Well, GreatWebDeveloper, did you set the Debug to On so the error/warning messages can be displayed?

You can pinpoint the issue reading those.

Share this post


Link to post
Share on other sites

@Rhobur Thanks for your message. Gettng this error 
Fatal error: Access level to SearchController::$search_string must be protected (as in class SearchControllerCore) or weaker in /home/infini11/public_html/override/controllers/front/listing/SearchController.php on line 71

Can you suggest any fix?

Share this post


Link to post
Share on other sites

You need to redeclare that method, /home/infini11/public_html/override/controllers/front/listing/SearchController.php on line 71, as protected, or public.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More