Fix “Static Random Posts Widget” WordPress Plugin Page Not Found (404) Error

If you are using the latest version of Static Random Posts Widget (Version 1.1) an HTTP Error 404 (Page not found) will be generated although the plugin works fine.

The 404 error may slightly delay your page load, you can check if you have the issue with PageSpeed Online. If you have such issue “Avoid bad requests” should appear in the results with the faulty link to http://yourblog.com/wp-content/plugins/static-random-posts/js/static-random-posts.js?ver=1

The reason for the error is the plugin is actually installed in plugins/static-random-posts-widget. To fix the issue, edit  ./wp-content/plugins/static-random-posts-widget/static-random-posts.php and look for path declarations with static-random-posts and change it to static-random-posts-widget.

Alternatively, you can download static-random-posts.php.bz2 I modified and uncompress it to replace static-random-posts.php. Please backup your file first.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX Rockchip RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
0 Comments
oldest
newest
Boardcon Rockchip RK3588S SBC with 8K, WiFI 6, 4G LTE, NVME SSD, HDMI 2.1...