Sphinx Question

tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Sphinx Question

Post by tubeman »

Hi, thanks. I am seeing alot of these kind of errors in logs:

2020-07-08 11:00 Eval error type 0 at line 43 at URL /videos/Hot-mature-lady%27s-young-boys/1/ :: syntax error, unexpected 's' (T_STRING), expecting ',' or ')' template:

Some Users while searching are are using quotes for example lady's or movie's which is throwing error on pages. How to avoid these kind of errors?
admin
Site Admin
Posts: 37233
Joined: Wed Sep 10, 2008 11:43 am

Re: Sphinx Question

Post by admin »

Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Sphinx Question

Post by tubeman »

Hi, I checked code and don't see any php errors in code, this is happening when user puts a single quote in the search term for example :

movie's
video's

Its the ' that is causing the error along with %27. Any idea how to fix this?
admin
Site Admin
Posts: 37233
Joined: Wed Sep 10, 2008 11:43 am

Re: Sphinx Question

Post by admin »

100% there's an error in your code
eval - means user code

just for test you can remove you php code and you won't receive those warnings
Don't forget to run script update
Post Reply