Problem with SessionManager.inc.php

Can you guide me with the following warnings?

  • OJS version 3.1.2
  • Version PHP 7.2 and MYSQL 5.7
  • Does not load the style file when loading the main page
  • I can’t login
  • mbstring enabled

imagen

 Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in \lib\pkp\classes\session\SessionManager.inc.php on line 35

Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in \lib\pkp\classes\session\SessionManager.inc.php on line *36*

Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in \lib\pkp\classes\session\SessionManager.inc.php on line *37*

Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in \lib\pkp\classes\session\SessionManager.inc.php on line *38*

Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in \lib\pkp\classes\session\SessionManager.inc.php on line *39*

Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in \lib\pkp\classes\session\SessionManager.inc.php on line *40*

Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in \lib\pkp\classes\session\SessionManager.inc.php on line *4*

Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in \lib\pkp\classes\session\SessionManager.inc.php on line *42*

Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in \lib\pkp\classes\session\SessionManager.inc.php on line *43*

Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in \lib\pkp\classes\session\SessionManager.inc.php on line *45*

Warning: session_set_save_handler(): Cannot change save handler when session is active in \lib\pkp\classes\session\SessionManager.inc.php on line *53*

Notice: session_start(): A session had already been started - ignoring in \lib\pkp\classes\session\SessionManager.inc.php on line *58*

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in \lib\pkp\lib\adodb\adodb.inc.php on line *1003*

Warning: Cannot modify header information - headers already sent by (output started at \lib\pkp\classes\session\SessionManager.inc.php:36) in \lib\pkp\classes\core\PKPRequest.inc.php on line *99*

Hi @jpmaidana,

Configure your PHP so that errors and warnings are directed to the PHP log rather than the browser; I suspect that’ll resolve this problem.

Regards,
Alec Smecher
Public Knowledge Project Team

Still unable to load the styles of the web page index
Before I had a problem with the PHP version. These messages appear in me shows in the PHP log:

PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in \lib\pkp\lib\adodb\adodb.inc.php on line 1003
PHP Stack trace:
PHP   1. {main}() \index.php:0
PHP   2. Application->execute() \index.php:68
PHP   3. Dispatcher->dispatch() 
\lib\pkp\classes\core\PKPApplication.inc.php:252
PHP   4. PageRouter->isCacheable() \lib\pkp\classes\core\Dispatcher.inc.php:117
PHP   5. Validation::isLoggedIn() \lib\pkp\classes\core\PKPPageRouter.inc.php:66
PHP   6. SessionManager::getManager() \lib\pkp\classes\security\Validation.inc.php:371
PHP   7. SessionManager->__construct() \lib\pkp\classes\session\SessionManager.inc.php:129
PHP   8. session_start() \lib\pkp\classes\session\SessionManager.inc.php:58
PHP   9. SessionManager->read() \lib\pkp\classes\session\SessionManager.inc.php:58
PHP  10. SessionDAO->getSession() \lib\pkp\classes\session\SessionManager.inc.php:168
PHP  11. SessionDAO->retrieve() \lib\pkp\classes\session\SessionDAO.inc.php:37
PHP  12. ADODB_mysqli->Execute() \lib\pkp\classes\db\DAO.inc.php:100
PHP  13. each() \lib\pkp\lib\adodb\adodb.inc.php:1003

PHP Notice:  Only variables should be assigned by reference in \pages\index\IndexHandler.inc.php on line 68
PHP Stack trace:
PHP   1. {main}() \index.php:0
PHP   2. Application->execute() C:\wamp64\www\OJS\riners\index.php:68
PHP   3. Dispatcher->dispatch() \lib\pkp\classes\core\PKPApplication.inc.php:252
PHP   4. PageRouter->route() \lib\pkp\classes\core\Dispatcher.inc.php:134
PHP   5. PageRouter->_authorizeInitializeAndCallRequest() \lib\pkp\classes\core\PKPPageRouter.inc.php:231
PHP   6. IndexHandler->index() \lib\pkp\classes\core\PKPRouter.inc.php:390

Hi @jpmaidana,

It appears that no theme has been chosen; if you’re able to log in and navigate to the appearance settings form, try choosing a theme there. (If you’ve upgraded and your new codebase doesn’t contain the theme you used to use, this could explain why.)

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks for the help, setting_value was in null, add the default theme and remove the php files inside the cache folder.

1 Like