We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15734
    • 70 Posts
    Hi,

    I've got gallery setup to run as a slideshow using a jQuery fader plugin. Everything is working fine but it keeps throwing an error in the logs.

     [2012-03-21 14:00:14] (ERROR @ /home/xxxxx/public_html/core/cache/includes/elements/modsnippet/8.include.cache.php : 167) PHP warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array


    My call is:

    <div class="flexslider">
      <ul class="slides">
        [[!Gallery? &album=`fader` &thumbTpl=`faderImgTpl` &thumbProperties=`{"h":"400","w":"980","zc":"1","far":"C","q":"40"} &useCss=`0`]]
      </ul>
    </div>


    And the thumbTpl is:

    <li>
      <img src="[[+thumbnail]]" alt="[[+name]]" />
    </li>


    I used thumbs rather than images for no other reason than I just wanted one set of images. So I generated thumbs and ignored the full size images. That may not have been necessary but I'm pretty sure that's not where the problem lies.

    I tracked it down to something related to the thumbProperties based on that error.

    I'm running:

    Modx: v2.2.0-pl2
    Gallery: 1.4.0 rc1
    phpThumbof: 1.3.2

    PHP 5.2.17
    MySQL 5.0.92
    imagick 3.0.1

    It's not huge problem but wondering if anyone has any insight. I hate leaving errors building up in the log.