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.
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.
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; } }
https://github.com/jamesshannon/Concrete-Wall/blob/master/models/pos...