Undefined global variable $_SESSION” with PHP 8.2 after Wappler 7.5.2 update

Wappler Version : 7.5.2
Operating System : Windows and Mac
Server Model: PHP
Database Type: MySQL
Hosting Type: FTP

Expected behavior

What do you think should happen?

Session variables should work as before without throwing errors

Actual behavior

What actually happens?

After updating to Wappler 7.5.2, a PHP error occurs related to session handling in Server Connect, which did not appear in previous versions.

The error is triggered as soon as Session variables are added to a ServerConnect file, regardless of whether those session variables are actually accessed in the logic or not.

The same Wappler Version, server configuration and PHP versions are used by other Wappler apps, which continue to work correctly.
The issue is reproducible across multiple PHP versions, not limited to PHP 8.2

How to reproduce

  • Detail a step by step guide to reproduce the issue
  • A screenshot or short video indicating the problem
  • A copy of your code would help. Include: JS, HTML.
  • Test your steps on a clean page to see if you still have an issue

As soon as loading a site with serverConnect and define $_Session Variable.

I need something, where I could begin to search for the solution. Thanks.

With kind regards

Jürgen J.

See:

I have updated the files as suggested. The issue is resolved and there are no error messages anymore. Thank you for the quick fix.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.