All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

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: Error message when clicking on the Bloqs field

Status Resolved
Add-on / Version Bloqs 5.0.10
Severity
EE Version EE7.3.12

Harold Kuiper

Sep 21, 2023

Hi Brian,
I’ve been updating from 5 > 7 and all runs well.
Except now, when clicking on the Bloqs field (under Fields) I get the following error code.

Illegal offset type
user/addons/bloqs/ft.bloqs.php:1116
Stack Trace: Please include when reporting this error
#0 user/addons/bloqs/ft.bloqs.php(1099): Bloqs_ft->sortArrayByArray()
#1 user/addons/bloqs/ft.bloqs.php(811): Bloqs_ft->sortDefinitions()
#2 ee/legacy/libraries/api/Api_channel_fields.php(391): Bloqs_ft->display_settings()
#3 ee/ExpressionEngine/Model/Content/FieldFacade.php(324): Api_channel_fields->apply()
...

Can you have have a look?

Best regards,
Harold

 

 

 

#1

BoldMinded (Brian)

Change line 1098 of ft.bloqs.php to this:

if (!empty($return) && !empty($displayOrder)) {

See if that fixes it.

#2

Harold Kuiper

Hi Brian, Didn’t do it. Error is the same. I have 2 fields, one is opening, the other one gives the error. Best regards, Harold

#3

BoldMinded (Brian)

Comment has been marked private.

#4

Harold Kuiper

Comment has been marked private.

#5

BoldMinded (Brian)

Try changing line 1098 to this:

if (!empty($return) && !empty($displayOrder) && count($return) === count($displayOrder)) {
#6

Harold Kuiper

Hi Brian,

Sorry, no change. I did empty cache (in EE) and on browser.

Best regards, Harold

#7

BoldMinded (Brian)

Add this on line 1114 just after the $keys = array_flip( line

if (empty($keys)) {
            return $toSort;
        }
#8

Harold Kuiper

Comment has been marked private.

#9

BoldMinded (Brian)

Ok, I don’t like doing this, but are you able to edit this ticket and add CP and FTP logins in the provided fields so I can debug this?

#10

Harold Kuiper

Comment has been marked private.

#11

BoldMinded (Brian)

The only other way is for you to debug that sortArrayByArray method yourself and determine why it’s throwing the error. I’m out of ideas and need to see the code executing, otherwise it is not an efficient use of my time.

#12

Harold Kuiper

Comment has been marked private.

#13

BoldMinded (Brian)

Comment has been marked private.

#14

Harold Kuiper

Comment has been marked private.

#15

BoldMinded (Brian)

I you can use the fields provided when you edit the ticket they will get deleted from the database when the ticket is marked resolved, so I’d prefer that. I’d prefer not to have it emailed.

#16

Harold Kuiper

Comment has been marked private.

#17

BoldMinded (Brian)

I can see the CP login but the user/pass doesn’t work.

#18

Harold Kuiper

Comment has been marked private.

#19

BoldMinded (Brian)

New password doesn’t work either :(

#20

Harold Kuiper

Comment has been marked private.

#21

BoldMinded (Brian)

Still doesn’t work. I updated hosts file, ping’d the domain and it returns the IP you provided. Have you tried logging in with those credentials?

#22

Harold Kuiper

Comment has been marked private.

#23

Harold Kuiper

Comment has been marked private.

#24

BoldMinded (Brian)

Comment has been marked private.

#25

Harold Kuiper

Comment has been marked private.

#26

BoldMinded (Brian)

Should be fixed now. This might have been an issue when upgrading from older Bloqs versions where the field custom sorting data wasn’t set. I added this if conditional on line 1119 of ft.bloqs.php.

foreach($sortBy as $key) {
            if (is_array($key)) {
                continue;
            }

This will be included in the next release of Bloqs.

#27

Harold Kuiper

Comment has been marked private.

Login to reply