I have a site with the following setup:
- Beaver Builder/Themer
- Meta Box
- Meta Box AIO (using the Beaver Themer Integrator extension)
- There are also other plugins installed
*All plugins and theme are using the latest versions
The Beaver Themer Integrator extension is causing a fatal PHP error, which in return causes most pages on my website to show some random Archive page instead of the actual page content. This issue causes my website to be near non-functional. Deactivating Meta Box fixes the issue.
PHP Error Message:
#9 /www/ in /www/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-beaver-themer-integrator/src/Base.php on line 206
#8 /www/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
#7 /www/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#6 /www/wp-includes/class-wp-hook.php(287): FLPageData::init_properties(Object(WP))
#5 /www/wp-content/plugins/bb-theme-builder/classes/class-fl-page-data.php(136): do_action('fl_page_data_ad...')
#4 /www/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /www/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#2 /www/wp-includes/class-wp-hook.php(287): MBBTI\Base->add_properties('')
#1 /www/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-beaver-themer-integrator/src/Base.php(88): MBBTI\Base->get_fields()
#0 /www/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-beaver-themer-integrator/src/Base.php(181): MBBTI\Base->get_field_list()
2020-09-14T20:07:10+00:00 CRITICAL Uncaught Error: Call to undefined function MBBTI\rwmb_get_registry() in /www/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-beaver-themer-integrator/src/Base.php:206
Is this a known issue? Is there anything I can do to fix this?
Please deactivate all other plugins, leave Meta Box, Meta Box AIO, Beaver Builder Plugin (Agency Version), Beaver Themer activate and switch to the default theme of WordPress (Twenty Twenty) then check the issue again.
Let me know how it goes.
After switching to the Twenty Twenty theme and deactivating all plugins except Meta Box, Meta Box AIO, Beaver Builder, and Beaver Themer, the issue still occurs.
The issue is happening on most pages of my site. Say you visit the FAQ page, instead of showing the normal FAQ page content, the page content is showing the Archive page for /category/news. However, it's not actually redirecting to the Archive page, it's just that the content from that Archive page is showing instead of the actual page content that should display.
I've logged in to Admin Dashboard and activated two plugins Meta Box and Meta Box AIO, then check the page FAQ but not see any issue. See screenshots:
The file php_error.log does not record any error like above. Could you please check the site again?
I've been adjusting things trying to find the cause, but now a new Meta Box issue is occurring. When I try to go to any page for a Meta Box CPT, it loads a 404 error.
How To Reproduce:
1. Go to the /event-gallery/ page. It'll list a grid of posts from the eGallery CPT created by Meta Box.
2. Click on one of the profile cards. This should take you to the page for the chosen post. Instead, it loads a 404 Error.
There is a beaver Themer layout setup for the individual CPT posts. However, for some reason they aren't loading now. This is happening for all the CPT's created by Meta Box.
Do you know why this issue is happening or how I can fix it?
Thanks for your help!
The permalink of an eGallery post is https://www.minnetonkaps.org/egallery/test-gallery-123/. But the permalink is set to option Day and name, just change it to Post name to make it works. See screenshots:
Is there a reason why it would work just fine before the way it is, but not now? It was working just fine with that configuration.
Is there a way to change the permalink structure just for that CPT? If I change the permalink structure, that will also change the blog post links, messing up the SEO of the site.
The plugin Custom Post Type Permalinks might help you to create a custom permalink for specific post types https://wordpress.org/plugins/custom-post-type-permalinks/.
You can also follow this topic to do by coding https://wordpress.stackexchange.com/questions/216337/change-permalink-structure-for-custom-post-type.
After further debugging, I found out the issue was related to Meta Box. WordPress has a reserved names list, which you can see here: https://codex.wordpress.org/Reserved_Terms
It turns out if you name a Taxonomy Term using one of the reserved names from that list, it causes issues. This happens whether using Meta Box or Pods.
It'd be great if you guys added that list somewhere in the Meta Box plugin so users know not to use one of the reserved names, otherwise, it could break your site.
I will create a notice in the documentation for other users. Thank you.