PHP warning on empty gallery

HomeSupportImage StorePHP warning on empty gallery

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #49644
    Dave
    Participant

    When visiting a gallery with no images*:

    “Warning: Invalid argument supplied for foreach() in …/wp-content/plugins/image-store/_inc/store.php on line 954”

    * May seem like an edge case but galleries may stay linked/bookmarked by visitors and later have images removed by the site admin.

    1. Visit a gallery
    2. Open new browser tab, go to WP Admin > Gallery > galleryname
    3. Trash all the images
    4. Reload gallery in the first tab; php warning occurs.

    This scenario should be handled gracefully with a simple message like “Sorry, there are no images in this gallery.”

    #49710
    Xpark Media
    Keymaster

    This will be fix on version 3.1.5, this is ready for testing.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.