Page 1 of 1

Broken search on only one search term

Posted: Mon Apr 16, 2018 10:05 pm
by zachair
This weekend our site stopped working when the search term is "axle" all other searches work just fine including "axles". The error log gives shows:
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4752 bytes) in ...(file location)...system/library/image.php on line 26
From what I understand that error means an image is too big to be uploaded, but we're not uploading anything, just doing a search in the basic opencart search. Any ideas of where I can start looking?
Opencart 2.1.0.1

Re: Broken search on only one search term

Posted: Mon Apr 16, 2018 10:47 pm
by MrPhil
That is very strange. Are you saying that a search for axles works fine, but a search for axle gives an image-related problem? Does axles return the same hits that axle is expected to, or far fewer (or none)? I'm wondering if perhaps axle gives a huge number of returns that is overflowing something?

Re: Broken search on only one search term

Posted: Mon Apr 16, 2018 10:51 pm
by zachair
From what I can tell, axle should give about 10 more hits than axles. The term axle breaks search on both the front and back end, with the same error showing up in the error_log

Re: Broken search on only one search term

Posted: Mon Apr 16, 2018 11:48 pm
by straightlight
By focusing on the error message provided, I would suggest to view this topic on StackOverFlow: https://stackoverflow.com/questions/178 ... o-allocate

Re: Broken search on only one search term

Posted: Tue Apr 17, 2018 1:19 am
by OSWorX
I rather would assume, that one of your images (jpg) is either corrupt or too big!
Has nothing todo with the search and the used term.

Re: Broken search on only one search term

Posted: Tue Apr 17, 2018 5:09 am
by zachair
I found a large image that once I resized down the search started working again. Thanks ll