News:

Looking for documentation? Take a look on our wiki

Main Menu

Authorize.net Error : writelog()

Started by MattGore, January 08, 2014, 00:13:03 AM

Previous topic - Next topic

MattGore

Using Joomla 2.5.17 and VM 2.0.26a

My site is still in testing, but a few weeks ago, before the holidays when I last tested it, orders went through just fine. Now when I submit an order, I get the following error message from the authorize.net module:

Fatal error: Call to undefined method plgVmpaymentAuthorizenet::writelog() in **path**/plugins/vmpayment/authorizenet/authorizenet.php on line 952

When I look up that line, it looks like this (starting on line 949):

function _sendRequest ($post_url, $post_string)
{

$this->writelog($post_string , "_sendRequest", 'debug');

$curl_request = curl_init($post_url);
//Added the next line to fix SSL verification issue (CURL error verifying the far end SSL Cert)
curl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post_string);
curl_setopt($curl_request, CURLOPT_HEADER, 0);
curl_setopt($curl_request, CURLOPT_TIMEOUT, 45);
curl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($curl_request, CURLOPT_POST, 1);
if (preg_match('/xml/', $post_url)) {
curl_setopt($curl_request, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml"));
}


Has anyone else ever experienced this error, or have any idea what might be causing it?

I've tried putting the authorize.net module in sandbox mode, i've enabled and disabled the tax modules and shipping modules... just not sure what's going on here.

I have installed a new template, but when I switch back to the old one, I still get the error message.

Any suggestions?

Thanks!

Matt

PRO

does the order come though?

is this live site?

is curl installed?

ssl installed?


MattGore

Hi PRO, thanks for taking the time to respond!

The order does not go through.

The site is on a remote VPS. It is running, but I have not changed the name servers over from the old site yet... I access it through the IP/folder, Might as well post it here, I guess: http://216.158.67.14/~everythi/

I'm not sure about CURL... haven't checked recently... but this was working fine a few weeks ago, and I certainly didn't remove it from the server.

An SSL is installed... but since the domain is not directed here, I'm not really sure how that affects things. Again, though, this hasn't changed since it was working a few weeks ago.


- Matt

MattGore

Yes, curl is on.

curl
cURL support    enabled
cURL Information    7.24.0
Age    3
Features
AsynchDNS    No
Debug    No
GSS-Negotiate    No
IDN    Yes
IPv6    Yes
Largefile    Yes
NTLM    Yes
SPNEGO    No
SSL    Yes
SSPI    No
krb4    No
libz    Yes
CharConv    No
Protocols    dict, file, ftp, ftps, gopher, http, https, imap, imaps, pop3, pop3s, rtsp, smtp, smtps, telnet, tftp
Host    i686-pc-linux-gnu
SSL Version    OpenSSL/0.9.8b
ZLib Version    1.2.3

alatak

Hello

In version VM 2.0.26a, the line is not
$this->writelog($post_string , "_sendRequest", 'debug');

but this one
$this->debugLog($response , "plgVmConfirmedOrder", 'debug');


You have update the virtuemart component, but not the virtuemart_aio
Plz go to
http://yourwebsite.com/administrator/index.php?option=com_virtuemart_allinone and update with the latest version
or update via the joomla installer

MattGore

Oh my... I should have checked that! Thanks a ton Alatak! I updated and am no longer getting that error.

Incidentally, I love your plugin :)

- Matt

recneps

Today I was told by my customers that their website (that I manage) was throwing blanks screens at checkout. I looked at my server error_log file and saw the identical error. I've updated VirtueMart to the latest edition (com_virtuemart.2.0.26d) but am still receiving the same error message. Suggestions??

alatak


recneps

#8
This message:

PHP Fatal error:  Call to undefined method plgVmpaymentAuthorizenet::writelog() in /var/www/vhosts/xxx.org/httpdocs/plugins/vmpayment/authorizenet/authorizenet.php on line 952

Running on Linux (CentOS 6.5), Joomla! 2.5.19