Viewing 6 reply threads
  • Author
    Posts
    • #4023
      nickcoupland
      Member

      Hello,

      I have just been testing the WordPress Helpers plugin and I have noticed a warning when trying to view all image size urls.

      Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/wp-helpers/parts/media/image-sizes.php on line 31

      I believe this is causing the other image size urls not to display.

      Thank you for your time.

    • #4030
      Steve
      Keymaster

      I couldn’t reproduce the error, so I would appreciate if you could test a fix for us. I emailed you an updated version of Helpers. Just upload it through the WP plugin installer.

      Let us know if your issue is resolved with this version.

      Thanks!

    • #4031
      nickcoupland
      Member

      Hi Steve,

      Thank you for the update. I will get around to updating the plugin soon and let you know the result.

      Thanks,
      Nick

    • #4033
      nickcoupland
      Member

      Hi Steve,

      I have tested the update you sent me and although it got rid of the error, it only displayed the original image url and not all available image sizes. Would it have anything to do with my localhost setup? Here are some stats of what I’m running. I have also tested with all plugins disabled except Piklist.

      WP Version 4.2.2
      PHP Version 5.6.2

      Installed Plugins:
      Awesome Support by ThemeAvenue version 3.1.12,
      Caldera Forms by David Cramer version 1.2.2,
      Custom Post Type Permalinks by Toro_Unit version 1.0.4,
      Piklist by Piklist version 0.9.4.27,
      Transients Manager by Pippin Williamson version 1.5,
      WordPress Helpers by Piklist version 1.8.1

    • #4034
      Steve
      Keymaster

      Just emailed you another version. Thanks for testing!

    • #4036
      nickcoupland
      Member

      Thanks Steve,

      That version did the trick. I can see all urls now. Thanks so much for your help.

    • #4037
      Steve
      Keymaster

      Great!

      I just pushed v1.8.2 to WordPress.org, which has your fix in it.

      It also has this fix >. If you need it, then I suggest you delete the wp-helpers folder via FTP, and then add it via the plugin installer as new. This way you won’t lose all your settings.

      Thanks again for the help!

      Closing ticket.

Viewing 6 reply threads
  • The topic ‘Image sizes foreach loop warning’ is closed to new replies.