• Hello, even though NewStatPress advertises that 505 server errors should no longer be an issue as they were with the old statpress plugin, I get a 505 server error anytime I try to change my graphs to show more than 7 days.

    EDIT: Apologies, it looks like it is a 504 error. Gateway timeout.

    How do I resolve??

    https://ww.wp.xz.cn/plugins/newstatpress/

Viewing 1 replies (of 1 total)
  • Plugin Author ice00

    (@ice00)

    hi,

    this is usually given when database is becoming big.
    This is not a problem in inserting new data as this not slow down the site. Else with new AJAX managing even the aggregate data shows into a page did not get problems.

    Instead when you ask the DB to extract the data and shows result like in overwiew page from the PHP script, all service providers has set up max 15 second of timeout for PHP script.

    So the DB need more time to extract data from the (big) database but PHP script is forced to terminate by the provider: you get so the 504, 404 or similar error depending by yuor server.

    Somethimes if you try more times to show the overview you get the result: this is becouse the DB has cached the results and does reply in short time.

    How to resolve?

    You need to attend that external API will be terminated.
    External API uses AJAX call in asyncronous way, so you have that the pages is loaded in zero time and then the data from database will arrive when available.

    External API need lot of coding (actually it has only one function implemented used by Multi-Newstatpress to manage many Newstatpress sites in one page) so it will be ready in some months.

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘505 server error’ is closed to new replies.