Внезапно появилась ошибка в session_id
-
Есть сайт на CMS WordPRess, все было нормально(около пол года) а вчера выпала ошибка что встроке 20 ошибка , вот файл где ошибка session_id
<?php if ( ( $pagenow == "themes.php" ) && current_user_can('administrator') && isset( $_GET['activated'] ) && ( $_GET['activated']=='true' ) ) { if (!include_once( get_template_directory() . '/inc/activation.php' )) { $stylesheet = get_option( 'theme_switched' ); switch_theme( $stylesheet, $stylesheet ); if ( file_exists( get_template_directory() . '/inc/activation.php' ) ) { $error_message[]="PHP hasn't access to file /inc/activation.php. Check the file permissions and try again please."; } else { $error_message[]="File /inc/activation.php doesn't exists. Try to upload the theme again."; } $message="<h2>The theme wasn't activated by following reasons:</h2><ul><li>".implode("</li><li>",$error_message)."</li></ul>"."Your theme was switched back to ".$stylesheet."."; wp_die($message,'',array('back_link'=>"/wp-admin/themes.php")); } } if (!session_id()) { session_start(); } if (!include_once (get_template_directory()."/inc/library.php") )wp_die("Cannot include file /inc/library.php."); $settingsfile='settings'; $defparamsfile="defaults"; $default='global|slider|layout|seo|translations'; $rightargs = array( 'before_widget' => '<div class="widget %2$s"><div class="inner">', 'after_widget' => '</div></div>', 'before_title' => '<div class="caption"><h3>', 'after_title' => '</h3></div>' ); // тут дальше какой-то код ?>я зак комментировал 20 стороку,
/*if (!session_id()) {
session_start();
}*/ошибка пропала, может вы подскажите почему ошибка возникла, и не чего страшного что я ее за комментировал ?
Просмотр 3 ответов — с 1 по 3 (всего 3)
Просмотр 3 ответов — с 1 по 3 (всего 3)
Тема «Внезапно появилась ошибка в session_id» закрыта для новых ответов.