I'm integrating the ARB in my magento site but I'm getting the following error
2014-04-07T13:00:22+00:00 ERR (3): Warning: strpos() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 110
2014-04-07T13:00:22+00:00 ERR (3): Warning: strpos() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 110
2014-04-07T13:00:22+00:00 ERR (3): Warning: strpos() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 113
2014-04-07T13:00:22+00:00 ERR (3): Warning: strpos() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 114
2014-04-07T13:00:22+00:00 ERR (3): Warning: substr() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 115
2014-04-07T13:00:22+00:00 ERR (3): Warning: strpos() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 110
2014-04-07T13:00:22+00:00 ERR (3): Warning: strpos() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 110
2014-04-07T13:00:22+00:00 ERR (3): Warning: strpos() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 113
2014-04-07T13:00:22+00:00 ERR (3): Warning: strpos() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 114
2014-04-07T13:00:22+00:00 ERR (3): Warning: substr() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 115
2014-04-07T13:00:22+00:00 ERR (3): Warning: strpos() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 110
2014-04-07T13:00:22+00:00 ERR (3): Warning: strpos() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 110
2014-04-07T13:00:22+00:00 ERR (3): Warning: strpos() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 113
2014-04-07T13:00:22+00:00 ERR (3): Warning: strpos() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 114
2014-04-07T13:00:22+00:00 ERR (3): Warning: substr() expects parameter 1 to be string, array given in /var/www/mageqb/app/code/local/Excellence/Anetarb/Model/AuthorizeNetXMLResponse.php on line 115
Why do I'm getting such message? I'm using the php-sdk.
Solved! Go to Solution.
โ04-07-2014 06:07 AM
finally got rid of that. API classes and file names should be written in magento (zend) way. Also, 1 class per file need to be declared.
โ04-09-2014 04:50 AM
read the .php file and see what paramter 1 is. Or start by looking at what is in the response
โ04-07-2014 07:53 AM - edited โ04-07-2014 07:55 AM
The response is empty and the parameter 1 expects to be an object of AuthorizeNet_Subscription and that object I'd passed.
โ04-08-2014 10:02 PM
finally got rid of that. API classes and file names should be written in magento (zend) way. Also, 1 class per file need to be declared.
โ04-09-2014 04:50 AM