Hi. I have set PHP 8.2 version on linux hosting. Since then the security provider has stopped working. Everything works fine until PHP version 8.1.
I also tried on local computer. Again, using the latest version of XAMPP which contains version 8.2 doesn’t work. It works fine with the previous one.
Can you explain what exactly “stops working” and if you see any errors?
The function is not performed. This is the reported error analyzed by DevTools
{“code”:0,“file”:"/var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/lib/core/Request.php",“line”:37,“message”:“Creation of dynamic property lib\core\Request::$server is deprecated”,“trace”:"#0 /var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/lib/core/Request.php(37): exception_error_handler()\n#1 /var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/lib/App.php(36): lib\core\Request->__construct()\n#2 /var/www/vhosts/eumeda.net/httpdocs/dmxConnect/api/security/eumedaLogin.php(5): lib\App->__construct()\n#3 {main}"}
Could you check if this updated file works: Request.zip (1.2 KB)
No. This is the response:
{“code”:0,“file”:"/var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/lib/App.php",“line”:40,“message”:“Creation of dynamic property lib\App::$db is deprecated”,“trace”:"#0 /var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/lib/App.php(40): exception_error_handler()\n#1 /var/www/vhosts/eumeda.net/httpdocs/dmxConnect/api/security/eumedaLogin.php(5): lib\App->__construct()\n#2 {main}"}
Seems we have to go through multiple files which need to be updated for PHP 8.2
Here the updated App.php
App.zip (2.2 KB)
OK. I’ll try to upload this new App file
It still doesn’t works. That’s the response:
{“code”:0,“file”:"/var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/lib/db/SqlBuilder.php",“line”:237,“message”:“Creation of dynamic property lib\db\SqlBuilder::$query is deprecated”,“trace”:"#0 /var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/lib/db/SqlBuilder.php(237): exception_error_handler()\n#1 /var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/lib/auth/DatabaseProvider.php(33): lib\db\SqlBuilder->compile()\n#2 /var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/lib/auth/Provider.php(140): lib\auth\DatabaseProvider->validate()\n#3 /var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/modules/auth.php(54): lib\auth\Provider->login()\n#4 /var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/lib/App.php(204): modules\auth->login()\n#5 /var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/lib/App.php(176): lib\App->execSteps()\n#6 /var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/lib/App.php(144): lib\App->execSteps()\n#7 /var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/lib/App.php(133): lib\App->exec()\n#8 /var/www/vhosts/eumeda.net/httpdocs/dmxConnectLib/lib/App.php(111): lib\App->exec()\n#9 /var/www/vhosts/eumeda.net/httpdocs/dmxConnect/api/security/eumedaLogin.php(7): lib\App->define()\n#10 {main}"}
We’ll just go through all the files this way until no more errors, here the SqlBuilder.php.
SqlBuilder.zip (3.2 KB)
Don’t know how many files need to be updated, but please report any error you get in PHP 8.2
Okay. Now it seems to work. If I find any other problem I will report it to you immediately.
This was fixed in Wappler 5.4.3
This topic was automatically closed after 24 hours. New replies are no longer allowed.