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. licenses:

  • If you purchased an add-on from, be sure to visit to add the license to your account here on

Ticket: Undefined offset for image and dropdown fileds in blogs

Status Resolved
Add-on / Version Bloqs Blogs 4.0.14
EE Version EE 5.0.1

Jim Stoll

Dec 18, 2018

I defined a blogs field type called blogs_media_overview. There is an image file called {im_image_file}.

            <div class="columns large-6">
             <img src="{im_image_file}"/>

I got the error message:
Undefined offset: 796

user/addons/bloqs/libraries/EEBlocks/Controller/TagController.php, line 334

  Severity: E_NOTICE

Fatal error: Uncaught TypeError: Argument 1 passed to EEBlocks\Controller\TagController::getContextVariables() must be an instance of EEBlocks\Controller\TagOutputBlockContext, null given, called in /var/www/html/system/user/addons/bloqs/libraries/EEBlocks/Controller/TagController.php on line 404 and defined in /var/www/html/system/user/addons/bloqs/libraries/EEBlocks/Controller/TagController.php:664 Stack trace: #0 /var/www/html/system/user/addons/bloqs/libraries/EEBlocks/Controller/TagController.php(404): EEBlocks\Controller\TagController->getContextVariables(NULL) #1 /var/www/html/system/user/addons/bloqs/libraries/EEBlocks/Controller/TagController.php(336): EEBlocks\Controller\TagController->_getAndParseCloseContent(NULL) #2 /var/www/html/system/user/addons/bloqs/libraries/EEBlocks/Controller/TagController.php(169): EEBlocks\Controller\TagController->_renderBlockSections(Array, ‘{!—bloqs:star…’, Object(EEBlocks\Controller\TagOutputBlockContext), Array) #3 /var/www/html/system/user/addons/bloqs/ft.bloqs.php(417): E in /var/www/html/system/user/addons/bloqs/libraries/EEBlocks/Controller/TagController.php on line 664

What does it cause the problem?


BoldMinded (Brian)

Dec 18, 2018

What is {im_image_file} a native file field? Assets? Ansel?


BoldMinded (Brian)

Dec 18, 2018

Can you share a screenshot of the entry’s Bloqs field so I can see the nesting structure, and the full Bloqs tag pair template code?


BoldMinded (Brian)

Dec 18, 2018

Have you deleted any blocks in that entry since creating it? I’ve seen that error before, but I’m not sure what is causing it.


Jim Stoll

Dec 18, 2018

I think something is wrong. However,  I have deleted the block and create a new one. It works now.

Thank you!

Login to reply


For add-on support, please use the Support section. General inquries and pre-sale questions can be sent to