Metabox group and admin-ajax.php

Support MB Group Metabox group and admin-ajax.php

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #7341
    Anh TranAnh Tran
    Keymaster

    Glad that 1 problem is resolved. I tested on your website yesterday and didn't see the bug of admin-ajax. Looks like I didn't clone enough. Will try more.

    By the way, is there any security rule applied on your website?

    #7356
    grafikgrafik
    Participant

    Thanks, do you get the admin ajax error on the test page when you load it?

    #7369
    Anh TranAnh Tran
    Keymaster

    Hi again,

    I tried to add images to this post and it still works. Looks like you set up max_clone. Do you see any error on that page?

    #7371
    grafikgrafik
    Participant

    Hey,

    For a post type it's fine (it uses a different template), the error only happens on the pages post type, using the projects template, with more than 16 cloneable items:

    eg https://vspicer.com/wp-admin/post.php?post=843&action=edit

    #7372
    grafikgrafik
    Participant

    Also my host was suggesting it might be a max_input_vars problem? Thoughts on that?

    #7389
    grafikgrafik
    Participant

    Hi Anh, thanks for your efforts at getting to the bottom of this bug, I've decided to re-code the page a different way not using the group extension. It seems that WordPress or the extension do not play well with a larger amount of cloned items.

    #7390
    Anh TranAnh Tran
    Keymaster

    Hi,

    Sorry for late reply. I had a personal problem yesterday and couldn't be online.

    I've just read your reply and I think max_input_vars makes sense. It's the PHP configuration, which limits the number of variables submitted via $_POST. By default, this number is set to 1000. If you have a lot of groups (clones), with many fields inside each clone, the total variables might be greater than 1000. Also note that the number of variables includes WordPress variables (title, categories, post status, etc.).

    This is a good discussion on StackOverflow about this problem. I think, rewrite the code to reduce number of fields / inputs is a good way to get rid of this issue. Or you can try increasing the max_input_vars.

Viewing 7 posts - 16 through 22 (of 22 total)
  • The topic ‘Metabox group and admin-ajax.php’ is closed to new replies.