When 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.