[ad_1]
Hi @aapc,
That PHP warning is intentional, and will show up on your log if:
- You have some custom JS code POSTing to /wordpress-popular-posts/v1/popular-posts to update views count, or
- You’re using a caching plugin on your site and your site is serving an outdated version of wpp.min.js
If it’s the first one then you’ll need to update your JS code so POST requests are sent to /wordpress-popular-posts/v2/views/[ID] (where ID would be the post / page / CPT ID).
If you’re not running any custom code but you have a caching plugin installed on your site then clearing its cache should make sure that your site is serving the latest wpp.min.js script which does use the new endpoint.
Thread Starter
aapc
(@aapc)
I had cleared the WP Rocket cache after updating the plugin but after clearing the cache from the hosting control panel, the warnings seem to have stopped. Thanks for the help and I appreciate the quick response!
