VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: mbrando on May 21, 2014, 17:20:57 PM

Title: [solved] authorizenet.php on error after update to 2.6.0a
Post by: mbrando on May 21, 2014, 17:20:57 PM
Hello,

After updating to 2.6.0a I am getting the following error:

Quote[21-May-2014 07:29:21 America/Chicago] PHP Fatal error:  Call to undefined method stdClass::get() in /home/xxxx/public_html/plugins/vmpayment/authorizenet/authorizenet.php on line 740

When I look at Line 740 it is in the middle of a comment:

Quote/**

    * This is for adding the input data of the payment method to the cart, after selecting

    *

    * @author Valerie Isaksen

    *

    * @param VirtueMartCart $cart

    * @return null if payment not selected; true if card infos are correct; string containing the errors id cc is not valid

    */

I'm also see errors in my error_log file like this too:

Quote[21-May-2014 07:29:21 America/Chicago] PHP Notice:  Undefined property: stdClass::$shipment_logos in /home/xxxx/public_html/administrator/components/com_virtuemart/plugins/vmpsplugin.php on line 761

and this

Quote[20-May-2014 23:05:33 America/Chicago] PHP Notice:  Undefined property: stdClass::$asset2_type in /home/xxxx/public_html/administrator/components/com_awocoupon/helpers/estore/estorecouponhandler.php on line 1239

Any suggestions on where to start?

- Mike


[attachment cleanup by admin]
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: GJC Web Design on May 21, 2014, 17:30:46 PM
there is no get() in the std authorize.php v2.6.0a 


hard to say why that error reporting appears so wrong

did you update your AIO?  Are you CERTAIN both the comp and AIO really updated?

the other two errors you show are just notices - ignore - nothing to do with this
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: mbrando on May 21, 2014, 17:56:51 PM
Hi,

I'll try to manually update to 2.60a.

- Mike
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: jenkinhill on May 21, 2014, 17:59:07 PM
You may as well go to 2.6.2!
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: mbrando on May 21, 2014, 18:09:27 PM
I was going to bu the download page said only 2.6.0a was the latest compatible with Joomla 2.5

- Mike
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: mbrando on May 21, 2014, 18:11:05 PM
Quote from: GJC Web Design on May 21, 2014, 17:30:46 PM
there is no get() in the std authorize.php v2.6.0a 

or in e.g. 2.0.26d or in any VM file in 2.6.0 except as a jquery call

hard to say why that error reporting appears so wrong

did you update your AIO?  Are you CERTAIN both the comp and AIO really updated?

the other two errors you show are just notices - ignore - nothing to do with this

I manually installed both VM 2.6.0a and the AIO via extension manager. It is not correct the error. Upon testing I get a white screen after clicking the confirm order button.

- Mike
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: mbrando on May 21, 2014, 18:18:46 PM
Quote from: jenkinhill on May 21, 2014, 17:59:07 PM
You may as well go to 2.6.2!

I took a leap and downloaded and installed the com_virtuemart.2.6.2.zip and com_virtuemart.2.6.2_ext_aio.zip

It appears to have corrected the Authorize,net white screen, however the AIO appears broken now. No table version data is displayed.

- Mike



[attachment cleanup by admin]
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: mbrando on May 21, 2014, 21:29:01 PM
Hello,

Updates are failing too. When I look at Joomla updates it shows an error when trying to update paypal. see attached.

- Mike



[attachment cleanup by admin]
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: GJC Web Design on May 21, 2014, 21:45:50 PM
I would manually re-install the AOI package from the Joomla installer
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: mbrando on May 21, 2014, 22:03:55 PM
Quote from: GJC Web Design on May 21, 2014, 21:45:50 PM
I would manually re-install the AOI package from the Joomla installer

I did and it had no effect.

- Mike
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: GJC Web Design on May 21, 2014, 22:20:44 PM
hmm - wouldn't worry about the individual plugin updating - have never seen this for VM plugins b4 so assume they are testing this out in 2.6.2

I see a new copy of 2.6.2 went up at 21/05/2014 08:00 pm  tonite - 2 hours ago -- did you use this?

Is the file administrator/components/com_virtuemart_allinone/classes/tmpl/overview.php  complete?

When you view the source of administrator/index.php?option=com_virtuemart_allinone is the html there?

double hmm  - just d/l'd and extracted com_virtuemart.2.6.2_ext_aio.zip and the comp is very different from 2.6.1
e.g. no language, assets or classes folders and files - hard to see how it could work as a live updater... maybe the live update section of this has been dropped?
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: mbrando on May 21, 2014, 23:07:19 PM
Hello,

Not sure how to tell which one I used. I downloaded it from here http://virtuemart.net/download around 10:25am CST.

This is all I have in my folder: /administrator/components/com_virtuemart_allinone See attached.

view the source of administrator/index.php?option=com_virtuemart_allinone, looks like HTML is missing.

<table>

<tr>
<td align="center">
<button onclick="javascript:confirmation('Update VM plugin tables', '/administrator/index.php?option=com_virtuemart_allinone&amp;task=updateDatabase&amp;eee1cd04fb25d1297ecf86942b13038f=1');">

Update VM plugin tables </button>
</td>
</tr>
</table>


- Mike

[attachment cleanup by admin]
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: mbrando on May 21, 2014, 23:11:02 PM
Hello,

Also looked in the /administrator/components/com_virtuemart_allinone/admin.virtuemart_allinone.php file and it looks like the source I posted above.

<script type="text/javascript">
<!--
function confirmation(message, destnUrl) {
var answer = confirm(message);
if (answer) {
window.location = destnUrl;
}
}
//-->
</script>

<table>

<tr>
<td align="center">
<?php
VmConfig::loadConfig();
VmConfig::loadJLang('com_virtuemart');

?>

<?php $link=JROUTE::_('index.php?option=com_virtuemart_allinone&task=updateDatabase&'.JSession::getFormToken().'=1' ); ?>
<button onclick="javascript:confirmation('<?php echo addslashesJText::_('COM_VIRTUEMART_UPDATE_VMPLUGINTABLES') ); ?>', '<?php echo $link?>');">

<?php echo JText::_('COM_VIRTUEMART_UPDATE_VMPLUGINTABLES'); ?>
</button>
</td>
</tr>
</table>




- Mike
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: GJC Web Design on May 21, 2014, 23:15:36 PM
looks to me that they have dropped the live updater  - I know it is planned to get rid of it in the Joomla s version coming soon

It definitely isn't there for comp or AOI in the test vm2.9's I have been using

I wouldn't worry about it - it appears that that menu is only going to be used to update any table changes - not update the plugins etc
this appears as if it will be shifted to the native joomla update process
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: jenkinhill on May 21, 2014, 23:19:59 PM
Yes the live updater is gone and Joomla's updater will be used now.
Title: Re: authorizenet.php on error after update to 2.6.0a
Post by: mbrando on May 21, 2014, 23:41:10 PM
Hello,

Okay, Great. I appreciate you working with me on this. I owe you a coffee.

- MIke