Website sections controlled via metaboxes not showing after certain amount loade

Support General Website sections controlled via metaboxes not showing after certain amount loadeResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12943
    Vladimir MujakovicVladimir Mujakovic
    Participant

    Hello,

    I have been working on a theme with modular website sections (Hero, CTA section, team section etc) and I have been using MB group and other MB plugins to dynamically render sections on the front end.

    Website sections metaboxes

    In the image above you can see what the wp admin looks like for a page. I can create a new section with the add more button and then select from the dropdown which section I want, as seen below.

    sections dropwdown

    All of this works like a charm, each section comes with its own settings where I can change the sections heading, subtitle, images etc. I am able to manage all the content via the data from the metaboxes.

    I recently ran into an issue where after I have loaded 11 or 12 sections in the admin, I am no longer able to render any additional sections. I would select a new section as previously and hit 'Publish', everything would save as normal but when I refresh the admin page the most recently (last) added section would disappear, like it was never saved. It is also not rendering in the front end. This happens at around section 11 or 12, there is no rhyme or reason. I have no errors or anything. All the content still works, for the sections that were saved.

    What could be the cause here? is there an internal limit to how many metaboxes you can display? This just doesn't make any sense.

    #12947
    Anh TranAnh Tran
    Keymaster

    This might relate to PHP's configuration. Please take a look at this solution.

    #12957
    Vladimir MujakovicVladimir Mujakovic
    Participant

    I was able to change the value via my .htaccess file, thank you!

    Are there adverse effects from increasing this value?

    And is there a better way to structure my metabox function so as to avoid this in the future?

    I enjoy having the ability of adding the website sections dynamically via the dropdown and would like to maintain that modularity.

    #12960
    Anh TranAnh Tran
    Keymaster

    I don't think there's any side effect. This configuration only increases the number of inputs submitted.

    To avoid this issue in the future, reducing the number of inputs is the best way. However, I guess it's not feasible in this case. But as long as you keep the max_input_vars high, you don't need to worry about that.

    #12972
    Vladimir MujakovicVladimir Mujakovic
    Participant

    Thank you, this was very helpful.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.