• Resolved jessicasantacruz

    (@jessicasantacruz)


    Hello, After updating the software on our site, we are now receiving an error when trying to add or edit custom posts. When we try to add or edit custom posts, the add/edit page shows without the stylesheet and gives this error in the console: “XMLHttpRequest cannot load …/wp-admin/admin-ajax.php?due to access control checks.”

    I look forward to hearing any suggestions you may have on troubleshooting this issue.

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Sounds like it’s more of a server configuration issue more than anything that CPTUI handles. What sort of software updates?

    Are you seeing the same thing with other post types like normal posts/pages or some other post type not registered by CPTUI but isn’t a core post type?

    Thread Starter jessicasantacruz

    (@jessicasantacruz)

    Hi Michael,

    We updated the theme and plugins on the site and the host did also switch to a different server. Prior to that, we were not seeing these errors.

    No, I am not seeing the same thing with pages or other normal posts. I am able to edit/add pages and posts not in a custom category.

    Thanks so much for getting back to me so quickly,
    Jessica

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Given the errors originally provided + the server switch, chances are there’s new things going on with the server that are affecting this. The error is a server-level configuration error.

    Thread Starter jessicasantacruz

    (@jessicasantacruz)

    Thanks for all your help, my host was able to fix the errors. It was due to the http/https configuration most likely.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Glad I could help one way or another, to help locate the source of the issue.

    Thread Starter jessicasantacruz

    (@jessicasantacruz)

    Hi Michael,

    I have another question for you. 

    Do you think there would be an issue if I created a WP post category with the same name as one of my custom post categories?

    I’m having trouble getting the pagination to work on my custom posts and I think it’s because the theme’s post listing element is not recognizing them. I was thinking of assigning a WP post category with the same name as my custom post category to those posts to try and get it to work.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I assume you mean like the category term “Uncategorized” and then also making a term of “Uncategorized? in say my_taxonomy? Shouldn’t be any issue with that type of thing.

    If you’re trying to get pagination to work for a custom WP_Query, then I’d check out https://docs.pluginize.com/article/cleanly-done-pagination-with-custom-wpquery-objects/ as a possible solution.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Ajax Error on Custom Post Admin Pages’ is closed to new replies.