ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Argument #2 is not an array

April 01, 2011 6:46pm

Subscribe [2]
  • #1 / Apr 01, 2011 6:46pm

    J. Hull

    132 posts

    I’ve started to get a random error on my site, came out of nowhere—

    Severity: Warning

    Message: array_merge(): Argument #2 is not an array

    Filename: libraries/Template.php

    Line Number: 4153


    It only applies in single article URLs, like this:

    http://storyfanatic.com/articles/story-theory/stories-and-the-mystical-power-of-transformation

    or this:

    http://storyfanatic.com/articles/writing/writing-a-screenplay-with-dramatica

    But then will quite often “heal” itself within a couple minutes or so. I’m on EngineHosting if that matters.

  • #2 / Apr 01, 2011 8:20pm

    J. Hull

    132 posts

    Very weird, I tracked it down to this line:

    <time datetime="{entry_date format="{DATE-ATOM}"}" pubdate>{entry_date format="%F %j, %Y"}

    Which seemingly worked fine for the past 6 months of development and the last couple weeks of deployment. Then, starting this week it started to throw up these random errors.

    Apparently DATE-ATOM needs to be DATE_ATOM (see what I did there?)

    Now all seems to be OK.

  • #3 / Apr 03, 2011 3:26pm

    Greg Salt

    3988 posts

    Hi J. Hull,

    It pretty weird that you only just started to see those errors However, glad that you tracked it down. I’ll go ahead and close this thread now but please open a related thread if required.

    Cheers

    Greg

  • #4 / Apr 03, 2011 3:27pm

    Greg Salt

    3988 posts

    And closing .... 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases