Здравствуйте. Начал пользоваться плагином wpForo, очень понравился в работе. Хотел было уже приобретать дополнительные функции к нему, как он начал конфликтовать с темой сайта. Два дня работал нормально, а сейчас возникает следующая ошибка, которая отображается в шапке и подвале сайта:
Warning: session_start(): open(/var/www/u0505985/data/bin-tmp//sess_avm0vr7ko6sbipnfs69u1g21b2, O_RDWR) failed: No such file or directory (2) in /var/www/u0505985/data/www/sprosiservis.ru/wp-content/plugins/wpforo/wpf-includes/class-notices.php on line 16
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/u0505985/data/www/sprosiservis.ru/wp-content/plugins/wpforo/wpf-includes/class-notices.php:16) in /var/www/u0505985/data/www/sprosiservis.ru/wp-content/plugins/wpforo/wpf-includes/class-notices.php on line 16
Warning: Cannot modify header information - headers already sent by (output started at /var/www/u0505985/data/www/sprosiservis.ru/wp-content/plugins/wpforo/wpf-includes/class-notices.php:16) in /var/www/u0505985/data/www/sprosiservis.ru/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 1197
Warning: Unknown: open(/var/www/u0505985/data/bin-tmp//sess_avm0vr7ko6sbipnfs69u1g21b2, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/u0505985/data/bin-tmp/) in Unknown on line 0
Откат сайта до момента использования плагина не помогает, все равно при установке возникает ошибка. Хотелось бы у вас попросить совета, возможно ли эту проблему устранить своими силами, если да, то какие действия необходимо сделать? Спасибо.
Hi JEKA3000klx,
Thank you for letting us know.
Ссылает от на эту строку - if( !wpforo_is_session_started() && !is_admin() ) session_start();
/**
* @return void
*/
private function init(){
if( !wpforo_is_session_started() && !is_admin() ) session_start();
}
Hi @jeka3000klx
This error doesn't have direct relation to wpForo. You'll see errors from all your plugins which have a session function, but this doesn't mean all those plugins have problems. there is another problem which outputs some data in header and affects all other plugins session function. The one of affected plugin is wpForo and the wp-super-cache plugin. You may have other errors if you don't find the real problem maker.
1. Deactivate all plugins, only leave the wpForo. If you see the error is not fixed then this is a theme issue. somewhere in theme files you have error generation or line-breaks in the current active WordPress theme functions.php file after ?> PHP closer.
2. If you don't see any error, start activate back all plugins one by one and check. This will help find the real problem maker.
Or just the hosting tmp path is wrong/not permited, because sessions are stored in there ?