VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: cmhardware on August 22, 2012, 23:35:10 PM

Title: "Fatal Error" when trying to upgrade to new version
Post by: cmhardware on August 22, 2012, 23:35:10 PM
I have been having some issues with virtuemart: not all of my products are showing, the pictures are causing error reports, most recently my site says "Notice: Trying to get property of non-object in /var/www/vhosts/courtneymorgan.com/httpdocs/administrator/components/com_virtuemart/models/user.php on line 142" at the top of the storefront.

I tried to upgrade to the most recent version hoping this would help, but now I recieve the error: "Fatal error: Cannot pass parameter 2 by reference in /var/www/vhosts/courtneymorgan.com/httpdocs/administrator/components/com_virtuemart/liveupdate/classes/download.php on line 40"
when I try to upgrade to the current verion of virtuemart.

Any help is appreciated

Thank you!
Title: Re: "Fatal Error" when trying to upgrade to new version
Post by: bytelord on August 22, 2012, 23:38:18 PM
Hi,

Please try the following:

Download the tar.gz files from http://dev.virtuemart.net/projects/virtuemart/files and do a manual update from Joomla Backend ... Extensions -> Extensions Manager.
First upgrade the core VM and after AIO extensions.

hope helps you out!

Regard
Title: Re: "Fatal Error" when trying to upgrade to new version
Post by: cmhardware on August 23, 2012, 04:08:29 AM
When uploading the AIO extension, I received this error:

Warning: require(/var/www/vhosts/courtneymorgan.com/httpdocs/plugins/search/virtuemart/virtuemart.php) [function.require]: failed to open stream: No such file or directory in /var/www/vhosts/courtneymorgan.com/httpdocs/tmp/install_50351d22ca3cb/script.vmallinone.php on line 323

Fatal error: require() [function.require]: Failed opening required '/var/www/vhosts/courtneymorgan.com/httpdocs/plugins/search/virtuemart/virtuemart.php' (include_path='.:') in /var/www/vhosts/courtneymorgan.com/httpdocs/tmp/install_50351d22ca3cb/script.vmallinone.php on line 323


Any suggestions?!

Thank you for the help!
Title: Re: "Fatal Error" when trying to upgrade to new version
Post by: bytelord on August 23, 2012, 07:08:05 AM
Hello,

Please post your PHP, VM and joomla versions.

Thank you
Title: Re: "Fatal Error" when trying to upgrade to new version
Post by: cmhardware on August 27, 2012, 22:29:37 PM
PHP Built On Linux host.yourfreehosting.com 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64

Database Version: 5.1.54

Database Collation: utf8_general_ci

PHP Version: 5.2.16

Joomla! Version: Joomla! 1.7.5 Stable [ Ember ] 02-Feb-2012 14:00 GMT

Joomla! Platform Version: Joomla Platform 11.2.0 Stable+Modified [ Omar ] 27-Jul-2011 00:00 GMT
Title: Re: "Fatal Error" when trying to upgrade to new version
Post by: jenkinhill on August 27, 2012, 23:30:23 PM
Joomla 1.7.5 is way past end of life and has known security issues. Upgrade to J2.5.6 is highly recommended.  VM2.0.10 has not been tested on J1.7 for obvious reasons.

Also PHP 5.2.16 is too old. For Joomla 1.7/2.5 absolute minimum required is 5.2.4 - http://www.joomla.org/technical-requirements.html
Title: Re: "Fatal Error" when trying to upgrade to new version
Post by: cmhardware on August 28, 2012, 00:20:05 AM
Thanks for the information. I've inherited this site with the task of trying to update it. How would I go about upgrading to the most current versions?

Thank you!!!
Title: Re: "Fatal Error" when trying to upgrade to new version
Post by: jenkinhill on August 28, 2012, 10:23:50 AM
Upgrade of Joomla is easy as it has a built-in updater in the Extensions manager. Your host needs to update the php version - or you need to find a better hosting service. I suspect that limitations in php configuration prevente a proper install of the aio component. I use the settings listed here and have had no issues with any installations: http://forum.virtuemart.net/index.php?topic=102045.msg339125#msg339125
Title: Re: "Fatal Error" when trying to upgrade to new version
Post by: cmhardware on August 30, 2012, 21:58:24 PM
When I look under extensions manager, it says "there are no updates available." Is there somewhere else I should be looking for the joomla updates?

As for the php, we have already been in the market to switch to a new host.

Thank you!
Title: Re: "Fatal Error" when trying to upgrade to new version
Post by: cmhardware on August 30, 2012, 22:03:26 PM
I found the joomla update, but recieved another error message:

-1 - An error has occurred.
Copy failed

Any ideas?
Title: Re: "Fatal Error" when trying to upgrade to new version
Post by: jenkinhill on August 31, 2012, 10:20:44 AM
That is a joomla error - or maybe the server?