• Resolved Peter Westerlund

    (@peter-westerlund)


    Suddenly no AJAX-loads won’t work in the admin area of the site. I can see this in the browser’s console log:

    Uncaught (in promise) Error: Svaret ?r inget giltigt JSON-svar.
    at P (admin-notices-api.min.js?ver=f64242c0f2acc73e4f26:1)

    Which means that the “answer is not a valid JSON-response”. The file is part of this plugin that’s why I ask here for help.

    Edit: Found the problem. I added CSS code with the admin_init hook instead of admin_head.

  • The topic ‘AJAX-loads doesn’t work in admin’ is closed to new replies.