I started to get this error whenever I tried to add a new term of a custom taxonomy that uses a custom table to store some extra fields: 'storage_type' => 'custom_table'
.
Fatal error: Uncaught Error: MetaBox\CustomTable\Cache::get(): Argument #1 ($object_id) must be of type int, null given, called in /public/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-table/src/Storage.php on line 29
in /public/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-table/src/Cache.php on line 19
Call stack:
MetaBox\CustomTable\Cache::get()
wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-table/src/Storage.php:29
MetaBox\CustomTable\Storage::get()
wp-content/plugins/meta-box/inc/field.php:148
RWMB_Field::raw_meta()
wp-content/plugins/meta-box/inc/field.php:535
RWMB_Field::call()
wp-content/plugins/meta-box/inc/meta-box.php:328
RW_Meta_Box::is_saved()
wp-content/plugins/meta-box/inc/meta-box.php:192
RW_Meta_Box::show()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-admin/edit-tags.php:549