Error messages when saving entry on custom package

Permalink
Hi

My hosting provider moved to mysqli and I now encounter an error message when saving a form on a custom object in my package. On a test system on mysql the error doesn't appear.

Warning: mysqli_real_escape_string() expects parameter 2 to be string, object given in /home/catalyst/public_html/testsystem/concrete/libraries/3rdparty/adodb/drivers/adodb-mysqli.inc.php on line 226

Warning: mysqli_real_escape_string() expects parameter 2 to be string, object given in /home/catalyst/public_html/testsystem/concrete/libraries/3rdparty/adodb/drivers/adodb-mysqli.inc.php on line 226

Warning: Cannot modify header information - headers already sent by (output started at /home/catalyst/public_html/testsystem/concrete/libraries/3rdparty/adodb/drivers/adodb-mysqli.inc.php:226) in /home/catalyst/public_html/testsystem/concrete/core/libraries/controller.php on line 421

Any thoughts appreciated. The details do get saved in the system, so it's not mission critical, but just annoying for those entering the info via the dashboard.

 
enlil replied on at Permalink Reply
enlil
Check lines 42 - 47 here where I fixed Concrete Wall (Github version) to work with mysqli. May or may not be what you're looking for...

https://github.com/jamesshannon/Concrete-Wall/blob/master/models/pos...
justynpride replied on at Permalink Reply
Thanks for this. Do you think that this section is what needs to be changes?

public function load($id) {
      $dbs = Loader::db();
      $row = $dbs->GetRow('SELECT * FROM Tickets WHERE TicketsID = ?', array($id));
      if ($row['TicketsID']) { 
         $this->setPropertiesFromArray($row);
         return true;
      } else {
         return false;
      }
   }