EE4/5 compatibility updates:

  • Publisher is EE4 and EE5 compatible, but it does not currently support the Fluid field (it's in the works).

Ticket: Undefined offset for image and dropdown fileds in blogs

Status Resolved
Add-on / Version Bloqs Blogs 4.0.14
Severity
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}.

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


I got the error message:
Notice
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?
Thanks,
Dan

#1

BoldMinded (Brian)

Dec 18, 2018

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

#2

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?

#3

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.

#4

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!
Dan

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.