7.6.0 - Exception thrown when loading global file in server connect (php)

Wappler Version : 7.6.0
Operating System : Windows 11 Pro
Server Model: PHP
Database Type: MySQL
Hosting Type: Apache

Expected behavior

What do you think should happen?

I have a global API to refresh Dropbox temporary token that I load into other API files at the top. This keeps the token frsh (expires every 4 hours). This was working fine in previous version.

Actual behavior

500 Internal Server Error. {
"code": 0,
"file": "/var/www/vhosts/nqtruckwreckers.au/httpdocs/dmxConnectLib/modules/core.php",
"line": 248,
"message": "Undefined property: modules\core::$break",
"trace": "#0 /var/www/vhosts/nqtruckwreckers.au/httpdocs/dmxConnectLib/modules/core.php(248): exception_error_handler()\n#1 /var/www/vhosts/nqtruckwreckers.au/httpdocs/dmxConnectLib/lib/App.php(242): modules\core->exec()\n#2 /var/www/vhosts/nqtruckwreckers.au/httpdocs/dmxConnectLib/lib/App.php(213): lib\App->execSteps()\n#3 /var/www/vhosts/nqtruckwreckers.au/httpdocs/dmxConnectLib/lib/App.php(181): lib\App->execSteps()\n#4 /var/www/vhosts/nqtruckwreckers.au/httpdocs/dmxConnectLib/lib/App.php(170): lib\App->exec()\n#5 /var/www/vhosts/nqtruckwreckers.au/httpdocs/dmxConnectLib/lib/App.php(131): lib\App->exec()\n#6 /var/www/vhosts/nqtruckwreckers.au/httpdocs/dmxConnect/api/import_trucks.php(7): lib\App->define()\n#7 {main}"
}

I then copied all the code into the top of the API file that was calling the global and it works fine. Seems to be an issue with the Exec Action

HOW TO REPRODUCE

Create a global API named test. Add a setvalue named test and set value test. Add a Exec Action in another API file and set it to be the new global test API. This will throw the same error.

Here the fix:

core.zip (2.2 KB) unzip to dmxConnectLib/modules.

Thanks Patrick

Fixed in Wappler 7.6.1

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