Layoutfehler links im Menü
Posted: 16 May 2019, 14:45
Moin!
Ich habe meine BugDatabase auf einen neuen Server verschoben und gleich von V1.2.15 -> V2.21.0 hochgezogen. Ich verwende jetzt XAMPP 7.3.5 (vorher WAMP 2.1). Ich habe die alte MySQL 5.5.8 Datenbank einfach durch kopieren des Ordners "mantis" auf den neuen Server (MariaDB 10.1. kopiert und den SQL Benutzer neu hinzugefügt. Nach dem Upgrade habe ich mich eingeloggt und anscheinend funzt alles. Allerdings habe ich links im Menü zwei Fehlermeldungen:
Betrifft wohl die Funktion layout_config_menu_options_for_sidebar()
Hat jemand ne Idee wie ich den Fehler beseitigen kann?
Ich habe meine BugDatabase auf einen neuen Server verschoben und gleich von V1.2.15 -> V2.21.0 hochgezogen. Ich verwende jetzt XAMPP 7.3.5 (vorher WAMP 2.1). Ich habe die alte MySQL 5.5.8 Datenbank einfach durch kopieren des Ordners "mantis" auf den neuen Server (MariaDB 10.1. kopiert und den SQL Benutzer neu hinzugefügt. Nach dem Upgrade habe ich mich eingeloggt und anscheinend funzt alles. Allerdings habe ich links im Menü zwei Fehlermeldungen:
Code: Select all
SYSTEM NOTICE: 'Undefined offset: 0' in 'C:\xampp\htdocs\BugDatabase\core\layout_api.php' line 818
Code: Select all
SYSTEM NOTICE: 'Undefined offset: 2' in 'C:\xampp\htdocs\BugDatabase\core\layout_api.php' line 820
Code: Select all
/**
* Process main menu options from config.
* @param string $p_active_sidebar_page The active page on the sidebar.
* @return void
*/
function layout_config_menu_options_for_sidebar( $p_active_sidebar_page ) {
$t_menu_options = array();
$t_custom_options = config_get( 'main_menu_custom_options' );
foreach( $t_custom_options as $t_custom_option ) {
if( isset( $t_custom_option['url'] ) ) {
$t_menu_option = $t_custom_option;
} else {
# Support < 2.0.0 custom menu options config format
$t_menu_option = array();
$t_menu_option['title'] = $t_custom_option[0];
$t_menu_option['access_level'] = $t_custom_option[1];
$t_menu_option['url'] = $t_custom_option[2];
}
$t_menu_options[] = $t_menu_option;
}
layout_options_for_sidebar( $t_menu_options, $p_active_sidebar_page );
}