DB Connection error

Wappler Version : 3.5.1 (with perhaps some patch files applied) experimental off and restarted (but previously on)
Operating System : mac / php

MySQL server

Expected behavior

DB connection should work

Actual behavior

{
   "code": 0,
   "file": "/home/client/public_html/dmxConnectLib/lib/db/Connection.php",
   "line": 30,
   "message": "Too few arguments to function lib\\db\\Connection::__construct(), 2 passed in /home/client/public_html/dmxConnectLib/modules/dbconnector.php on line 12 and exactly 3 expected",
   "trace": "#0 /home/client/public_html/dmxConnectLib/modules/dbconnector.php(12): lib\\db\\Connection->__construct(Object(lib\\App), Object(stdClass))\n#1 /home/client/public_html/dmxConnectLib/lib/App.php(199): modules\\dbconnector->connect(Object(stdClass), 'hc')\n#2 /home/client/public_html/dmxConnectLib/lib/App.php(163): lib\\App->execSteps(Object(stdClass))\n#3 /home/client/public_html/dmxConnectLib/lib/App.php(133): lib\\App->execSteps(Array)\n#4 /home/client/public_html/dmxConnectLib/lib/App.php(116): lib\\App->exec(Object(stdClass), false)\n#5 /home/client/public_html/dmxConnectLib/lib/App.php(94): lib\\App->exec(Object(stdClass))\n#6 /home/client/public_html/dmxConnect/api/connection.php(8): lib\\App->define(Object(stdClass))\n#7 {main}"
 }

Both of the test options (Direct and Server Connect) on the db manager show OK.

Overwrite your files with these:

dmxConnectLib.zip (849.7 KB)

Probably not all files were updated after the last Wappler update in your project. Also have some more fixes for this weeks update, latest files are included in the zip.

2 Likes

Perfect…back in business. Thanks.

Fixed in Wappler 3.5.2

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