Support » Plugin: WordPress Popular Posts » Ajaxify is giving 404 Error

  • PG



    I am using WP Rocket plugin and wordpress 6.

    As I enabled Ajaxify option I am getting 404 error in my console where I am using popular posts widget for

    {"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}

    I also cleared all cache possible after activating ajaxify option.

    I have made sure that the REST API is not blocked for wordpress popular posts.

    Can you please help

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Héctor Cabrera


    Hi @parulgarg2,

    A 404 error would mean that either WordPress Popular Posts is not active on your website and so its API URL doesn’t exist (but from what you said that shouldn’t be the case) or that something is interfering with it.

    Try following the Troubleshooting instructions and report back your results.

    Thread Starter PG



    I have tried all troubleshooting possible on our staging site.
    Using Health check plugin, I changed to default theme, deactivated all plugins possible but still same issue.

    Here is the debug info by WPP

    Plugin Configuration
    Performance Nag: Dismissed
    Log Limit: Yes, keep data for 45 days
    Log Views From: Everyone
    Data Caching: No
    Data Sampling: No
    External object cache: No
    System Info
    PHP version: 7.3.33
    PHP extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, enchant, hash, fileinfo, filter, ftp, gd, gettext, gmp, SPL, iconv, session, intl, json, mbstring, standard, mysqlnd, pcntl, mysqli, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, imap, shmop, SimpleXML, soap, sockets, sodium, exif, sysvmsg, sysvsem, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, memcached, ionCube Loader, Zend OPcache
    Database version: 5.7.32-35-log
    InnoDB availability: DEFAULT
    WordPress version: 5.9.3
    Multisite: No
    Active plugins: Advanced Custom Fields 5.12.2, Elementor 3.6.5, Elementor Pro 3.7.1, WordPress Popular Posts 5.5.1, WPML Multilingual CMS 4.5.6
    Theme: Twenty Twenty (2.0) by the WordPress team
    Plugin Author Héctor Cabrera


    Hi @parulgarg2,

    Just checked your debug info and nothing caught my attention.

    Other things I’d check:

    • Make sure that your site is using a “pretty” permalink structure (see Using Permalinks for more details). In my experience this is required for the REST API to work as expected.
    • If your hosting provides its own page caching mechanism try clearing its cache.

    Also, if possible please share your staging site’s URL so I can have a look.

    Plugin Author Héctor Cabrera


    Unfortunately that’s not allowed on this site. From WordPress Forums Guidelines – The Bad Stuff:

    Do not post email addresses, ask others to post their email or solicit contacting people off of the forums.

    Do not post, offer, or ask for login information, even test IDs and test passwords

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.