• Resolved napsfan

    (@napsfan)


    Plugins are being disabled for Admin pages, even though I have the setting for “Admin Areas” set to “Disabled”.

    I’ve noticed this for both plugins I’ve tried so far: Shopp and Visual Form Builder. Since both of these plugins load stuff unnecessarily on all pages, I turned on the selective loading for them, so that I only load them on the few pages that use them. But now the Admin for both is broken, and I had to turn off selective loading.

    Help? Thanks.

    https://wordpress.org/plugins/plugin-organizer/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Sterup

    (@foomagoo)

    What do you mean by broken? Do you get an error when you go to the plugin admin page or are they just not in the menu?

    Thread Starter napsfan

    (@napsfan)

    Well, it’s a somewhat subtle error actually.

    For Visual Form Bulider, they have a preview pane on the right side of the Admin page. When the global plugin setting is turned to “off”, with the Admin setting set to “disabled” (to disable an selective loading for admin pages, as I understand), the preview pane for VFB admin page gives an error:

    Fatal error: Class ‘Visual_Form_Builder_Pro’ not found in … /wp-content/plugins/visual-form-builder-pro/form-preview.php on line 61

    Here is line 60 and 61, which is trying to instantiate an object:
    // Visual Form Builder Pro class
    $vfb_pro_preview = new Visual_Form_Builder_Pro();

    As soon as I turn the global plugin setting back to “on” for VFVB, then things work fine again.

    A similar thing with Shopp. There are some things in Admnin that appear to be fine. But then I noticed that there were some important features, perhaps javascript related, that were missing from the Admin pane. My guess is similar, that some objects or scripts are trying to be loaded and are not visible/available to the Admin pages.

    Hope this helps explain. Thanks.

    Plugin Author Jeff Sterup

    (@foomagoo)

    I don’t have Visual Form Builder so I can’t test that but I did find the problem with shopp. In the admin menu go to the Shopp->System and then click the advanced tab. Uncheck Load behavioral scripts through WordPress. Then it should work.

    Thread Starter napsfan

    (@napsfan)

    Thank you for your prompt support 🙂

    Indeed, changing that setting has resolved the issue for Shopp.

    I don’t see a similar setting in VFB (a much simpler set of admin options with that plugin). So for now, I may leave the the global setting turned on in your plugin, and perhaps unload some scripts and styles manually in my functions.php, since only a small subset of pages actually use forms.

    Thanks again. You can mark this issue resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugins being turned off in Admin pages’ is closed to new replies.