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 - Relationship field causes errors on saving
Status | Resolved |
Add-on / Version | Bloqs 3.3.1 |
Severity | |
EE Version | 4.0.4 |
Christian Rengers
Jan 01, 2018I have a Bloqs field that contains a relationship field.
If i save the entry (the relationship field can be empty or have an entry selected) I get the following PHP errors on a white screen (no EE control panel is shown).
Using PHP 7.0. The site was updated from EE3 -> EE4.0.4
The entry also has a relationship field outside of Bloqs, which seems to work fine. I only get the error when a Bloqs field is created
Warning
Invalid argument supplied for foreach()
ee/EllisLab/Addons/relationship/ft.relationship.php, line 43
Severity: E_WARNING
Warning
array_filter() expects parameter 1 to be array, string given
ee/EllisLab/Addons/relationship/ft.relationship.php, line 75
Severity: E_WARNING
Warning
Invalid argument supplied for foreach()
ee/EllisLab/Addons/relationship/ft.relationship.php, line 149
Severity: E_WARNING
Warning
Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:111)
ee/legacy/core/Input.php, line 233
Severity: E_WARNING
Warning
Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:111)
ee/legacy/core/Input.php, line 233
Severity: E_WARNING
Warning
Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:111)
ee/legacy/core/Input.php, line 233
Severity: E_WARNING
Warning
Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:111)
ee/legacy/core/Input.php, line 233
Severity: E_WARNING
Warning
Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:111)
ee/legacy/libraries/Functions.php, line 392
Severity: E_WARNING
BoldMinded (Brian)
Thanks for the report, Christian. I’ll try to replicate it sometime this week and see if I an get a fix to you.
BoldMinded (Brian)
I’m unable to replicate this. I have a normal rel field and a rel field inside of a block, an existing and new entry saves the data just fine.
Side note… if you’re on PHP 7, why not upgrade it to PHP 7.2?
BoldMinded (Brian)
Comment has been marked private.
Christian Rengers
I can’t recreate the error on a fresh simple install. I’m not sure if it’s related to the EE3-EE4 upgrade, or there is another variable needed to trigger it. I’m going to rebuild the site on the fresh instal and see if the error happens again.
BoldMinded (Brian)
I’m pretty sure that new build should fix the error. Are you still getting an error even after using the new build?
Christian Rengers
I’ve picked up Bloqs 3.3.2
If I have a Bloq field with a relationship that has “allow multiple relationships” turned off, I get the following errors when submitting an entry:
Works fine if I allow multiple relationships
BoldMinded (Brian)
I’m not seeing any errors, but I do see that single relationship fields are not saving correctly. Oddly enough multi-relationships are. I’ll see if I can have a fix by the end of the week.
BoldMinded (Brian)
Comment has been marked private.