Description: mysql_real_escape_string() expects parameter 1 to be string, object given
Posted by alex in Errors at 7:55 AMWhen attempting to process an order using ClientExec you may get error messages like the following:
An error has occurred with the given operation
Type: Warning (2)
Description: mysql_real_escape_string() expects parameter 1 to be string, object given
Request: POST /signup.php
Script: <clientexec-root>/newedge/classes/NE_Mysql.php
Line Number: 198
Stack:
var/www/web2/web/client/newedge/classes/NE_Mysql.php(138) : regexp code (1) : ne_mysql::escape_string
<clientexec-root>/newedge/classes/NE_Mysql.php (138) : preg_replace
<clientexec-root>/classes/domain.php (1463) : ne_mysql::query
<clientexec-root>/modules/admin/views/Signup_4_CreateAccounts.php (424) : domain::updaterecord
<clientexec-root>/modules/admin/views/Signup_3_Validation.php (316) : Signup_4_CreateAccounts::dispatch
<clientexec-root>/newedge/classes/NE_Controller.php (167) : Signup_3_Validation::dispatch
<clientexec-root>/newedge/front.php (76) : ne_controller::processview
<clientexec-root>/signup.php (70) : require
In this situation I was using ClientExec with Authorize.net as the payment gateway. The basic error revolved around the Authorize.net processing needing mcrypt and not being able to find it on the server. To resolve this issue install php-mcrypt on the server using the below commands.
shell# yum install php-mcrypt
Make sure to restart apache!
shell#/etc/init.d/httpd restart
That should resolve your issue if you are in fact using ClientExec with the Authorize.net payment module.
- ClientExec: Type: User Error (256): billingtype I recently upgraded a customer management software called ClientExec from a very...
- ClientExec Authorize.net Plugin Leaving Screen Completely White It has been awhile since I have used ClientExec and...
- install_driver(Pg) failed: DBD::Pg object version 2.13.1 does not match bootstrap parameter v2.13.1 I recently decided to do a fresh CentOS install on...
- Warning: date() expects parameter 2 to be long Another item to note is the latest version of WordPress...
- phpMyAdmin Error: Cannot load mcrypt extension. Please check your PHP configuration. You may get the below phpMyAdmin error for a couple...
Tags: Authorize.net, ClientExec, mcrypt, mysql, PHP, php-mcrypt, yum
























Entries (RSS)