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: Can’t Create Atom with Wygwam (5.0.0)

Status Resolved
Add-on / Version Bloqs 4.0.10
Severity
EE Version 4.3.6

Tiffany Ring

Nov 14, 2018

Description: Hi - I recently upgraded to EE 4.3.6, Bloqs 4.0.10, and Wygwam 5.0.0 from the EE3 versions. The site seems to not be rendering the Wygwam content properly, and I’m also getting this error when attempting to edit any atom containing a Wygwam editor:

Fatal error: Uncaught Error: Call to a member function displaySettings() on null in /var/www/vhosts/domain.name/httpdocs/aegis/user/addons/bloqs/mcp.bloqs.php:473 Stack trace: #0 /var/www/vhosts/domain.name/httpdocs/aegis/user/addons/bloqs/mcp.bloqs.php(411): Bloqs_mcp->getAtomDefinitionSettingsForm(Object(EEBlocks\Model\AtomDefinition), ‘wygwam’) #1 /var/www/vhosts/domain.name/httpdocs/aegis/user/addons/bloqs/mcp.bloqs.php(362): Bloqs_mcp->getAtomDefinitionView(Object(EEBlocks\Model\AtomDefinition), NULL, Array) #2 /var/www/vhosts/domain.name/httpdocs/aegis/user/addons/bloqs/mcp.bloqs.php(305): Bloqs_mcp->getAtomDefinitionsView(Object(EEBlocks\Model\BlockDefinition), Array) #3 [internal function]: Bloqs_mcp->blockdefinition() #4 /var/www/vhosts/domain.name/httpdocs/aegis/ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(1661): call_user_func_array(Array, Array) #5 /var/www/vhosts/domain.name/httpdocs/aegis/ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(94 in /var/www/vhosts/domain.name/httpdocs/aegis/user/addons/bloqs/mcp.bloqs.php on line 473

While I strongly suspect this is a Wygwam issue, and will be following up there as well, have you noticed any problems with Bloqs and Wygwam in EE4? Are they compatible? I noticed there wasn’t a lot of the EE4 documentation available online for Bloqs so thought reaching out wouldn’t hurt.

Thanks!
Tiffany

#1

BoldMinded (Brian)

Hi, Tiffany. This is definitely a new one to me. That error is suggesting that it can’t instantiate/create a Wygwam field. I don’t have version 5.0 though, but I can’t imagine it being that much different. I’ll ask Jace for a 5.0 build to test to see if I can replicate the issue.

#2

BoldMinded (Brian)

Tiffany, in the ft.wygwam.php file around line 527 is the following function. Add ‘blocks/1’ to the end of the array and it should work.

public function accepts_content_type($name)
    {
        return in_array($name, array('channel', 'grid', 'low_variables', 'fluid_field', 'blocks/1'));
    }
#3

BoldMinded (Brian)

Actually, don’t make that change, the proper fix is in Bloqs. Find the fieldtypes.xml file and update line 21 to this:

<fieldtype name="wygwam" version="ge:3.3 lt:6.0.0">
#4

BoldMinded (Brian)

Or download the latest release from your account.

#5

Tiffany Ring

Thank you, that fixed it!

Login to reply