Call to undefined function ExecuteScalar()

The autoload.php only loads the composer packages in the vendor folder, it does not load the PHPMaker common files and global functions. Avoid using standalone files. You may read:

  1. Custom Files
  2. Using Route_Action server event
  3. How to Load Data from Database into Custom Files