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: Can not get new nesting variables

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

Jim Stoll

Dec 14, 2018

We bought Bloqs few days ago. Based on the documentation, we can get the some Context Variables such as {blogs:id} and {your_field_name:total_blocks type="shortname"} in the template. However, I can not get those new variables such as:



{blocks:children:total_blocks} or {blocks:children:total_rows}

{blocks:siblings:total_blocks} or {blocks:siblings:total_rows}

Even we have children and parent.

Example Code like:

        <div class="section"}


        <div class="row"}
Could you give us some examples of using those new variables. I’m using EE 5.0.1 and latest version of Publish 2.10.5, and Bloqs with 4.0.13. Thanks, Dan Liu

BoldMinded (Brian)

Dec 15, 2018

Comment has been marked private.


Jim Stoll

Dec 17, 2018

Hi ,

I used the version that you send us. However, I got an error message below:

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 199752784 bytes) in /var/www/html/system/ee/legacy/libraries/Template.php on line 371.

I have increased memory size. It doesn’t work. Could you help us with this issues?

Dan Liu


BoldMinded (Brian)

Dec 17, 2018

If you’re getting that error the first place to start is to simplify the template by removing code until it starts working again to figure out what is causing the issue.


BoldMinded (Brian)

Dec 17, 2018

It looks like it’s dying when trying to parse snippets on the str_replace line

// Parse assign_to_config variables and Snippets
  if (count(ee()->config->_global_vars) > 0)
   $this->log_item("Config Assignments & Template Partials");

   // Only iterate over the partials present in the template
   $regexes = $this->getGlobalsRegex();

   foreach ($regexes as $regex)
    while (preg_match_all($regex, $this->template, $result))
     foreach ($result[1] as $variable)
      // In case any of these variables have EE comments of their own,
      // removing from the value makes snippets more usable in conditionals
      $value = $this->remove_ee_comments(

      $replace = $this->wrapInContextAnnotations(
       'Snippet "'.$variable.'"'

      $this->template = str_replace(LD.$variable.RD, $replace, $this->template);

Jim Stoll

Dec 17, 2018

We can get the {blogs_overview:total_blocks} in the template.  However,  if we use simple code like
{blogs_overview} {/blogs_overview} . The system throws the error message.


BoldMinded (Brian)

Dec 17, 2018

Can you give more info? I don’t know what {bloqs_overview} is. Describe to me in more detail your template code.


Jim Stoll

Dec 17, 2018

Following is code from my template which generated by the blogs field. The blogs_overview is a field with Bloqs type.
The overview is a blog which contains 4 text fields   {ov_text}  {ov_link_text}  {ov_link_url}  and {ov_side_bar_text}





BoldMinded (Brian)

Dec 17, 2018

And if you remove the {blogs_overview} tag pair the page works again? Did you try removing everything else except for {bloqs_overview} to see if the error still happened?


Jim Stoll

Dec 17, 2018

If I remove the {blogs_overview} tag pair,  the page show like following:

{overview} {ov_text} {ov_link_text} {ov_link_url} {ov_side_bar_text} {/overview}

I tried to remove everything else except for {bloqs_overview} , I got the the error message.


BoldMinded (Brian)

Dec 17, 2018

Jim, try testing with a different Bloqs field or some other setup. I just ran some Selenium tests against over 80 pages with 5-20 blocks per page built with Bloqs using the same build I sent you and they all load fine. Right now I’m unable to replicate the issue, and the error you were getting specifically was something to do with snippet/global variable parsing, which Bloqs doesn’t do. Do you have any global vars that have the same name as a Bloqs field, block, or atom?


Jim Stoll

Dec 17, 2018

Finally, I found the issue and fixed it.
There is a _partials variable which name is same as Blogs field name.  Renaming the _partials variable in the file system didn’t work, until I changed it from CP.

Thank you very much!



BoldMinded (Brian)

Dec 17, 2018

Ah yeah, that probably put it into a loop 😊

Glad you sorted it out!

Login to reply


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