• Hi There,

    We’re seeing an issue on multiple sites where the hidden dashboard panels setting is no longer being respected on 6.6.1 but only on some of our sites.

    We’ve tried deactivating all plugins on a site apart from whitelabel as well as resetting the plugin but nothing will make the panels added by core and other plugins go away!

    I’d be grateful for any advice/further debugging we can do to solve this – we use WhiteLabelCMS across c.70 sites and many are affected by this – but it doesn’t seem to be a PHP version issue as we’re seeing sites on the same version working fine.

    All the Best,
    Alex

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support VUM Support – Jhay

    (@jhayvum)

    Hello,

    Thank you for reaching out, and I apologize for the inconvenience you’re experiencing with the White Label CMS plugin.

    To assist you better, could you please provide a screencast of your settings, installed plugins, themes, and the dashboard pages? This will help us understand the environment and potentially identify any conflicts or misconfigurations.

    Additionally, if you have any custom code related to the admin page, could you please share that with us? Custom code can sometimes interact with the plugin in unexpected ways, and this information will be crucial for us to diagnose the issue accurately.

    As a troubleshooting step, could you also try modifying the dashboard name or uploading a new dashboard icon? We’re considering the possibility that this could be a caching issue, and making these changes might help us confirm or rule out that possibility.

    Once we have this information and you’ve tried the suggested steps, we’ll be able to investigate further and provide a solution as quickly as possible.

    Thread Starter alexgwcog

    (@alexgwcog)

    Hi There,

    Thanks for the reply, I’ve tried deactivating all other plugins and reverting back to 202X themes and that still isn’t doing it.

    I’ve tried removing all other plugins and keeping our theme so I’m fairly certain it’s not a plugin issue either.

    I carried on with a minimal reproduction on a fresh WP install and that did work – the difference seems to be that on the fresh install I can see a list of dashboard panels whereas on my sites I can’t see that list.

    Fresh install:

    Whereas on my sites:

    Are these options stored in a transient or some sort of cache that could be corrupted?

    All the Best,
    Alex

    Plugin Support VUM Support – Jhay

    (@jhayvum)

    Hi Alex,

    It looks like the dashboard widget list from $wp_meta_boxes might be missing. Here are a few steps you can try:

    1. Clear Cache: If you’re using any caching mechanisms, please reset them. This includes both server-side caches and any caching plugins.
    2. Restart Web Server: If clearing the cache doesn’t help, try restarting your web server to ensure no server-side caching or issues are affecting the behavior.
    3. Check PHP Logs: Please check the PHP error or warning logs to see if there are any related errors that might give us more insight into the issue.
    4. Debugging: If the issue persists and you’re comfortable with adding PHP code, you can add the following line to wp-content/plugins/white-label-cms/includes/classes/Admin_Dashboard.php at line 526:
       var_dump($wp_meta_boxes); exit;

    This will help us see the output and better understand why the panels are not being hidden. You can use this screenshot (https://d.pr/i/SChoLO) as a reference for where to place the code.

    Please let me know the output from the var_dump() or if any of these steps resolve the issue.

    Thread Starter alexgwcog

    (@alexgwcog)

    Thanks Jhay,

    Doing that dump didn’t show anything but if I put a dump in the “remove_metaboxes()” function at the start I get the following:


    private function remove_metaboxes()
    {

    global $wp_meta_boxes;

    var_dump($wp_meta_boxes); exit;
    array(1) { ["dashboard"]=> array(2) { ["normal"]=> array(4) { ["high"]=> array(1) { ["dashboard_recent_comments"]=> bool(false) } ["core"]=> array(5) { ["dashboard_recent_comments"]=> bool(false) ["dashboard_site_health"]=> array(4) { ["id"]=> string(21) "dashboard_site_health" ["title"]=> string(18) "Site Health Status" ["callback"]=> string(24) "wp_dashboard_site_health" ["args"]=> array(1) { ["__widget_basename"]=> string(18) "Site Health Status" } } ["dashboard_right_now"]=> array(4) { ["id"]=> string(19) "dashboard_right_now" ["title"]=> string(11) "At a Glance" ["callback"]=> string(22) "wp_dashboard_right_now" ["args"]=> array(1) { ["__widget_basename"]=> string(11) "At a Glance" } } ["dashboard_activity"]=> array(4) { ["id"]=> string(18) "dashboard_activity" ["title"]=> string(8) "Activity" ["callback"]=> string(26) "wp_dashboard_site_activity" ["args"]=> array(1) { ["__widget_basename"]=> string(8) "Activity" } } ["custom_vum_widget0"]=> array(4) { ["id"]=> string(18) "custom_vum_widget0" ["title"]=> string(4) "TEST" ["callback"]=> array(2) { [0]=> object(Welcome_Messages_Html)#3075 (2) { ["key":"Welcome_Messages_Html":private]=> int(0) ["settings":"Welcome_Messages_Html":private]=> array(7) { ["is_active"]=> string(1) "1" ["visible_to"]=> array(5) { [0]=> string(13) "administrator" [1]=> string(6) "editor" [2]=> string(6) "author" [3]=> string(11) "contributor" [4]=> string(10) "subscriber" } ["template_type"]=> string(4) "html" ["page_id_elementor"]=> string(0) "" ["page_id_beaver"]=> string(0) "" ["title"]=> string(4) "TEST" ["description"]=> string(0) "" } } [1]=> string(19) "welcome_description" } ["args"]=> array(2) { ["desc"]=> string(0) "" ["__widget_basename"]=> string(4) "TEST" } } } ["default"]=> array(1) { ["dashboard_recent_comments"]=> bool(false) } ["low"]=> array(1) { ["dashboard_recent_comments"]=> bool(false) } } ["side"]=> array(1) { ["core"]=> array(2) { ["dashboard_quick_press"]=> array(4) { ["id"]=> string(21) "dashboard_quick_press" ["title"]=> string(97) "Quick Draft Your Recent Drafts" ["callback"]=> string(24) "wp_dashboard_quick_press" ["args"]=> array(1) { ["__widget_basename"]=> string(97) "Quick Draft Your Recent Drafts" } } ["dashboard_primary"]=> array(4) { ["id"]=> string(17) "dashboard_primary" ["title"]=> string(25) "WordPress Events and News" ["callback"]=> string(24) "wp_dashboard_events_news" ["args"]=> array(1) { ["__widget_basename"]=> string(25) "WordPress Events and News" } } } } } }

    But if I dump the widgets:

     $wlcms_widgets = wlcms_esc_html_deep($this->get_settings('dashboard_widgets'));
    var_dump($wlcms_widgets);
    exit;

    I get string(0) "" So that’s not being fetched to then process things.

    If I dump:

    var_dump(wlcms()->Settings()->getAll());

      ["dashboard_widgets"]=>
    string(0) ""
    ["hide_all_dashboard_panels"]=>
    string(1) "1"

    I think that the issue is that this isn’t being populated when the settings are being saved, because they’re not there on the settings page to be set.
    Digging a little further I looked in white-label-cms/view/admin/parts/dashboard-default-panels.php

    and dumped out $widgets at line 45:

    Hide All Dashboard Panels
    This will hide all the WordPress default dashboard panels. Or you can specify which panels should appear.

    array(1) { ["normal"]=> array(4) { ["high"]=> array(1) { ["dashboard_recent_comments"]=> bool(false) } ["core"]=> array(1) { ["dashboard_recent_comments"]=> bool(false) } ["default"]=> array(1) { ["dashboard_recent_comments"]=> bool(false) } ["low"]=> array(1) { ["dashboard_recent_comments"]=> bool(false) } } }

    But again this falls back to the setting/options table when doing the comparison – $dashboard_widget = wlcms_field_setting('dashboard_widgets');

    Hopefully some of this extra digging helps us narrow it down!

    All the Best,
    Alex

    Plugin Support VUM Support – Jhay

    (@jhayvum)

    Hello,

    I wanted to check if you’ve had a chance to restart your server and clear the cache.

    Thank you for providing the var_dump results.

    From my initial instruction, please add the following line to wp-content/plugins/white-label-cms/includes/classes/Admin_Dashboard.php at line 526:

    var_dump($wp_meta_boxes); exit;

    After making this change, please visit the following URL: /wp-admin/options-general.php?page=wlcms-plugin.php&view=settings#tab-dashboard. Once you’ve done that, let me know what output you receive. It should look similar to this: screenshot.

    Thank you!

    Thread Starter alexgwcog

    (@alexgwcog)

    Hi,

    Sure thing

    array(1) { ["dashboard"]=> array(1) { ["normal"]=> array(4) { ["high"]=> array(1) { ["dashboard_recent_comments"]=> bool(false) } ["core"]=> array(1) { ["dashboard_recent_comments"]=> bool(false) } ["default"]=> array(1) { ["dashboard_recent_comments"]=> bool(false) } ["low"]=> array(1) { ["dashboard_recent_comments"]=> bool(false) } } } }

    All the Best,

    Alex

    Plugin Support VUM Support – Jhay

    (@jhayvum)

    Hello,

    That’s interesting; something appears to be causing the widget attributes to be removed. Unfortunately, I’m having difficulty replicating the issue on my end. If it’s alright with you, please consider reaching out for support at https://www.videousermanuals.com/help/.

    Thread Starter alexgwcog

    (@alexgwcog)

    Hi There,

    Thanks will open a support thread there.

    All the Best,
    Alex

    Thread Starter alexgwcog

    (@alexgwcog)

    Hi There,

    I opened a ticket and am yet to get a response, is there an email I can contact directly? We’re still having this issue I’m afraid.

    All the Best,
    Alex

    Plugin Support VUM Support – Jhay

    (@jhayvum)

    Hello Alex,

    Kindly check your inbox, I messaged you immediately last week and just now.

    Regards,

    Jhay-ar

    Same issue here. Did you already find a solution to fix this bug?

    Plugin Support VUM Support – Jhay

    (@jhayvum)

    Hello @vendojo ,

    We really wanted to sort this out, but unfortunately, we cannot replicate the issue. If it’s alright with you, please consider reaching out for support at https://www.videousermanuals.com/help/.

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.