Support Forum
Support › MB Custom Post Type › Cannot add Custom Post TypeResolved
Hello,
I've recently migrated my wordpress multisite on to a new server that is running php7.2. I had to because most of the plugins I was using were no longer supporting php5.5.9.
On the old server, I created a plugin for each of the sites within the multisite that adds a custom post type with additional meta boxes. These no longer work but that's beside the point.
My problem is that I've installed mb custom post type to try and recreate these plugins. Mb custom post type appears in the dashboard but when I click on it and try to add a new custom post type there are no boxes to fill in. Then, if I press publish the whole site crashes and I have to uninstall it again. Please help!
Thanks
Hi Cornwall,
The MB Custom Post Type plugin creates only custom post types. No meta boxes or custom fields are created with it. To create meta boxes or custom fields, you'll need Meta Box Builder.
Sorry, that's what I meant.
I'm trying to create a new custom post type using the mb custom post type plugin. It appears as a button in the dashboard under Meta Box. I can click on it and it takes me to an empty table where my custom post types would be if I had created any, which is what I would expect.
The problem is that when I press "New Post Type", at the top of the page, it takes me to an empty page with nothing but a publish button. The title of the page is Add New Post Type. I have read the tutorials and there should be some sort of table where I can put the details of the custom post type I'm trying to create.
Hi Cornwall,
Can you enable debugging and see if there's any PHP error on the "New Post Type" screen?
Hi Anh,
I don't get any PHP errors on the "New Post Type screen. Although I can't add any details to create the custom post type, I can still press publish. When I do press publish I get these errors:
Notice: Undefined index: post_type in /var/www/html/testnetwork1804/public_html/wp-content/plugins/mb-custom-post-type/inc/post-type/register.php on line 78
Notice: Undefined index: name in /var/www/html/testnetwork1804/public_html/wp-content/plugins/mb-custom-post-type/inc/post-type/register.php on line 127
Notice: Undefined index: singular_name in /var/www/html/testnetwork1804/public_html/wp-content/plugins/mb-custom-post-type/inc/post-type/register.php on line 128
Notice: Undefined index: singular_name in /var/www/html/testnetwork1804/public_html/wp-content/plugins/mb-custom-post-type/inc/post-type/register.php on line 131
Notice: Undefined index: singular_name in /var/www/html/testnetwork1804/public_html/wp-content/plugins/mb-custom-post-type/inc/post-type/register.php on line 133
Notice: Undefined index: singular_name in /var/www/html/testnetwork1804/public_html/wp-content/plugins/mb-custom-post-type/inc/post-type/register.php on line 135
Notice: Undefined index: singular_name in /var/www/html/testnetwork1804/public_html/wp-content/plugins/mb-custom-post-type/inc/post-type/register.php on line 137
Notice: Undefined index: singular_name in /var/www/html/testnetwork1804/public_html/wp-content/plugins/mb-custom-post-type/inc/post-type/register.php on line 139
Notice: Undefined index: name in /var/www/html/testnetwork1804/public_html/wp-content/plugins/mb-custom-post-type/inc/post-type/register.php on line 141
Notice: Undefined index: name in /var/www/html/testnetwork1804/public_html/wp-content/plugins/mb-custom-post-type/inc/post-type/register.php on line 143
Notice: Undefined index: name in /var/www/html/testnetwork1804/public_html/wp-content/plugins/mb-custom-post-type/inc/post-type/register.php on line 145
Notice: Undefined index: name in /var/www/html/testnetwork1804/public_html/wp-content/plugins/mb-custom-post-type/inc/post-type/register.php on line 147
Notice: Undefined index: name in /var/www/html/testnetwork1804/public_html/wp-content/plugins/mb-custom-post-type/inc/post-type/register.php on line 149
Notice: Undefined index: name in /var/www/html/testnetwork1804/public_html/wp-content/plugins/mb-custom-post-type/inc/post-type/register.php on line 152
Hi Cornwall,
Looks like no boxes causes no data is saved, and thus generate errors when registering the CPT. Can you drop me an email with a temporary admin account to check?
Sorry, I've been told that I'm not really allowed to give you a temporary account. Would we be able to do it through remote desktop?
No problem, let's talk via Skype. My Skype nickname is "rilwis". You can call me anytime between 9AM-5PM GMT+7.