Calling Db() - Uncaught Error: Call to a member function has()

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
andyrav
User
Posts: 641

Calling Db() - Uncaught Error: Call to a member function has()

Post by andyrav »

Hi
in 2024 what is the new syntax for $dbconn = Db() ?
getting
PHP Fatal error: Uncaught Error: Call to a member function has()

$dbconn = Db();
$dbconn = array(
'host' => $dbconn['host'],
'name' => $dbconn['dbname'],
'user' => PhpDecrypt($dbconn['user'], Config("ENCRYPTION_KEY")),
'password' => PhpDecrypt($dbconn['password'], Config("ENCRYPTION_KEY")));


arbei
User
Posts: 9384

Post by arbei »

  1. Where did you call it? Are you trying to call it in your own script, or Custom File without "Include common files"? What are you trying to to achieve?
  2. Enable Debug and post the complete error stack trace.

Post Reply