Support » Localhost Installs » Javascript console always shows 404 error for /null

  • Resolved rwgomez

    (@rwgomez)


    Every WordPress site I am building shows 404 (Not Found) error in the Javascript console for a file called null. I have confirmed that this happening on a clean install of WP 5.9.3 without any plugins, settings changes, or database edits. This error looks like this for every page/post on the site:

    GET http://wptest.local/2022/04/18/hello-world/null 404 (Not Found) wptest.local/:344

    The referenced line number (in this case 344) is simply the last blank line of that page’s rendered HTML.

    Saving my permalinks in tools gets rid of the error for anonymous users but the error remains if I am logged in to my site despite this.

    What’s going on, is there any fix for this?

    • This topic was modified 5 months, 2 weeks ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    The query WP makes cannot find any resource called “null”, hence it returns a 404. Why does /null appear in permalinks or why is it requested? It’s abnormal in a typical WP installation.

    If it is supposed to do something specific, similar to /feed, it needs an added rewrite endpoint that tells WP how to handle such a request. If such an endpoint has been added for that effect, flush the rewrite rules to make it active by visiting the permalinks settings screen (no need to save anything, just load the screen).

    Thread Starter rwgomez

    (@rwgomez)

    As I mentioned, this is a 100% clean install of WordPress (WAMP Win10, but I also see the exact same 404 error on Pantheon, MediaTemple, Bluehost installs).

    Something in the core install is looking for /null on every page request. I have no idea what it is or if there’s a basic setting I’m missing.. If you want a see it in action, open the Web Dev console on these sites (all on different hosts):

    http://robertgomez.org/
    https://sabrahealth.com/
    https://incohoat.com/

    I have re-saved permalinks on all these sites and the error persists, even for anonymous users.

    Thread Starter rwgomez

    (@rwgomez)

    I’m beginning to suspect this might be something in my Chrome browser setup. I am seeing the error on this forum Web site too! But not in Edge. I’m investigating further…

    Thread Starter rwgomez

    (@rwgomez)

    I found found the problem! It was the <i>CrxMouse Chrome™ Gestures</i> Chrome extension. I will report this to the extension author.

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