Notice: Trying to get property
- This topic has 8 replies, 2 voices, and was last updated 5 years, 3 months ago by
Long Nguyen.
-
AuthorPosts
-
July 15, 2020 at 6:34 PM #20782
Egor Borushko
ParticipantGetting below error when trying to access custom fields -
Notice: Trying to get property 'for' of non-object in /var/www/runningremote.com/staging2/wp-content/plugins/mb-core/vendor/meta-box/meta-box-builder/src/AdminColumns.php on line 50
July 16, 2020 at 8:50 AM #20787Long Nguyen
ModeratorHi,
Thank you for pointing this out.
Could you please update the newest version of the MB Core plugin to v1.0.16 then check the issue again?
Then edit all field groups and make sure that option Show For is set to one of the list objects Posts, Taxonomies, Settings Page, Comments. See my screenshot https://share.getcloudapp.com/eDu1JzXE.
If it still happens, please take some screenshots of this issue, I will take a closer look and give a quick response.
July 16, 2020 at 12:46 PM #20791Egor Borushko
ParticipantThank you for the reply.
I updated to MB Core 1.0.16 also the "Show for" is already set to "Posts" for all my custom post types.Now I am getting this error too Notice: Undefined index: title in /var/www/runningremote.com/staging2/wp-content/plugins/meta-box/inc/meta-box.php on line 346
Please see screenshots. Thanks!
After the update, I am getting this error for one of the custom fields - http://prntscr.com/tipmhj
July 16, 2020 at 2:14 PM #20793Long Nguyen
ModeratorHi,
Please see my screen record https://www.loom.com/share/014785bc0a514cf098901fd12c88082c.
I'm using the plugin MB Core 1.0.16 and Meta Box 5.3.2. Please try to add the meta box title and set the post type in the settings tab then save the field group again. On my local site, everything works as well.
July 16, 2020 at 3:30 PM #20796Egor Borushko
ParticipantThe error is gone now. Thanks. But all my custom fields have disappeared. I cannot edit any custom post type fields as well.
July 16, 2020 at 3:42 PM #20799Egor Borushko
ParticipantAlso getting this error - http://prntscr.com/tisya1
July 17, 2020 at 4:22 PM #20823Long Nguyen
ModeratorHi,
This problem is so weird, please follow this guide to know how to create the staging site https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/.
Then share the credentials (Admin site and FTP account) via this form https://metabox.io/contact/. I will check it out.
July 17, 2020 at 4:33 PM #20825Egor Borushko
ParticipantSent. Please do the needful. Thanks!
July 18, 2020 at 8:32 AM #20837Long Nguyen
ModeratorHi,
There are some problems with your current field groups, but you can create a new field group and can edit/add new fields as well. Could you please try to create the field group again?
-
AuthorPosts
- You must be logged in to reply to this topic.