• Resolved chcw

    (@chcw)


    Hi,

    From time to time, WP Job Manager will show errors when loading job listings. The error is

    404 /jm-ajax/get_listings/ not found.

    But I cannot find a file or a post with that URL. So what is it and where is it?

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi there @chcw,

    Can you link to a screenshot or screencast, or a screenshot of your devtools showing the issue? I suspect it could be somehow similar or related to this issue we have addressed in the past.

    Thread Starter chcw

    (@chcw)

    Hi, @erania-pinnera

    Please check the error below(I add a link to the original image since the embedded one is too small):

    This occurs for many times. Each time when I go to “Settings > Pemalink”, and then save without any changes. Then the error will disappear.

    Then it seems when I clear the cache with WP Rocket and Cloudflare, then the error will occur again.

    I check and these is no such a file called https://www.datanumen.com/jm-ajax/get_listings/

    • This reply was modified 1 year, 9 months ago by chcw.
    • This reply was modified 1 year, 9 months ago by chcw.
    Plugin Support Deric (a11n)

    (@dericleeyy)

    Can we know what version of WP Job Manager and WordPress are you running?

    From your findings, it sounds as though as there some conflict between WP Rocket and WP Job Manager. Could you try excluding the Job Listing page from caching to check if the same error persists?

    Thread Starter chcw

    (@chcw)

    Hi, @dericleeyy

    WP Job Manager version is 1.40.2.

    WP version is 6.2.2

    Both are the latest version.

    I have excluded /career/ subdirectory from WP Rocket Cache.

    Now I have added /jm-ajax/get_listings/ from cache, though I don’t think there is such a file.

    Thread Starter chcw

    (@chcw)

    Finally, excluding /jm-ajax/get_listings/ from WP Rocket cache solve the issue. I need to wait for more time to see if it is really solved.

    Thread Starter chcw

    (@chcw)

    By the way, is /jm-ajax/get_listings/ a javascript? I am thinking of adding it to ?JavaScript files to be excluded from delaying execution

    Thread Starter chcw

    (@chcw)

    Now the problem occurs again, but a little different:

    The larger version is at https://www.datanumen.com/temp/images/jm-ajax-error(with no cache get_listings).jpg

    • This reply was modified 1 year, 9 months ago by chcw.
    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi @chcw,

    Thanks for sharing the latest screenshot. I have asked our developer to take a look at it.

    We’ll circle back here as soon as we hear from then. Thanks for bearing with us meanwhile!

    Thread Starter chcw

    (@chcw)

    Thank you very much.

    Plugin Author Mikey (a11n)

    (@mikeyarce)

    Hi @chcw, thanks for the screenshot! Looking at the 404, it looks like it might be cached by Cloudflare, which could be causing the issue. Could you exclude that URL from being cached by Cloudflare?

    When a 404 happens, it means that the server can’t reach that endpoint, so likely it’s been cached or the permalinks have changed so that the URL has changed.

    Hope this helps!

    Thread Starter chcw

    (@chcw)

    Hi, @mikeyarce

    Thank you.

    But I have already excluded it from cloudflare Cache, see the following page rule:

    And if you use Chrome to see the response header, you get no-cache, must-revaliate and max-age=0, see below:

    Thank you.

    Plugin Author Mikey (a11n)

    (@mikeyarce)

    Hi @chcw, thanks for checking that! Do you have any other plugins that mgiht be restricting access to pages? I would try deactivating all other plugins and seeing if you still get this error. It might be something that’s restricting admin pages or api pages with some kind of authentication?

    Thread Starter chcw

    (@chcw)

    @mikeyarce

    1. We have .htaccess protect of /wp-admin subfolder.
    2. We have Asset Cleanup Pro that will unload WP Job Manager except for /careers/ and /job/ pages.

    However, even I disable the above two, the issue still exists.

    Thread Starter chcw

    (@chcw)

    Hi, @mikeyarce

    Other than Chrome error log. Is there any place that I can find more detailed log of this error for diagnose?

    Plugin Author Mikey (a11n)

    (@mikeyarce)

    Hi @chcw, I would check with your host to see if there are any PHP Error logs that might give you a hint as to why the page is not loading.

    Have you tried disabling all plugins except WPJM to see if it works in that case? Then you could enable them back one at a time to see which one might be causing a conflict.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Where is the /jm-ajax/get_listings/ post/file?’ is closed to new replies.