• Resolved gekow

    (@gekow)


    When I try to start the MLA view from the media view in the dashboard I get this error:

    Parse error: syntax error, unexpected ‘=’, expecting ‘;’ in /…my path…/wordpress/wp-content/plugins/media-library-assistant/includes/class-mla-shortcode-support.php(4549) : runtime-created function on line 1

    The plugin itself works fine, I can enter the mla settings without a problem

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

    (@dglingren)

    Thanks for your report and for including the complete text of the error message; very helpful.

    I suspect you are running this site on PHP 7.x; is that right? This new PHP version handles errors differently and the older way of suppressing the messages no longer works. I will work on that.

    In any case, the message is generated when an [mla_gallery] shortcode contains an invalid parameter, e.g., a tax_query, meta_query or date_query. It can also be caused when WordPress “improves” shortcode content. You can find more information in the “Entering Long/Complex Shortcodes” section of the Settings/Media Library Assistant Documentation tab.

    If you get the message when accessing the Media/Assistant submenu screen it may be coming from the analysis MLA does for the “where-used reporting”. If you go to the Settings/Media Library Assistant General tab and scroll down to the “Where-used database access tuning” section, is the “MLA Gallery in” option set to something other than “Disabled”? If so, try setting it to “Disabled” and see if the problem goes away.

    If the problem is caused by a damaged [mla_gallery] shortcode the message should also appear when you access the post/page or widget in which the shortcode appears. That’s the best way to narrow down the location of the problem.

    I hope the above suggestions help you resolve the issue. I will leave this topic unresolved until I hear back from you. Thanks for your interest in the plugin.

    Thread Starter gekow

    (@gekow)

    Thank you David,

    you where double right 🙂
    Yes I am on a PHP7 system and yes, the “MLA Gallery in” option was set to dynamic and after I set it to “Disabled” the problem goes away. Thank you very much.

    No I try once again to understand how to create a tag cloud 🙂

    Greeteings from Germany,
    Georg

    P.S.: I really appreciate your plugin und your generous support

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your kind words and for the good news regarding your progress.

    I am marking this topic resolved, but please update it or open a new topic if I can help you make sense out of the [mla_tag_cloud] shortcode or other features of Media Library Assistant.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parse Error when try to start the MLA from Dashboard’ is closed to new replies.