Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Error 502 after Pressing Show More Button
- This topic has 9 replies, 2 voices, and was last updated 7 years, 8 months ago by
Ernest Marcinko.
-
AuthorPosts
-
September 13, 2018 at 9:10 am #19163
letsbastel
ParticipantHi, we have a problem with the Show More Button, that will generate An Error 502.
Here is a screenshot from the Error Log at this Time: https://ibb.co/mwXo9e
Thanks
BjoernSeptember 13, 2018 at 1:13 pm #19171Ernest Marcinko
KeymasterHi Bjoern,
Can you try changing this option to ‘post’ instead: https://i.imgur.com/cuwtCJC.png
It should affect the URL structure and use a POST method instead. If there was an issue with how ngix server resolves them, then this should solve the problem.
September 13, 2018 at 1:44 pm #19173letsbastel
ParticipantHi, now the URL is looking like this: https://heimwerker-helden.de/?s=schleifer but the result is the same 🙁
You can try it by yourself https://heimwerker-helden.de and type “schleifer” for example.
-
This reply was modified 7 years, 8 months ago by
letsbastel.
September 13, 2018 at 1:54 pm #19175Ernest Marcinko
KeymasterHi,
Then the error is on the server side, possibly a PHP error somewhere, that is not reported. Can you please add temporary FTP and back-end details?
The only way is to debug the code line-by-line to see if there is a conflict somewhere that may cause the error to pop-up. Thank you!September 13, 2018 at 2:13 pm #19178letsbastel
ParticipantYou cannot access this content.
September 14, 2018 at 11:24 am #19186Ernest Marcinko
KeymasterYou cannot access this content.
September 14, 2018 at 12:01 pm #19189letsbastel
ParticipantYou cannot access this content.
September 15, 2018 at 10:23 am #19199Ernest Marcinko
KeymasterHi,
Thank you for clarification. I have found the problem. Because the results override was active, the non-post results are also passed to the theme. However it looks like, that there is an issue displaying them, when the plugin forcibly sets the post type of non-post type results to ‘post’.
Anyways, I have added this custom code to the child theme functions.php to bypass that:
Please keep this code there, and more it to the production as well. That should resolve the issue permanently.
September 17, 2018 at 9:39 am #19223letsbastel
ParticipantHi thank you for your solution. It is working very well 🙂
September 17, 2018 at 9:47 am #19225Ernest Marcinko
KeymasterYou cannot access this content.
-
This reply was modified 7 years, 8 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.