Unable to save custom fields Show/Hide settings
Support › Meta Box AIO › Unable to save custom fields Show/Hide settingsResolved
- This topic has 2 replies, 2 voices, and was last updated 2 years, 5 months ago by
zevimedia.
-
AuthorPosts
-
December 9, 2022 at 1:19 AM #39618
zevimedia
ParticipantI'm developing using Local WP and all of a sudden I'm unable to update the Custom Fields settings to Show/Hide based on specific pages. When I try to add another page to the Show/Hide settings fields Metabox seems to crash. I have checked the error log and found the following PHP error (see below) but not sure how to fix it. Could someone point me in the right direction to get this resolved?
Also, here's a screen recording of what I'm trying to do and what is happening when I try to add a new page to the settings: https://www.loom.com/share/5623ff154ffd4c2bb844d5dd6727c108
08-Dec-2022 18:07:06 UTC] PHP Fatal error: Uncaught Error: Call to protected method RWMB_Post_Field::query() from scope MBB\RestApi\Base in /Users/gibran/Local Sites/pipilasframe/app/public/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/RestApi/Base.php:61
Stack trace:
#0 /Users/gibran/Local Sites/pipilasframe/app/public/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/RestApi/IncludeExclude.php(14): MBB\RestApi\Base->get_posts('pe', 'ID', Array)
#1 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/rest-api/class-wp-rest-server.php(1171): MBB\RestApi\IncludeExclude->include_exclude(Object(WP_REST_Request))
#2 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/mbb/include-ex...', Array, NULL)
#3 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch(Object(WP_REST_Request))
#4 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/rest-api.php(410): WP_REST_Server->serve_request('/mbb/include-ex...')
#5 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/class-wp-hook.php(308): rest_api_loaded(Object(WP))
#6 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#7 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#8 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/class-wp.php(399): do_action_ref_array('parse_request', Array)
#9 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/class-wp.php(780): WP->parse_request('')
#10 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/functions.php(1332): WP->main('')
#11 /Users/gibran/Local Sites/pipilasframe/app/public/wp-blog-header.php(16): wp()
#12 /Users/gibran/Local Sites/pipilasframe/app/public/index.php(17): require('/Users/gibran/L...')
#13 {main}
thrown in /Users/gibran/Local Sites/pipilasframe/app/public/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/RestApi/Base.php on line 61
[08-Dec-2022 18:07:07 UTC] PHP Fatal error: Uncaught Error: Call to protected method RWMB_Post_Field::query() from scope MBB\RestApi\Base in /Users/gibran/Local Sites/pipilasframe/app/public/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/RestApi/Base.php:61
Stack trace:
#0 /Users/gibran/Local Sites/pipilasframe/app/public/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/RestApi/IncludeExclude.php(14): MBB\RestApi\Base->get_posts('pes', 'ID', Array)
#1 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/rest-api/class-wp-rest-server.php(1171): MBB\RestApi\IncludeExclude->include_exclude(Object(WP_REST_Request))
#2 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/mbb/include-ex...', Array, NULL)
#3 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch(Object(WP_REST_Request))
#4 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/rest-api.php(410): WP_REST_Server->serve_request('/mbb/include-ex...')
#5 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/class-wp-hook.php(308): rest_api_loaded(Object(WP))
#6 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#7 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#8 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/class-wp.php(399): do_action_ref_array('parse_request', Array)
#9 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/class-wp.php(780): WP->parse_request('')
#10 /Users/gibran/Local Sites/pipilasframe/app/public/wp-includes/functions.php(1332): WP->main('')
#11 /Users/gibran/Local Sites/pipilasframe/app/public/wp-blog-header.php(16): wp()
#12 /Users/gibran/Local Sites/pipilasframe/app/public/index.php(17): require('/Users/gibran/L...')
#13 {main}
thrown in /Users/gibran/Local Sites/pipilasframe/app/public/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/RestApi/Base.php on line 61December 9, 2022 at 8:50 PM #39646Peter
ModeratorHello there,
This issue has been fixed in this commit https://github.com/wpmetabox/meta-box/commit/0cf256eaae651eb5652b81b2167f9f334ab8cf98
You can use the changes on your site while waiting for the new release of Meta Box. Thanks.
December 10, 2022 at 1:42 AM #39656zevimedia
ParticipantThank you, Peter!
-
AuthorPosts
- You must be logged in to reply to this topic.