All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Array to string conversion PHP error when using Low Variables with Grid and Assets

wjthomas9 8 Jan 2015 19:16 problem, rejected

I have an Assets field in a Low Variables Grid. When I try to output the Assets image url, I get the following PHP error for each iteration in the Grid loop.

A PHP Error was encountered

Severity: Notice

Message: Array to string conversion

Filename: assets/ft.assets.php

Line Number: 1778

EE version: 2.9.2
Low Variables version: 2.5.0
Assets version: 2.5

Replies

  1. Low 8 Jan 2015 19:19

    Since the error is triggered by an Assets file, I'd ask P&T first...

  2. wjthomas9 8 Jan 2015 19:22

    Ok. I'll shoot them an email. Here's my code for reference:

    Here's the code I'm using:

     
    {exp:low_variables:pair var="lv_hbw_products"}
    <div class="logo-slide product-slide">
    <a href="#" data-item-codes="{lv_hbw_products:hbw_product_item_codes}" class="js-submit-item-search"<img src="{lv_hbw_products:hbw_product_image}" alt="product image" class="img-round"></a>
    <strong>{lv_hbw_products:hbw_product_title}</strong><br>
    <small>{lv_hbw_products:hbw_product_description}</small>
    <a href="#" data-item-codes="{lv_hbw_products:hbw_product_item_codes}" class="js-submit-item-search more">View items <i class="fa fa-arrow-circle-o-right"></i></a>
    </div>
    {/exp:low_variables:pair}

  3. diederik.van.hoorebeke 12 Feb 2015 15:48

    Hi!

    I know here is not the place to discuss this issue. But I have the same problem. Is there a fix for this?

  4. Low 12 Feb 2015 16:22

    Can't say, haven't heard. Did you ask P&T?

  5. diederik.van.hoorebeke 13 Feb 2015 11:27

    I've posted the question on the EE StackExchange website: http://expressionengine.stackexchange...

  6. Low 19 Feb 2015 14:04

    And a fix was posted here: http://expressionengine.stackexchange.com/a/29025/172