Metabox deactivated after critical error - my mistake - how to recover
- This topic has 0 replies, 1 voice, and was last updated 3 hours, 23 minutes ago by
EddyPiV.
-
AuthorPosts
-
December 10, 2025 at 5:47 PM #49522
EddyPiV
ParticipantHi,
I made a terrible mistake, leading to a critical error "PHP Fatal error: Uncaught Error: Cannot use a scalar value as an array in /var/web/site/public_html/wp-content/plugins/meta-box/vendor/wpmetabox/support/Arr.php:125".I ran an automation to generate a random number and update its value to the contents field of a specific shortcode (by it's ID), but for some reason the trigger of the automation was not saved and the automation ran on all posts. I could stop it, but the damage was done to many posts already.
I managed to set the contents back of all posts types (except of these created with Metabox).
It looks that this automation has damaged Metabox in one way or the other. Only by renaming the 2 metabox plugins I have access back to the website.
My question is: What's the best way to recover the Metabox plugin and post types? (There are custom fields and views, but these are just a few and I can re-enter them.)
It's a network installation, so the other websites are suffering as Metabox is now inactive for the entire network.Fyi, here's the PHP stacktrace:
- undefined /var/web/site/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/Register.php(39): MetaBox\Support\Arr::set(693748, 'labels', Array) /var/web/site/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/PostTypeRegister.php(116): MBCPT\Register->sanitize_labels(693748) /var/web/site/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/PostTypeRegister.php(98): MBCPT\PostTypeRegister->get_post_type_settings(Object(WP_Post)) /var/web/site/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/PostTypeRegister.php(69): MBCPT\PostTypeRegister->get_post_types() /var/web/site/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/src/Register.php(8): MBCPT\PostTypeRegister->register() /var/web/site/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/mb-custom-post-type.php(54): MBCPT\Register->__construct() /var/web/site/public_html/wp-includes/class-wp-hook.php(341): mb_cpt_load('') /var/web/site/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) /var/web/site/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array) /var/web/site/public_html/wp-settings.php(742): do_action('init') /var/web/site/public_html/wp-config.php(97): require_once('/var/web/site/p...') /var/web/site/public_html/wp-load.php(50): require_once('/var/web/site/p...') /var/web/site/public_html/wp-blog-header.php(13): require_once('/var/web/site/p...') /var/web/site/public_html/index.php(17): require('/var/web/site/p...') {main} thrown in /var/web/site/public_html/wp-content/plugins/meta-box/vendor/wpmetabox/support/Arr.php on line 125 -
AuthorPosts
- You must be logged in to reply to this topic.