• Resolved angelinazooma

    (@angelinazooma)


    I am trying to edit a pod and I am getting AJAX errors.

    Error: Invalid AJAX Request

    Trying to recreate the problem I’ve learned that it seems to only be happening to Custom Post Type – I have a custom settings page, ACT, and extended the post and they’re all updating fine, it’s only a Custom Post Type that is having this problem.

    I deactivated all other plugins and the problem still occured.

    I started creating another Custom Post type with the same options as the other. I added fields until the problem occured there too. It seems to happen more when there is a Relationship field with simple custom defined list option. If there are a ton of options in there, everything fails.. but if there’s only 2 options, it works.

    The more fields I add, the slower the update is. This is a new thing, I use pods all the time and it’s not normally this slow to update.

    I’ve tried using the console to troubleshoot. Watching the Network tab it just returns the same info:
    Invalid AJAX request
    wp-admin/admin-ajax.php?pods_ajax=1&action=pods_admin&_fs_blog_admin=true

    WordPress 5.6.1
    Pods Version 2.7.26

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @angelinazooma

    It seems to happen more when there is a Relationship field with simple custom defined list option. If there are a ton of options in there, everything fails..

    Do you mean you have a custom relationships field with a lot of options?
    If so, how many?
    Could you share the Pod package for this CPT here? (See component Migrate Packages).

    The more fields I add, the slower the update is. This is a new thing, I use pods all the time and it’s not normally this slow to update.

    This is quite logical, the more data that needs to be processed, the slower your system will get.
    The speed/resources of the server and PHP version etc. are important here too.

    Cheers, Jory

    Thread Starter angelinazooma

    (@angelinazooma)

    This is quite logical, the more data that needs to be processed, the slower your system will get.

    Yeah, i know ?? I’ve got this system running on a couple of sites and none of them have had this problem until this week.

    So I tried to include the migrate package here but it is apparently too much text for this forum to handle, is there another way I can provie that info?

    Thread Starter angelinazooma

    (@angelinazooma)

    Do you mean you have a custom relationships field with a lot of options?
    If so, how many?

    yes, specifically I have created a field with a dropdown for “country” which means there is an entry for every country……

    — update —

    investigating that field it appears that something has gone wacky with one of the country options, there are a bunch of options missing and a whole whack of ///// in the middle of this array

    Removing all of that has fixed the problem… however this means I have something else to fix

    This pod will be updated somewhat frequently and it looks like it’s throwing in extra escape slashes every time it’s being updated. How do I correct for this while retaining the single quote in the country name?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @angelinazooma

    Thanks for your latest update. That explains a lot about this issue!
    This is probably because of some characters in your country list.
    Could you try to apply the following patch? I believe this might fix your issue as well!
    https://github.com/pods-framework/pods/pull/5910

    Please let me know!

    Cheers, Jory

    Plugin Author Jory Hogeveen

    (@keraweb)

    Closing topic due to no reply, feel free to reopen if you still need help!

    Cheers, Jory

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Unable to edit pod’ is closed to new replies.