After upgrade from 7.0.0 (1) to 7.0.2 blank frame for calendar [Solved]

This is the only error message

   OpenEMR.ERROR: Not all selected assets were included in header {"selectedAssets":[""],"foundAssets":["jquery","bootstrap","utility","main-theme","compact-theme","textformat","dialog"]}

What do you think? Does the craziest stuff happen??

These selections have been removed from the program. Maybe because no one used this feature.

I don’t see a place anywhere to set the tabs. So, hummm. I cleared the Smarty Cache. All the directories have the right permission.

Line 20 of tabs_template.php is not being populated

<!-- ko  foreach: tabsList -->

Because if I put a 1 after the tabsList. A tab appears.

The problem is in the main.php.

    if ($_SESSION['default_open_tabs']) :
        // For now, only the first tab is visible, this could be improved upon by further customizing the list options in a future feature request
        $visible = "true";
        foreach ($_SESSION['default_open_tabs'] as $i => $tab) :
            $_unsafe_url = preg_replace('/(\?.*)/m', '', Path::canonicalize($fileroot . DIRECTORY_SEPARATOR . $tab['notes']));
            if (realpath($_unsafe_url) === false || strpos($_unsafe_url, $fileroot) !== 0) {
                unset($_SESSION['default_open_tabs'][$i]);
                continue;
            }
            $url = json_encode($webroot . "/" . $tab['notes']);
            $target = json_encode($tab['option_id']);
            $label = json_encode(xl("Loading") . " " . $tab['title']);
            $loading = xlj("Loading");
            //this is not being echoed. 
            echo "app_view_model.application_data.tabs.tabsList.push(new tabStatus($label, $url, $target, $loading, true, $visible, false));\n";
            $visible = "false";
        endforeach;
    endif;
    ?>

The $_SESSION[‘default_open_tabs’] array is empty. Now, to figure out where the data should be coming from that is not there.

Array
(
[0] => Array
    (
        [list_id] => default_open_tabs
        [option_id] => cal
        [title] => Calendar
        [seq] => 10
        [is_default] => 0
        [option_value] => 0
        [mapping] => 
        [notes] => interface/main/main_info.php
        [codes] => 
        [toggle_setting_1] => 0
        [toggle_setting_2] => 0
        [activity] => 1
        [subtype] => 
        [edit_options] => 1
        [timestamp] => 2023-11-18 01:43:52
    )

)

After crawling into the database activity was not set to 1. All of the default tabs were set to zero.

update list_options set activity = 1 where title = 'Calendar';

Fixed!

Epilog
The rearranging of the tabs has been moved from the globals into the list manager, in the list Default Open Tabs. New tabs can be specified. This will be easier to manage in the future for module builders who want to inject new tabs