Forums | Mahara Community

Support /
Problems after upgrading PHP from PHP 74. to 8.1


Andi Becker's profile picture
Posts: 68

19 May 2022, 17:28

AH01071: Got error 'PHP message: PHP Fatal error:  During inheritance of SessionHandler: Uncaught ArgumentCountError: Too few arguments to function error(), 4 passed in /init.php on line 258 and exactly 5 expected in /lib/errors.php:474\nStack trace:\n#0 /init.php(258): error()\n#1 /init.php(258): require_once()\n#2 /index.php(16): require('...')\n#3 {main} in /auth/session.php on line 0'

PHP7.4 works fine and site shows up
PHP8.1 FPM hangs up with that error.

Kristina Hoeppner's profile picture
Posts: 4739

19 May 2022, 19:57

Hi Andi,

Mahara does not yet support PHP 8.x and thus errors are expected. We are planning on a transition period to PHP 8 before fuller support and are currently working on that for Mahara 22.10, but can't yet say whether 22.10 will be the transition period as we are still going to errors ourselves. It's a big project moving PHP versions.

Thank you

Kristina

Andi Becker's profile picture
Posts: 68

19 May 2022, 20:49

Schade, hatte gehofft die Version 7 begraben zu koennen, da nur noch Mahara auf 7 laeuft. Muss ich wohl noch etwas warten. Danke fuer die Info.

Kristina Hoeppner's profile picture
Posts: 4739

20 May 2022, 7:42

Hi Andi,

Yep, there's still a lot to do to get to PHP 8.1 (that's what we are aiming for). If anybody wants to help, please get in touch.

Thank you

Kristina

4 results