WordPress.org

Ready to get started?Download WordPress

Forums

WP Supersized
Errors After Updating (5 posts)

  1. Jason
    Member
    Posted 2 years ago #

    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/

  2. Benoit De Boeck
    Member
    Plugin Author

    Posted 2 years ago #

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

  3. smiguel
    Member
    Posted 2 years ago #

    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>

  4. aware
    Member
    Posted 2 years ago #

    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.

  5. smiguel
    Member
    Posted 2 years ago #

    Thanks Aaron, it works fine ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic