• Resolved nstoker

    (@nstoker)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Lingren

    (@dglingren)

    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

    (@nstoker)

    Glad to be of service, and thanks for your reply!

    Plugin Author David Lingren

    (@dglingren)

    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

    (@nstoker)

    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.