Support Forum
Hello 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:51
PHP 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/01bab3c8fd6547f9a4f636e8f985a393
Hello,
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.
Hi, Thanks for your response.
You mean other rule set apart from singular?
Hi,
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.
Kudos to the team.
Please close this support ticket.