Coding error detected

Coding error detected

by Jen Buratti -
Number of replies: 2

Hi,

After backing up courses, Moodle stopped working and presented the following error. Any suggestions. I cannot reach the admin portal as I usually do.

Coding error detected, it must be fixed by a programmer: PHP catchable fatal error
Debug info: session_regenerate_id(): Failed to create(read) session ID: files (path: [dataroot]/sessions)
Error code: codingerror
Stack trace:
  • line 424 of /lib/setuplib.php: coding_exception thrown
  • line ? of unknownfile: call to default_error_handler()
  • line 302 of /lib/classes/session/manager.php: call to session_regenerate_id()
  • line 85 of /lib/classes/session/manager.php: call to core\session\manager::initialise_user_session()
  • line 790 of /lib/setup.php: call to core\session\manager::start()
  • line 26 of /config.php: call to require_once()
  • line 30 of /index.php: call to require_once()

Average of ratings: -
In reply to Jen Buratti

Re: Coding error detected

by Ken Task -
Picture of Particularly helpful Moodlers

Don't think backing up a course would be the cause ... but the following ...

"Failed to create(read) session ID: files (path: [dataroot]/sessions)"

Looks like ownerships/permissions on moodledata ... if located outside of document root permissions on moodledata and all folders files therein can be quite liberal.   In moodledata/ what are owneships/permissions on 'sessions' directory?

'SoS', Ken