• Resolved Morgan Kay

    (@gwendydd)


    If I have both Media Library Assistant and BuddyPress forms (http://docs.buddyforms.com/) active on my site, I get this fatal error:

    Fatal error: Uncaught Error: Class 'MLAQuery' not found in /var/www/lsi/website/learnshootinspire/content/plugins/media-library-assistant/includes/class-mla-data.php:25 Stack trace: #0 /var/www/lsi/website/learnshootinspire/content/plugins/media-library-assistant/includes/class-mla-core.php(445): MLAData::initialize() #1 /var/www/lsi/website/wp-includes/class-wp-hook.php(298): MLACore::mla_media_view_settings_filter(Array, NULL) #2 /var/www/lsi/website/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array) #3 /var/www/lsi/website/wp-includes/media.php(3618): apply_filters('media_view_sett...', Array, NULL) #4 /var/www/lsi/website/learnshootinspire/content/plugins/buddyforms-premium/BuddyForms.php(390): wp_enqueue_media() #5 /var/www/lsi/website/learnshootinspire/content/plugins/buddyforms-premium/BuddyForms.php(354): BuddyForms->front_js_css() #6 /var/www/lsi/website/wp-includes/class-wp-hook.php(298): BuddyForms->front_js_loader('') #7 /var/www/lsi/website/wp-includes/class-wp-hook.php(323): WP_Hook->apply_fil in /var/www/lsi/website/learnshootinspire/content/plugins/media-library-assistant/includes/class-mla-data.php on line 25

    I realize that you can’t install Buddyforms to debug this. I am trying to get in touch with BuddyForms support, but I thought I’d run it by you as well to see if you have any suggestions. I’m happy to give you an account on a development site with both plugins installed if you’d like to take a look.

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

    (@dglingren)

    Thanks for your report. I regret the trouble you’re having with the new MLA version.

    Is this a problem specific to the version I just released, i.e., was your site working with MLA version 2.60 and before?

    I need to investigate further, but it looks like you are doing some “front end” action that requires MLA enhancements for the Media Manager Modal Window; is that right?

    If so, you might be able to avoid the problem by disabling those enhancements. To try that:

    1. Navigate to the Settings/Media Library Assistant General tab.
    2. Scroll down to the “Media Manager/Media Grid Enhancements” section.
    3. Uncheck the “Enable Media Grid Enhancements” and “Enable Media Manager Enhancements” boxes.
    4. Scroll to the bottom and click “Save Changes” to record your new settings.

    Let me know if the above option setting changes affect the problem. Thanks for your patience. I will also try contacting BuddyForms about getting a copy of their plugin for my diagnosis.

    Thread Starter Morgan Kay

    (@gwendydd)

    That did the trick! Thank you so much for your quick reply! I wasn’t using the enhanced features, so this doesn’t create any problems for my site. The problem did start with the most recent update.

    Thank you again for being so fast and helpful!

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the good news and the answers to my questions. The stack trace you posted was very helpful and I believe I have found and fixed the problem.

    I have released MLA version 2.62, which contains the fix. It would be great if you could install the update, re-enable the enhanced features and run a quick test to see if the problem has indeed been corrected. I’d like to make sure the fix works so other MLA users are not affected by the problem or something like it.

    Thread Starter Morgan Kay

    (@gwendydd)

    Yep, that fixed it!

    Thank you for your absolutely astounding and rapid response!

    Plugin Author David Lingren

    (@dglingren)

    Thanks for confirming the fix. I am happy to report that the BuddyForms developers responded to my request promptly and effectively. I was able to install their plugin, reproduce your problem and verify that my fix worked as expected.

    I also found and fixed one other small bug that may affect you in the future. A PHP Notice message is issued under the same circumstances that triggered the more serious problem. If your site is configured to display PHP Notices (unlikely) let me know and I can get you the fix for that, too.

    Thanks for your help and for your interest in the plugin.

    Thread Starter Morgan Kay

    (@gwendydd)

    Awesome! Love to see developers working together to solve things. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error’ is closed to new replies.