EE4 compatibility updates:

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

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)

Nov 15, 2018

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)

Nov 15, 2018

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)

Nov 15, 2018

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)

Nov 15, 2018

Or download the latest release from your account.

#5

Tiffany Ring

Nov 15, 2018

Thank you, that fixed 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.