Be sure to checkout our newest add-on Reading Time Pro!

Compatibility updates:

  • Publisher is EE5 compatible, but it does not currently support the Fluid field (it's in the works).

Ticket: Nesting restrictions aren’t being enforced

Status Resolved
Add-on / Version Bloqs 4.0.20
Severity
EE Version 5.2.2

Nick Johnson

Jun 11, 2019

I have an FAQs bloq that is intended to be a wrapper set to “Can only be root” and the “Can have children?” toggle is on.

I have an FAQ bloq that is intended to only be a child of the above set to “Can’t be root and must be a child of another block” and the above FAQs block is the only checked item in the Parent field.

The client has an entry with only the FAQ bloqs being used, without being nested inside the FAQs bloq, with no warnings or errors displayed on entry save.

#1

BoldMinded (Brian)

Jun 11, 2019

Do you see any JS errors? It won’t stop the entry from saving if there is an invalid nesting, it just displays a warning message above the Bloqs field.

#2

Nick Johnson

Jun 11, 2019

If I try to give an FAQ bloq a child, it does show an error: “Invalid Bloq Tree - FAQ can’t have child blocks”. But nothing is shown when the FAQ block is at the root.

JS console has multiple of the same error:

VM1385 extension_properties.js:35 Uncaught TypeError: Cannot read property ‘removeFragment’ of undefined at VM1378 extension_properties.js:35

#3

BoldMinded (Brian)

Jun 11, 2019

Can you share a video or screenshots of what you’re blocks page looks like and the settings? It’s hard to tell what is going without any assistance.

#4

BoldMinded (Brian)

Jun 11, 2019

You provided a CP login, but I avoid logging into sites unless it is a last resort. If I login, where would I go? What channel and specifically entry id can I see the issue occurring in?

#5

Nick Johnson

Jun 11, 2019

Screenshot of channel entry: https://imgur.com/z5hoI0F

FAQ should only be a child of FAQs (shown at the top), but the rest exist at the root level without a warning message shown.

The existing entry showing this issue is id 125: /admin.php?/cp/publish/edit/entry/125&channel_id=5&parent_id=23

#6

BoldMinded (Brian)

Jun 11, 2019

I’ll try to replicate this locally and take a look, but it may be a couple days before I can get to it.

#7

BoldMinded (Brian)

Jun 13, 2019

I found the issue. I’ll send you a new build soon.

#8

BoldMinded (Brian)

Jun 13, 2019

Comment has been marked private.

#9

Nick Johnson

Jun 18, 2019

Installed but still not seeing any warnings, neither when the child-only bloq is first added at root level nor if it’s moved from being a child to root level. Console shows dozens of each of these errors:

VM701 extension_properties.js:35 Uncaught TypeError: Cannot read property 'removeFragment' of undefined at VM526 extension_properties.js:35
VM526 extension_properties.js:38 Uncaught TypeError: Cannot read property 'frameURIs' of undefined at VM526 extension_properties.js:38
#10

BoldMinded (Brian)

Jun 18, 2019

Did you re-save the blocks? It wasn’t a JS fix. Need to save the blocks to fix the settings array.

Those errors you’re seeing aren’t related to Bloqs… probably a Chrome extension or something.

#11

Nick Johnson

Jun 18, 2019

Gotcha. Yes, re-saving the blocks themselves fixes the issue, and we now see a warning when the child-only block is at the root level.

#12

BoldMinded (Brian)

Jun 18, 2019

Sweet! This fix will be in the next release. I’m going to close this ticket.

Login to reply

Contact

For add-on support, please use the Support section. General inquries and pre-sale questions can be sent to support@boldminded.com.