Be sure to checkout our newest add-on Speedy!

EE compatibility updates:

  • Publisher is EE5 compatible, but it does not currently support the Fluid field.

ExpressionEngine.com licenses:

  • 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: Cannot create new fields in existing Bloqs and can’t create new Bloqs.

Status Client Wait
Add-on / Version Bloqs 4.2.2
Severity
EE Version 5.1.3

Paul Larson

Mar 31, 2020

When clicking on the plus sign to create a new field nothing happens. If I click on copy field it will work, but when I save it after changing the name for the Bloq and changing the content it deletes the copied Bloq. It also shows the error “Invaild Block Configuration — error was encountered. Please review and fix the issues highlighted below.” No issues are highlighted below to fix. This will happen even if I don’t make any changes and just save it. It also occurs when trying to create a new Bloq. 

I believe this site started in EE 3 and has since been updated to EE 5. Initially, it was using Bloqs 4.0.1.8. I updated to the latest Bloqs to see if that would correct the issue. 

 

#1

BoldMinded (Brian)

Mar 31, 2020

That error happens on line 746 of mcp.bloqs.php. Change it to this so we can tell what the error is.

if (!empty($errors)) {
            $this->_add_alert(false, 'blocks_block_alert', lang('bloqs_blockdefinition_atomdefinition_alert_title'), json_encode($errors));
        }
#2

BoldMinded (Brian)

Mar 31, 2020

Or you can just add the logger lines and check the developer log in the CP after the error happens.

if (!empty($errors)) {
            ee()->load->library('logger');
            ee()->logger->developer($errors);
            $this->_add_alert(false, 'blocks_block_alert', lang('bloqs_blockdefinition_atomdefinition_alert_title'), lang('bloqs_blockdefinition_atomdefinition_alert_message'));
        }

Does the error happen when adding any additional field to a block or just an Assets field?

#3

BoldMinded (Brian)

Mar 31, 2020

Actually it needs to be

ee()->logger->developer(json_encode($errors));
#4

Paul Larson

Mar 31, 2020

I ended up upgrading to the latest EE and that seems to have worked. I can now create new fields and new Bloqs.

#5

BoldMinded (Brian)

Mar 31, 2020

Weird, well, glad the upgrade fixed it 😊

#6

Paul Larson

Apr 01, 2020

Comment has been marked private.

#7

Paul Larson

Apr 01, 2020

This is the error I get when I try to create a new Bloq.

#8

BoldMinded (Brian)

Apr 01, 2020

I updated your comment with the SSH info in it and removed that info. Edit the ticket and use the fields provided for such info, which is deleted from the DB when the ticket is closed.

#9

BoldMinded (Brian)

Apr 01, 2020

I’m running EE 5.3 locally and I’ve never seen such an error when trying to update a block. Also, please provide more info on what exactly “while upgrading to 5.3 fixes BLoqs it brakes relationships” means. How does it “break”?

I need detailed steps to replicate.

#10

Paul Larson

Apr 01, 2020

I rolled the site back to 5.1.3 to restore the Relationships, so the error is what I’m getting when trying to create a new field in Bloqs in EE 5.1.3. this was the original issue I was trying to solve. 

Basically all of the relationships in the entries are cleared, and any attempt to relate entries to an entry is cleared when the entry is saved. It does appear that the relationships data was preserved in the database.

#11

BoldMinded (Brian)

Apr 01, 2020

So there are two issues happening?

You get the error message originally reported when you try to save a block configuration (with any field type, not just a relationship field)?

Then when you go and save an entry with a blocks field that has a relationship field in it, it does not save the relationship assignment? Does it save the assignment to the database, but just not display it as selected when the entry is saved and reloaded?

Can you record video of your screen illustrating both issues?

What other add-ons do you have installed?

#12

Paul Larson

Apr 01, 2020

Comment has been marked private.

#13

BoldMinded (Brian)

Apr 01, 2020

So the “Invaild Block Configuration” error only happens on EE 5.1.3? If that is the case I won’t be able to investigate that issue b/c its an older version of EE. Upgrading to 5.3 fixes that issue, as you mentioned earlier in the ticket.

You didn’t list other add-ons you have installed. I logged in and took a look, you have quite an old version of Publisher installed too (over 1 year old). I would suggest upgrading everything and see where you’re at after upgrading.

#14

BoldMinded (Brian)

Apr 30, 2020

I can’t remember what the status of this ticket is. Did upgrading resolve it?

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.