• Resolved meroving

    (@meroving)


    Hello, it seems that the JSON does not look good when the page loads and that is why the JS cannot show the content. When I try to mark the remote positions only, it is perfect.
    I appreciate any tips on how to resolve it.
    Error message: https://ibb.co/SnYBQGm

    The OS and plugin are up-to-date. I have tried to disable plugins, especially the caching ones, but it did not work.

    Thank you in advance!
    Regards, Meroving

    • This topic was modified 6 months, 3 weeks ago by meroving.
    • This topic was modified 6 months, 3 weeks ago by meroving.
    • This topic was modified 6 months, 3 weeks ago by meroving.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Peter Kiss (a11n)

    (@yscik8)

    Hi there! Do you have any plugin or custom code extending WP Job Manager, maybe adding fields to the job listings (eg new taxonomy)?

    I don’t see the search form on the https://www.humanityhub.net/job-board/ page, do you have a different test page with the shortcode or a staging site where it’s visible?

    I’d go by looking at the JSON response returned by the /jm-ajax requests, and check if anything stands out. (Maybe it actually returns a HTML error page from something)

    Thread Starter meroving

    (@meroving)

    Hello Peter,

    thank you for your respose. There is no any custom code on the site that is alter the plugin – I have refreshed the plugin with uninstall and reinstall. Other plugins make CPTs like The Event Calendar but this should not interfered.

    I have found the PHP file in the plugin directory that gives back the JSON for the get_listings Ajax request. I made there a temporary small code to save the return array into a file. I have checked and that was valid JSON.
    So the console message is completly nonsense to me: “parsererror: SyntaxError: Unexpected end of JSON input”

    The issue occurd after a migration to Cloudways as far as I know. Of course, I have tried to disable the not necessary plugins and all the cache plugins but this does not help.

    There is no other page with a search bar on this site. I will make a staging and I can grant you credentials today later if you can check this.

    Regards, Meroving

    To be sure we have clearly identified the cause of the error you’re seeing, I recommend you try the following:

    Try disabling all of your plugins except WP Job Manager (and add-ons). Be sure you’re using the version of WP Job Manager available at https://www.ads-software.com/plugins/wp-job-manager/ without any code modifications. Then try testing again to see if the issue persists. If that resolves your issue, you can find what was causing it by enabling each plugin one by one while continuing to test.

    It is necessary to try with all plugins, except ours, off to get the best results.

    If that doesn’t help, you can also try switching to the Twenty Twenty theme via Appearance > Themes, and test again. If the issue is resolved then you know it’s a problem with the theme, and you’ll need to contact the theme author for further assistance.

    Let us know how it goes.

    Thread Starter meroving

    (@meroving)

    Hello mobilefox,

    this was the issue: https://www.ads-software.com/plugins/wp-external-links/
    Without this plugin the job manager working as intended.

    Thanks for the help.

    Regards, Meroving

    Plugin Support Cara

    (@dcka)

    Thanks for the update, @meroving! It does seem like other WP Job Manager users have had issues with that plugin before.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Ajax error: Unexpected end of JSON input’ is closed to new replies.