• Resolved Viktor

    (@grnetfreak)


    Hello,

    We’re trying to incorporate your plugin and while testing the integration with out website I noticed that when I click on a single classified listing ( /advert/classified-name-pagexy/ ) the page fails to load.

    Originally, I got a blank page and an error logged about memory exhaustion ( we had a 256mb PHP memory limit ) – this is now addressed ( double memory limit ) but now I get a 504 gateway timeout instead.

    Every other page powered by the plugin ( list with 2 shortcodes, categories and classifieds listing ) and category browsing works as expected.

    The current error doesn’t log any PHP errors.

    Any ideas?

    https://www.ads-software.com/plugins/wpadverts/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, i am not sure if i will be able to help you with that, it seems that your site has quite a lot of data or traffic or both and can barely handle it, the 50X error are thrown by server not by PHP, one way to make a workaround is to increase max script execution time https://easyengine.io/tutorials/php/increase-script-execution-time/

    Additionally if your server has a decent tech support you can reach out to them and ask them to pin point the exact part of PHP code that is taking a lot of time to load.

    Thread Starter Viktor

    (@grnetfreak)

    Hello Greg,

    The site has quite the visitors but not enough to cause this. This only happens when requesting a single classified advert, nowhere else.

    Is it possible some of your code is incompatible with memcached or dynamic php caching? ( siteground caching )

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, it is rather unlikely but possible that the code is not compatible with one of this caching mechanisms. To check it would be best to create a fresh WP installation with default theme and WPAdverts installed then see if it works or not.

    Either way, if you are using Siteground then probably the quickest way to have it resolved is to ask your hosting tech support about it, like i explained in last message.

    Thread Starter Viktor

    (@grnetfreak)

    I’m reopening this because suddenly I found the issue:

    So, in your code, if there is no content for the listing, it breaks completely in single view.

    My issue was that the single classifieds page of a demo listing broke in the middle and I was getting a PHP memory limit exhausted ( 512Mb limit )

    That’s all because the_content() was empty. Maybe you want to check that out?

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, thanks for the update, that’s a great call! There is an infinite redirect loop (on the_content action) in Ad details page when Ad content is empty.

    I am planning an update to WPAdverts Today or Tomorrow this will be fixed there.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Classified single page fails to load’ is closed to new replies.