Title: class-mla-shortcodes.php error message displayed
Last modified: August 21, 2016

---

# class-mla-shortcodes.php error message displayed

 *  Resolved [nstoker](https://wordpress.org/support/users/nstoker/)
 * (@nstoker)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/class-mla-shortcodesphp-error-message-displayed/)
 * I just added this plugin to a locally hosted site, added a gallery just using
   mla_gallery in square brackets, and the gallery was displayed, but was headed
   with this error message:
 * “Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\localsite\
   wp-content\plugins\media-library-assistant\includes\class-mla-shortcodes.php 
   on line 232”
 * This part of the code is headed “Look for ‘request’ substitution parameters, 
   which can be added to any input parameter”
 * And ideas?
 * [http://wordpress.org/plugins/media-library-assistant/](http://wordpress.org/plugins/media-library-assistant/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/class-mla-shortcodesphp-error-message-displayed/#post-3998582)
 * Thank you for using the plugin and for posting this question. You have found 
   a defect in the current version, which will fix in my next release.
 * In the interim, you can avoid the Warning message by adding any parameter to 
   the `[mla_gallery]` code. For example, you could add `columns=3` (which is the
   default value). The message only occurs when there are no parameters at all in
   the shortcode (a case which I should have tested).
 * Thank you for bringing this defect to my attention! I will mark this topic resolved
   when I make my next release.
 *  Thread Starter [nstoker](https://wordpress.org/support/users/nstoker/)
 * (@nstoker)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/class-mla-shortcodesphp-error-message-displayed/#post-3998741)
 * Glad to be of service, and thanks for your reply!
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/class-mla-shortcodesphp-error-message-displayed/#post-3998873)
 * I have released MLA version 1.43, which contains the fix for this bug. When you’ve
   had a chance to upgrade and try it, let me know if there are any problems or 
   further questions.
 *  Thread Starter [nstoker](https://wordpress.org/support/users/nstoker/)
 * (@nstoker)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/class-mla-shortcodesphp-error-message-displayed/#post-3998875)
 * Yes, the error message has gone. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘class-mla-shortcodes.php error message displayed’ is closed to new replies.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

## Tags

 * [error message](https://wordpress.org/support/topic-tag/error-message/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 4 replies
 * 2 participants
 * Last reply from: [nstoker](https://wordpress.org/support/users/nstoker/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/class-mla-shortcodesphp-error-message-displayed/#post-3998875)
 * Status: resolved