-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i cant get metaboxees #449
Comments
@srextasagar32 can you please provide some context to this? What are the metaboxes you're using that is causing this? |
I have used this plugin since last couple of years. but there was an uncaught error. |
@srextasagar32 I understand that there was an uncaught error, but I need more information from you to debug this.
|
@mikeselander I ran into this issue as well. Just to share, it appears related to the $metaboxes[] = [
'title' => 'Edit Team Member',
'fields' => [
'id' => 'member-fields',
'name' => 'Member Data',
'type' => 'group',
'fields' => self::$fields,
],
'pages' => 'Teams Members',
'context' => 'advanced',
'priority' => 'high',
]; I hope this helps. |
@squibbleFish that does help! Could you please also past the source of |
@mikeselander no problem. It's just a simple array of fields with the appropriate values. static $fields = [
[
'id' => 'field-id-1',
'name' => 'Name-1'
'type' . => 'text'
],
[
'id' => 'field-id-2',
'name' => 'Name-2'
'type' . => 'text'
],
[
'id' => 'field-id-3',
'name' => 'Name-3'
'type' . => 'textarea'
],
] I hope this helps. |
Hi there,
It's the pages argument in your config. It can't handle page titles.
Deliver a page ID or multiple IDs in an array as described in the wiki (
https://github.com/humanmade/Custom-Meta-Boxes/wiki/Create-a-Meta-Box)
instead.
Good luck
Stephen Fisher <[email protected]> schrieb am Fr., 30. März 2018,
05:20:
… @mikeselander <https://github.com/mikeselander> I ran into this issue as
well. Just to share, it appears related to the group field.
Here's the code I was using. It could be incorrect, but when I do remove
the group field, the meta box renders correctly.
$metaboxes[] = [ 'title' => 'Edit Team Member', 'fields' => [ 'id' => 'member-fields', 'name' => 'Member Data', 'type' => 'group', 'fields' => self::$fields, ], 'pages' => 'Teams Members', 'context' => 'advanced', 'priority' => 'high', ];
I hope this helps.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#449 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD55fsgUSP7BATjKOpkFGiMo2PA17xMNks5tjaRpgaJpZM4SLu-M>
.
|
@deivibub Thanks for checking in, but that is not the case. It does appear to be related to the |
Fatal error: Uncaught Error: Cannot unset string offsets in D:\xampp\htdocs\seperate\wp-content\plugins\Custom-Meta-Boxes-1.1.0\class-cmb-meta-box.php:78
The text was updated successfully, but these errors were encountered: