• Jason

    (@jasonnarciso)


    Plugin broke after updating, images failed to load. Also seeing some errors that look like this:

    slide_captions          : 0,
                                                              slides                  :  [<br />
    <b>Warning</b>:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in <b>/html/wp-content/plugins/wp-supersized/includes/WPSupersized.php</b> on line <b>541</b><br />
    <br />
    <b>Warning</b>:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #3 is not an array in <b>/html/wp-content/plugins/wp-supersized/includes/WPSupersized.php</b> on line <b>541</b><br />
    <br />
    <b>Warning</b>:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #4 is not an array in <b>/html/wp-content/plugins/wp-supersized/includes/WPSupersized.php</b> on line <b>541</b><br />
    <br />
    <b>Warning</b>:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #5 is not an array in <b>/html/wp-content/plugins/wp-supersized/includes/WPSupersized.php</b> on line <b>541</b><br />
    <br />
    <b>Warning</b>:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #6 is not an array in <b>/html/wp-content/plugins/wp-supersized/includes/WPSupersized.php</b> on line <b>541</b><br />
    <br />
    <b>Warning</b>:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #7 is not an array in <b>/html/wp-content/plugins/wp-supersized/includes/WPSupersized.php</b> on line <b>541</b><br />
    <br />
    <b>Warning</b>:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #8 is not an array in <b>/html/wp-content/plugins/wp-supersized/includes/WPSupersized.php</b> on line <b>541</b><br />
    <br />
    <b>Warning</b>:  asort() expects parameter 1 to be array, null given in <b>/html/wp-content/plugins/wp-supersized/includes/WPSupersized.php</b> on line <b>542</b><br />
    <br />
    <b>Warning</b>:  Invalid argument supplied for foreach() in <b>/html/wp-content/plugins/wp-supersized/includes/WPSupersized.php</b> on line <b>569</b><br />

    http://wordpress.org/extend/plugins/wp-supersized/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Benoit De Boeck

    (@worldinmyeyes)

    This should be solved with the latest update (3.0.1).
    Sorry about that.

    smiguel

    (@smiguel)

    Images failed to load, even with the latest update (3.0.1) 🙁

    <b>Warning</b>: array_merge() [function.array-merge]: Argument #2 is not an array in <b>/var/www/vhosts/ene-eme.es/httpdocs/wordpress/wp-content/plugins/wp-supersized/includes/WPSupersized.php</b> on line <b>539</b>

    Yeah the array merge still throws an error. I made a quick gist if you want to replace the contents of WPSupersized.php https://gist.github.com/2367441

    As a quick fix I explicitly set each element in the array_merge as an (array).

    $dirArray = array_merge((array) glob($dir."*.jpg"), (array) glob($dir."*.JPG"), (array) glob($dir."*.png"),(array)glob($dir."*.PNG"),(array)glob($dir."*.gif"), (array)glob($dir."*.GIF"), (array)glob($dir."*.jpeg"), (array)glob($dir."*.JPEG"));

    Then I just make sure the path isn’t an empty string in the for loop that creates the image objects

    for($index=0; $index < $indexCount-1; $index++) {
    if($dirArray[$index]) {

    @benoit I also look for the last element that you have outside the your loop and do the same check.

    hope that helps.

    smiguel

    (@smiguel)

    Thanks Aaron, it works fine 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP Supersized] Errors After Updating’ is closed to new replies.