Call to undefined method lib\\core\\Session::regenerate()

Wappler: 4.5.1
OS: MacOS (Intel)
Server: PHP

This has been working for a while but seems to have broken in the last week or so.

I have a logout SC script with literally just that action in it:

Screenshot 2022-01-29 at 19.39.54

I’m viewing the file directly in the browser and am getting this:

code: 0, file: "/home/site/dmxConnectLib/lib/auth/Provider.php", line: 104,…}
code: 0
file: "/home/site/dmxConnectLib/lib/auth/Provider.php"
line: 104
message: "Call to undefined method lib\\core\\Session::regenerate()"
trace: "#0 /home/site/dmxConnectLib/lib/auth/Provider.php(159): lib\\auth\\Provider->setIdentity()\n#1 /home/site/dmxConnectLib/modules/auth.php(64): lib\\auth\\Provider->logout()\n#2 /home/site/dmxConnectLib/lib/App.php(195): modules\\auth->logout(Object(stdClass), '', NULL)\n#3 /home/site/dmxConnectLib/lib/App.php(127): lib\\App->execSteps(Object(stdClass))\n#4 /home/site/dmxConnectLib/lib/App.php(94): lib\\App->exec(Object(stdClass))\n#5 /home/site/dmxConnect/api/Security/logout.php(8): lib\\App->define(Object(stdClass))\n#6 {main}"

I’ve published everything again and tried recreating the file but it keeps giving this error.

Any ideas?

This is caused by some old file in the dmxConnectLib folder.
Delete it locally, save any server action, upload the newly generated dmxConnectLib folder to your server.

1 Like

Perfect. Thanks @Teodor.

I remember having to do this in the past but keep forgetting which folder can safely be deleted and it will be recreated again.

I’m posting a feature request to have that info included in the error output as a reminder.