Support Forum
Support › MB Custom Post Type › [BUG] MB CPT edit shows blank pageResolved
Hello,
Using MB AIO V1.5.2
I want to edit my CPT but the editor shows only a blank page for all of my CPTs.
Downgrading to MB AIO V1.5.0
It works as expected.
Updating to MB AIO V1.5.2 again,
I have a blank screen again.
Something in V1.5.2 creates the problem...
Thanks to have a look at it.
Cédric.
Hi,
Can you please share the code that creates the CPT on your site? I will implement it on my end to check the issue.
You can also enable the debug log to check if there is an error message after updating MB AIO to the new version 1.15.2
https://codex.wordpress.org/WP_DEBUG
Hi Long,
WP_DEBUG is true and shows no errors.
Here is a video of the problem :
https://video.boostemaboite.fr/conversations/3b9c261a-0f2f-5748-86a2-a7668965edf7
Here is the code for one of the CPTs, nothing special :
<?php
add_action( 'init', 'your_prefix_register_post_type' );
function your_prefix_register_post_type() {
$labels = [
'name' => esc_html__( 'Activités', 'your-textdomain' ),
'singular_name' => esc_html__( 'Activité', 'your-textdomain' ),
'add_new' => esc_html__( 'Ajouter', 'your-textdomain' ),
'add_new_item' => esc_html__( 'Ajouter une activité', 'your-textdomain' ),
'edit_item' => esc_html__( 'Modifier l'activité', 'your-textdomain' ),
'new_item' => esc_html__( 'Nouvelle activité', 'your-textdomain' ),
'view_item' => esc_html__( 'Voir l'activité', 'your-textdomain' ),
'view_items' => esc_html__( 'Voir les activités', 'your-textdomain' ),
'search_items' => esc_html__( 'Rechercher les activités', 'your-textdomain' ),
'not_found' => esc_html__( 'Pas d'activité trouvée', 'your-textdomain' ),
'not_found_in_trash' => esc_html__( 'Pas d'activités dans la corbeille', 'your-textdomain' ),
'parent_item_colon' => esc_html__( 'Activité parent :', 'your-textdomain' ),
'all_items' => esc_html__( 'Toutes les activités', 'your-textdomain' ),
'archives' => esc_html__( 'Archive des Activités', 'your-textdomain' ),
'attributes' => esc_html__( 'Attributs d'activité', 'your-textdomain' ),
'insert_into_item' => esc_html__( 'Ajouter à l'activité', 'your-textdomain' ),
'uploaded_to_this_item' => esc_html__( 'Chargé dans cette activité', 'your-textdomain' ),
'featured_image' => esc_html__( 'Image en vedette', 'your-textdomain' ),
'set_featured_image' => esc_html__( 'Définir l'image en vedette', 'your-textdomain' ),
'remove_featured_image' => esc_html__( 'Supprimer l'image en vedette', 'your-textdomain' ),
'use_featured_image' => esc_html__( 'Utiliser comme image en vedette', 'your-textdomain' ),
'menu_name' => esc_html__( 'Activités', 'your-textdomain' ),
'filter_items_list' => esc_html__( 'Filter activités list', 'your-textdomain' ),
'filter_by_date' => esc_html__( '', 'your-textdomain' ),
'items_list_navigation' => esc_html__( 'Activités list navigation', 'your-textdomain' ),
'items_list' => esc_html__( 'Activités list', 'your-textdomain' ),
'item_published' => esc_html__( 'Activité published', 'your-textdomain' ),
'item_published_privately' => esc_html__( 'Activité published privately', 'your-textdomain' ),
'item_reverted_to_draft' => esc_html__( 'Activité reverted to draft', 'your-textdomain' ),
'item_scheduled' => esc_html__( 'Activité scheduled', 'your-textdomain' ),
'item_updated' => esc_html__( 'Activité updated', 'your-textdomain' ),
'text_domain' => esc_html__( 'your-textdomain', 'your-textdomain' ),
];
$args = [
'label' => esc_html__( 'Activités', 'your-textdomain' ),
'labels' => $labels,
'description' => '',
'public' => true,
'hierarchical' => false,
'exclude_from_search' => false,
'publicly_queryable' => true,
'show_ui' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'show_in_rest' => true,
'icon_type' => dashicons,
'icon' => dashicons-palmtree,
'query_var' => true,
'can_export' => true,
'delete_with_user' => true,
'has_archive' => true,
'rest_base' => '',
'show_in_menu' => true,
'menu_icon' => '',
'menu_position' => 2,
'capability_type' => 'post',
'supports' => ['title', 'editor', 'thumbnail'],
'taxonomies' => ['type-d-activite'],
'rewrite' => [
'with_front' => false,
],
];
register_post_type( 'les-activites', $args );
}
Hi,
Please try to deactivate all plugins except Meta Box, MB AIO and switch to the standard theme of WordPress then re-check the issue.
And check the tab Console of the inspect tool if there is a JS error https://developer.chrome.com/docs/devtools/open/
[SOLVED]
I did deactivate all plugins except MB & MB AIO.
Then updated to 1.15.2 => Works fine
Then activated all plugins one by one, checking each time MB => Works fine.
I could not determine what was conflicting.
Thanks for your time.