Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Bloqs Reproduce Endlessly, Break Entry Saving

Status Resolved
Add-on / Version Bloqs 5.0.12
Severity
EE Version 7.3.12

Doug Black

Feb 29, 2024

Similar to https://boldminded.com/support/ticket/2836 but somewhat different

I have a Bloqs site with larger pages that seems to break when adding new bloqs.

After creating the page, when I add a new Bloq, the bloq duplicates itself when trying to save. If I do save, a number of fields within the bloq are no longer showing (so the bloq, once expanded, is empty). After that happens, when trying to save, I get an EE/PHP error cannot call getCustomFields() on null.

EE7.3.12 Bloqs 5.0.12 PHP8.0

How To Reproduce Steps to reproduce the behavior:

  1. Create entry with a number of bloqs
  2. Save it.
  3. Edit that entry by adding another bloq.
  4. Save it.
  5. Bloq will duplicate endlessly

Environment Details: - Version: 5.0.12 - PHP Version 8.0 - MySQL Version 8.0 - OS: Ubuntu - Web Server: nginx

#1

Doug Black

Comment has been marked private.

#2

BoldMinded (Brian)

That stack trace doesn’t touch any Bloqs files, and it’s failing on getAllCustomConditionalFields(). Have you tried removing whatever conditions you have on any fields? Or, share screenshots with me what the conditions are so I can try to replicate it.

#3

Doug Black

There are no conditions on any fields, and the only field in this channel is the Bloqs field.

#4

BoldMinded (Brian)

Well, something weird is going on, and since the stack trace doesn’t include any Bloqs files, it seems like something is happening further up the chain. I’ve never seen anything like this before.

What is your max_input_vars set to?

#5

Doug Black

It is set to 1000. Should it be higher?

#6

BoldMinded (Brian)

Yep. You should be seeing something like this on the Bloqs settings page if it’s set to 1000. The min recommended is 2000. I run mine at 5000.

Have you tried to replicate the issue on a brand new entry, or an entry with a Bloqs field with only 2 or 3 bloqs in it? Does it exhibit the same behavior?

#7

Doug Black

Dang, that was it. I turned the max_input_vars up to 5000 and it works just fine. Thanks Brian!

#8

BoldMinded (Brian)

I’m curious though that you were not seeing that warning message.

Login to reply