VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: Fresher on October 20, 2012, 21:17:18 PM

Title: error trying to migrate to vm2
Post by: Fresher on October 20, 2012, 21:17:18 PM
Hi. Im was using joomla 1.5 and vm1. now i wanna update vm1 to vm2. i did everything as it is in this tutorial http://forum.virtuemart.net/index.php?topic=95236.0 , but trying to do a migration i get this error:

Fatal error: Call to undefined function memory_get_peak_usage() in /var/www/clients/client1/web1/web/administrator/components/com_virtuemart/helpers/config.php on line 278

please help :/
Title: Re: error trying to migrate to vm2
Post by: bytelord on October 20, 2012, 22:01:32 PM
Hello,

Should upgrade your PHP version, which one you have now? I suggest 5.3.x

Take a look here also: http://forum.virtuemart.net/index.php?topic=94067

Regards
Title: Re: error trying to migrate to vm2
Post by: Fresher on October 20, 2012, 22:39:55 PM
v5.1.6

thanks.
Title: Re: error trying to migrate to vm2
Post by: bytelord on October 20, 2012, 22:43:38 PM
ok then,

Try first with a local installation using xampp (version 1.7.8 for example that haves php 5.3.8, not 1.8.x).
If is working then is a PHP issue. If your provider have too old PHP version and does not upgrade it, then sorry, just change provider, PHP 5.1.x is old imho.

Don't forget that also joomla 2.5.x will have issues with PHP 5.1.x

Regards
Title: Re: error trying to migrate to vm2
Post by: Fresher on October 20, 2012, 22:45:00 PM
Quote from: bytelord on October 20, 2012, 22:43:38 PM
ok then,

Try first with a local installation using xampp (version 1.7.8 for example that haves php 5.3.8, not 1.8.x).
If is working then is a PHP issue. If your provider have too old PHP version and does not upgrade it, then sorry, just change provider, PHP 5.1.x is old imho.

Don't forget that also joomla 2.5.x will have issues with PHP 5.1.x

Regards

thank you bytelord.
Title: Re: error trying to migrate to vm2
Post by: bytelord on October 20, 2012, 22:46:17 PM
You are welcome. Please try it and post back your results.
Title: Re: error trying to migrate to vm2
Post by: Fresher on October 20, 2012, 23:40:23 PM
ok..i did as it was written here http://forum.virtuemart.net/index.php?topic=94067.msg309104#msg309104

now i have another error

QuoteFatal error: Call to undefined function json_encode() in /var/www/clients/client1/web1/web/administrator/components/com_virtuemart/helpers/vmtable.php on line 399

any ideas? or just try to change the php version and everything will be easier?
Title: Re: error trying to migrate to vm2
Post by: bytelord on October 20, 2012, 23:46:11 PM
Hello,

Yes because that function is not supported also for PHP 5.1.x ... VM is been updated all the time so that fix was for a very early beta version, now new commands have took place that is not supported.
Please upgrade your PHP to 5.3.x

Use xampp as i suggested.

Regards