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

Support archive

PHP Error on libraries/Template.php (Line Number: 3921) when using exp:low_variables:single

Brendan Underwood 22 Jun 2012 06:16 problem, complete

When I try to use this tag, I'm getting a PHP error:

{exp:low_variables:single var="lv_content_hq_address" format="xhtml"}

A PHP Error was encountered
Severity: Warning
Message: array_merge() [function.array-merge]: Argument #2 is not an array
Filename: libraries/Template.php
Line Number: 3921

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/tech9tyr/ee_system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 412

If I just use the variable tag by itself, it's fine:
{lv_content_hq_address}

But of course I can't get the formatting. Doesn't matter whether the formatting is xhtml or br, the same error occurs.

The site is running EE v2.5.0 and LV v2.3.0

Replies

  1. Low 22 Jun 2012 09:17

    Stupid template parser that thinks this is a date formatting thing. I need to create an alias for the format="" parameter, like formatting="".

    For now, you can work around it by using this:

    {exp:low_variables:single var="lv_content_hq_address" 
    format ="xhtml"}


    ...notice the space right after format.

  2. Brendan Underwood 22 Jun 2012 09:24

    Thanks that did the trick.