All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

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: Bloqs code is rendered to the browser for one block of template code, but not others

Status Resolved
Add-on / Version Bloqs 4.7.1
Severity
EE Version 5.4

Paul Larson

Jul 27, 2021

Brian,

Hesitate to call this a bug, as it could be our template code. But, this page definitely used to work. I can’t tell if it’s a problem with our template code or something in the entry itself.

This Bloqs snippet works on the homepage, but not within an entry.

line 28 of site/.interior

{if '{scroll_header_bloqs:total_blocks}’ > ‘0’}

  {scroll_header_bloqs}
  {scroll_header_full_width_image}
      {full_width_image}
     
      {/full_width_image}
      {close:scroll_header_full_width_image}
  {/close:scroll_header_full_width_image}
  {/scroll_header_full_width_image}

  {scroll_header_slide}
  {if blocks:count:of:type == '1'}

      {/if}

        {close:scroll_header_slide}

      {if blocks:count:of:type == blocks:total_blocks:of:type}

  {/if}
  {/close:scroll_header_slide}
  {/scroll_header_slide}
  {scroll_header_two_columns_column_1}

      {if text_column}

      {text_column}
      {/text_column}

      {/if}
      {image}
      {/image}
      {close:scroll_header_two_columns_column_1}

  {/close:scroll_header_two_columns_column_1}
  {/scroll_header_two_columns_column_1}

  {scroll_header_two_columns_column_2}

      {text}
      {/text}
      {if image}

      {image}
     
      {/image}

      {/if}
      {close:scroll_header_two_columns_column_2}

  {/close:scroll_header_two_columns_column_2}
  {/scroll_header_two_columns_column_2}

      {scroll_header_scrollable_content}

{slide_header}

        {text}
        {/text}

{footnote}

        {close:scroll_header_scrollable_content}

      {/close:scroll_header_scrollable_content}
      {/scroll_header_scrollable_content}

      {scrolling_header_homepage_content}

        {content}
        {/content}
        {close:scrolling_header_homepage_content}

      {/close:scrolling_header_homepage_content}
      {/scrolling_header_homepage_content}

  {/scroll_header_bloqs}

{/if}

#1

Paul Larson

Comment has been marked private.

#2

Paul Larson

This seems to be the offending code

{scroll_header_slide}
{if blocks:count:of:type == '1'}
<div class="scrolling-header hello">
    {/if}
    <div class="img-holder-cont">
        <div class="img-holder{if blocks:count:of:type == '1'} fixed-image{/if}">
            {close:scroll_header_slide}
        </div>
    </div>
    {if blocks:count:of:type == blocks:total_blocks:of:type}
</div>
{/if}
{/close:scroll_header_slide}
{/scroll_header_slide}

When it is commented the other code works.

#3

Paul Larson

Leaving the code broken for you to see. But on live, we found that removing this conditional (wrapped around a big Bloqs section)…fixes it.

{if ‘{scroll_header_bloqs:total_blocks}’ > ‘0’}

[stuff]

{/if}

Login to reply