› Forums › Post Pay Counter PRO › Support › Stats page timing out – 502 errors
We are based in Europe with a GMT+1/GMT+2 time zone - support replies may be delayed due to time zone differences with your country.
- This topic has 4 replies, 2 voices, and was last updated 7 years, 10 months ago by Stefano.
-
AuthorPosts
-
January 25, 2017 at 6:23 pm #54232Tyler JohnsonGuest
Hello Stefano,
We have a site that gets 5 million page views per month and it’s using the Pro version of the plugin. (If you need our developers licesnse, let me know) When trying to go to the stats page the page is timing out and we’re getting 502 errors. We’re using Analytics to pull in page data and we’ve changed the performance settings on the options page of the plugin so that it’s running as efficiently as possible. But, I’m afraid that with the amount of users we have and views we have that the plugin is having issues loading.
We talked to our host, WP Engine, and they said they were seeing thousands of hits on admin-ajax when trying to access the stats page. Is there any way to resolve this issue? Thanks for your help!
January 25, 2017 at 10:46 pm #54240StefanoKeymasterHi Tyler,
we have taken extra care in making sure the plugin works with huge websites but, at some point, the plugin simply has to process too much data at once to be able to provide stats in a reasonable time. Anyway, stats page loading should be made difficult by the amount of posts you are trying to load, rather than the amount of visits. The impact the plugin has in relation to Analytics visits can be tweaked in the Analytics settings box by setting a lower number of rows to process per page load 🙂I am here providing you a way that should allow you to load the stats page and determine how much data the plugin can handle on your website at once.
- Go to Options > Miscellanea > Default stats time range, choose Custom number of days and set it to 1.
- Go to the stats page. It should load, displaying only data from one day.
- Tweak the time range, selecting wider and wider time ranges and try to determine how far you may go.
- Another possible option we have conceived for huge sites is the user role picker (or, at worst, the user picker), which allows you to filter out stats per user role (or single user). This allows to reduce the data the plugin has to handle.
We talked to our host, WP Engine, and they said they were seeing thousands of hits on admin-ajax when trying to access the stats page
This sounds weird: there should not be any AJAX requests while loading the stats page…
Does this help?
Have a nice day,
StefanoJanuary 27, 2017 at 8:28 pm #54257Tyler JohnsonGuestHey Stefano,
We went into the options and tried to change the date, but now for some reason, we’re getting a “You do not have access to this page” error. We pushed the site to a staging area, deactivated all other plugins, and changed the theme to Twenty Sixteen and we’re still having this issue. It’s really odd. Any ideas on what to try?
January 27, 2017 at 8:49 pm #54259Ted SlaterGuestI’m on the same team as Tyler.
I duplicated the site from live to staging, and disabled all plugins except for the PPC plugins. Still couldn’t get it to work.
Then I disabled the plugins and re-enabled them … and now I can view the stats. Crazy! The settings were all different, maybe reset to default. But at least I can view stats without crashing the site. Now I’m re-importing data from Dec. 1 … here’s hoping this was all it took!
January 28, 2017 at 3:21 pm #54268StefanoKeymasterHi guys,
sorry for the delay in the reply.We went into the options and tried to change the date, but now for some reason, we’re getting a “You do not have access to this page” error. We pushed the site to a staging area, deactivated all other plugins, and changed the theme to Twenty Sixteen and we’re still having this issue. It’s really odd. Any ideas on what to try?
This can happen either if PPC is disabled (which doesn’t seem to be your case) or if your user is missing the post_pay_counter_access_stats capability. Maybe you have tweaked permissions with a custom User Role Editor and for some reason you unticked that?
Then I disabled the plugins and re-enabled them … and now I can view the stats. Crazy! The settings were all different, maybe reset to default. But at least I can view stats without crashing the site.
I really have no idea of what could have happened, sorry!
Now I’m re-importing data from Dec. 1 … here’s hoping this was all it took!
Let me know if you need any more help! 🙂
Have a nice day,
Stefano -
AuthorPosts
- The topic ‘Stats page timing out – 502 errors’ is closed to new replies.