• Resolved tuux

    (@pixeldt)


    Hi, I’m using Meta Box 4.9.4 with a custom post type registration, and if I deactivate (for maintenance reasons) Meta Box on dashboard/plugins all other plugins like Smart Slider 3 just are broken.

    I see the page code when deactivates the plugin and can’t find the enqueue scripts from other plugins on the <head> of the document. Does it have maybe a connection?

    I’m planing to use this method https://metabox.io/docs/include-meta-box-plugin-themes/ but when I add the line require get_template_directory() . 'meta-box/meta-box.php'; to the functions.php the whole site are broken with an 500 error

    Any idea why happens or how can I fix it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Can you look at the error log and post it here?

    Thread Starter tuux

    (@pixeldt)

    Using “define( ‘WP_DEBUG’, true );” the only error shown is Notice: automatic_feed_links is deprecated since version 3.0.0! Use add_theme_support( 'automatic-feed-links' ) instead. in ../wp-includes/functions.php on line 3707

    Using chrome dev tools console JQMIGRATE: jQuery is not compatible with Quirks Modeis the only warning

    Plugin Author Anh Tran

    (@rilwis)

    Hmm, that’s not 500 error. The Notice error doesn’t break the website. Can you check PHP log?

    Thread Starter tuux

    (@pixeldt)

    500 error appear when use the code require get_template_directory() . 'meta-box/meta-box.php'; to add the plugin via functions php. The site is never breaks completly if I disable the plugin via worpdress plugins option on the dashboard, it only breaks all other plugins that stop working after disable Meta Box

    Plugin Author Anh Tran

    (@rilwis)

    Does the site break in the admin or frontend? If in the frontend, possibly it’s the usage of rwmb_meta function which is only available when the plugin is activated.

    Besides, the code require get_template_directory() . 'meta-box/meta-box.php'; says that the theme integrates Meta Box inside the theme. So you might want to check this docs:

    https://metabox.io/docs/include-meta-box-plugin-themes/

    Thread Starter tuux

    (@pixeldt)

    Hi Anh, many thanks for your support. That’s exactly what happens. Can’t use rwmb_meta function if the plugin is deactivated. so if the the plugin is deactivated and the function is removed from the theme, everything goes ok. Many thanks.

    About the integration in the site I will read the docs with more detail to include Meta Box directly and try to avoid the 500 error.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugins crash after Meta Box deactivation’ is closed to new replies.