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: php error on entry: Undefined index: field_text_direction

Status Resolved
Add-on / Version Bloqs 3.3.1
Severity
EE Version 4.0.4

Michael Coogan

Jan 08, 2018

Description:
Getting php error on entry which I .believe is related to Bloqs:

Undefined index: field_text_direction
ee/EllisLab/Addons/text/ft.text.php, line 123

PHP version: 7.0.12

#1

BoldMinded (Brian)

Someone else is reporting this too but I’m unable to replicate. Can you take a screenshot of your block expanded so I can see what fields you have?

#2

BoldMinded (Brian)

Can you provide CP login for me to take a look at the Bloqs field settings?

#3

Michael Coogan

Comment has been marked private.

#4

Michael Coogan

Just found I’m also getting an error when adding Structure field to bloq…

Warning Invalid argument supplied for foreach() ee/EllisLab/ExpressionEngine/View/_shared/form/section.php, line 20

Severity: E_WARNING

#5

BoldMinded (Brian)

The site has basic auth on it before I get to cp, what is the user pass for that?

#6

Michael Coogan

Comment has been marked private.

#7

BoldMinded (Brian)

I don’t know which block you’re having trouble with, but can you double check that the text direction field has been selected for all the Text fields?

https://screenshots.firefox.com/jBfPU9eCpgmT7hGg/basis.mc2dev.com

#8

Michael Coogan

It’s the “Four Column with Icon” bloq. Yes, looks like the radio button selected for all the “Left to Right” options.

#9

BoldMinded (Brian)

It looks like there are several Text fields in blocks. Try re-saving each block with a text field to see if it corrects the issue.

#10

Michael Coogan

Comment has been marked private.

#11

BoldMinded (Brian)

Lets fix the text direction error first.

#12

Michael Coogan

Ok, I saved all bloqs and looks like php notices have gone away for the text fields.

#13

BoldMinded (Brian)

Ok, as I suspected. The screenshot I posted was from a new block definition, and while the options are highlighted blue and each radio has checked=”checked” its not showing the radio as selected, nor saving the value the first time. This is specific to EE4 and I’m not sure why its having this behavior.

Did re-saving it also fix the Structure field issue?

#14

Michael Coogan

Gotchya…as for structure field, still getting same error.

#15

BoldMinded (Brian)

Ok, the Structure field error is something EE Harbor have to fix as its not returning the correct array in the ft.structure.php->grid_display_settings() method.

This is the change that needs to be made:

if($this->foundation->getEEVersion($major = true) == 3) {

to

if(in_array($this->foundation->getEEVersion($major = true), [3, 4])) {

Login to reply