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: 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)

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

#2

BoldMinded (Brian)

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)

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

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