MB Views query error in settings area to set location
- This topic has 4 replies, 2 voices, and was last updated 2 years, 4 months ago by
Prabakaran Shankar.
-
AuthorPosts
-
December 8, 2022 at 7:15 AM #39603
Prabakaran Shankar
ParticipantHello Team,
I cannot able to pull up the terms in MB Views settings page to setup the location for the code.
PHP error log:
PHP Fatal error: Uncaught Error: Call to protected method RWMB_Taxonomy_Field::query() from scope MBViewsLocationData in /var/web/site/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-views/src/Location/Data.php:51PHP Stacktrace:
/var/web/site/public_html/wp-includes/rest-api/class-wp-rest-server.php(1171): MBViews\Location\Data->get_terms(Object(WP_REST_Request))
/var/web/site/public_html/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/mbv/location/t...', Array, NULL)
/var/web/site/public_html/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch(Object(WP_REST_Request))
/var/web/site/public_html/wp-includes/rest-api.php(410): WP_REST_Server->serve_request('/mbv/location/t...')
/var/web/site/public_html/wp-includes/class-wp-hook.php(308): rest_api_loaded(Object(WP))
/var/web/site/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
/var/web/site/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
/var/web/site/public_html/wp-includes/class-wp.php(399): do_action_ref_array('parse_request', Array)
/var/web/site/public_html/wp-includes/class-wp.php(780): WP->parse_request('')
/var/web/site/public_html/wp-includes/functions.php(1332): WP->main('')
/var/web/site/public_html/wp-blog-header.php(16): wp()
/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-aio/vendor/meta-box/mb-views/src/Location/Data.php on line 51
https://www.loom.com/share/01bab3c8fd6547f9a4f636e8f985a393December 9, 2022 at 4:47 PM #39639Peter
ModeratorHello,
Thanks for your feedback.
I see the term is not selected on my local site. Also, if you are using the Type: Singular, please select the post type only, don't select the taxonomy which is the archive page.
I've escalated the issue to the development team to fix it in the next update.
December 9, 2022 at 5:38 PM #39640Prabakaran Shankar
ParticipantHi, Thanks for your response.
You mean other rule set apart from singular?December 11, 2022 at 9:20 AM #39675Peter
ModeratorHi,
This issue has been fixed in this commit https://github.com/wpmetabox/meta-box/commit/0cf256eaae651eb5652b81b2167f9f334ab8cf98
You can apply the changes on your site while waiting for the new release of Meta Box.
And please read more about the singular template here https://developer.wordpress.org/themes/basics/template-hierarchy/
It should be set for the post type page.
December 20, 2022 at 4:52 PM #39935Prabakaran Shankar
ParticipantKudos to the team.
Please close this support ticket. -
AuthorPosts
- You must be logged in to reply to this topic.