Uncaught Error after Meta Box Update
Support › MB Builder › Uncaught Error after Meta Box Update
- This topic has 11 replies, 2 voices, and was last updated 5 years, 5 months ago by
Anh Tran.
-
AuthorPosts
-
November 19, 2019 at 8:57 PM #17009
molitor GmbH
ParticipantHello,
today I updated our Metabox Core plugin which causes now an error while trying to add or edit a custom field.
We run wordpress 4.8.11 and the latest MetaBox Plugin (5.2.3) as well as the latest MB Core Plugin (1.0.5)
Here is the error we are getting after clicking “add” under “Custom fields”Uncaught Error: Call to undefined function MBB\wp_enqueue_code_editor() in /var/www/vhosts/hosting10519.af95f.netcup.net/httpdocs_wiki/wp-content/plugins/mb-core/vendor/meta-box/meta-box-builder/src/Edit.php on line 41 enqueue() wp-includes/class-wp-hook.php:298 apply_filters() wp-includes/class-wp-hook.php:323 do_action() wp-includes/plugin.php:453 do_action() wp-admin/admin-header.php:97 require_once() wp-admin/edit-form-advanced.php:472 include() wp-admin/post.php:179
Can you please fix that quickly or give us the possibility to downgrade to Version 1.0.3 of MB Core for example.
CheersNovember 19, 2019 at 11:31 PM #17012molitor GmbH
ParticipantCan you please provide a quick solution?
November 20, 2019 at 3:02 PM #17022molitor GmbH
ParticipantIt definitely seems to be an error with the MB core plugin, in particular, the MB builder part. I downgraded to Metabox 5.1.2 but this didn't help. Then, instead of using the core plugin, I installed all the latest versions of the plugins manually and get the same error. Where can I get previous versions of the plugins? Please again, provide a quick solution.
Cheers
MMNovember 20, 2019 at 3:08 PM #17023Anh Tran
KeymasterHi Martin, I'm checking it now. I'll fix and update the plugin asap. Please wait.
November 20, 2019 at 3:17 PM #17025molitor GmbH
ParticipantFor now, I found a backup of previous plugin installation zip files, which I downloaded here under my account in June 2019. It's working again but please be so kind and let us update the plugins.
Cheers
MMNovember 20, 2019 at 3:17 PM #17026Anh Tran
KeymasterHi Martin, I found the problem. The MB Builder uses the function
wp_enqueue_code_editor
, which available in WordPress 4.9. That causes the problem on your site, since you're running 4.8.11 version of WP. Can you update WP to 4.9? It's the latest stable version before Gutenberg (5.0).November 20, 2019 at 3:20 PM #17027molitor GmbH
ParticipantHey Anh, No sorry we can not update to 4.9 quickly since of theme compatibility issues.
November 20, 2019 at 3:28 PM #17029Anh Tran
KeymasterI see. Let me try to isolate that part to make it available only when needed.
November 20, 2019 at 3:40 PM #17030molitor GmbH
Participantthank you very much
November 20, 2019 at 4:16 PM #17034molitor GmbH
ParticipantHey,
we managed to update to WordPress 4.9.12 but now we get another Error:Uncaught Error: Call to undefined function use_block_editor_for_post_type() in /var/www/vhosts/hosting10519.af95f.netcup.net/httpdocs_wiki/wp-content/plugins/mb-core/vendor/meta-box/meta-box-builder/src/helpers.php on line 58 {closure}() array_map() wp-content/plugins/mb-core/vendor/meta-box/meta-box-builder/src/helpers.php:60 mbb_get_post_types() wp-content/plugins/mb-core/vendor/meta-box/meta-box-builder/src/Edit.php:95 enqueue() wp-includes/class-wp-hook.php:286 apply_filters() wp-includes/class-wp-hook.php:310 do_action() wp-includes/plugin.php:453 do_action() wp-admin/admin-header.php:97 require_once() wp-admin/edit-form-advanced.php:483 include() wp-admin/post.php:180
Do we need WordPress 5.0?
November 21, 2019 at 9:29 PM #17059Anh Tran
KeymasterHi, I'm still working on this bug. The function
use_block_editor_for_post_type
is available on WP 5. Please wait a little if you can't upgrade to WP 5.November 24, 2019 at 9:11 PM #17096Anh Tran
KeymasterHi Martin, I've just released a new version for MB Builder, which fixes this error. Please update.
-
AuthorPosts
- You must be logged in to reply to this topic.