cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
279 stars 83 forks source link

Seeing "Sorry. No data so far" After Update (Plugin and WordPress) #183

Closed VoltaicShock closed 6 years ago

VoltaicShock commented 6 years ago

I updated the plugin and now I am seeing "Sorry. No data so far". It has been like this for a few days. I have looked at the FAQ and tried what was suggested and nothing seems to be working.

It was working as of 5/22/2018. After a plugin update and WordPress update it stopped working and hasn't been tracking for a few days.

cabrerahector commented 6 years ago

Hi Terry!

In order to help, I'm going to need some more details from you. Let's start with the basics:

VoltaicShock commented 6 years ago

Hello!

cabrerahector commented 6 years ago

Thanks!

Ok, when the plugin tries to update the views count of any post or page on your site, the server responds with a 403 Access Forbidden error (see screenshot). Are you using a security / firewall plugin?

VoltaicShock commented 6 years ago

Here is a list of plugins that might be causing the issue:

HTTP headers to improve web site security Security Headers WP Cerber Security & Antispam

Could any of those be causing the issue?

Thank you for getting back to me so quickly.

cabrerahector commented 6 years ago

Can't tell, I don't use any of those :P If I had to guess, I'd say it's WP Cerber Security & Antispam.

A quick way to find out:

  1. Disable all three plugins.
  2. Visit any of your posts using your browser's Incognito mode (or another browser).
  3. If your visit was registered (you'll see it in the Stats section) then it is one of these three plugins what's preventing WPP from updating the views count. Enable one of them and go back to step 2.
VoltaicShock commented 6 years ago

Sorry for the delay. The issue was WP Cerber Security & Antispam. There is a setting to turn off REST API in WordPress. I turned off that feature and everything seems to be working now.

cabrerahector commented 6 years ago

Don't worry about it, I'm glad you were able to work it out :)

VoltaicShock commented 6 years ago

Thanks! I am just glad it was something simple.