VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: zainabubu on September 25, 2014, 01:42:25 AM

Title: vm 2.0.26d to v2.6.10
Post by: zainabubu on September 25, 2014, 01:42:25 AM
Hello,

I was advised to update from vm 2.0.26d to vm2.6.10 and now my entire site is blank. I use joomla 2.5.25, searching for help through forums have not helped in anyway, please help. "I do have a back up of site, I just want to get this working as soon as possible"
Title: Re: vm 2.0.26d to v2.6.10
Post by: GJC Web Design on September 25, 2014, 01:51:10 AM
Basically there is no "solution" until you find the error - all errors are logged somewhere.. once you find it you can proceed..
This has been answered multiple times on here (by me and others) of the steps u need to take to find your fatal error...
Title: Re: vm 2.0.26d to v2.6.10
Post by: zainabubu on September 25, 2014, 02:13:20 AM
Fatal error: Cannot redeclare class VmImage in administrator/components/com_virtuemart/helpers/image.php on line 200
Title: Re: vm 2.0.26d to v2.6.10
Post by: GJC Web Design on September 25, 2014, 02:19:54 AM
that means the class VmImage has already been declared some where

As 1000's are using 2.6.10 successfully it has to be something particular to your install .. extension, plugin etc

start disabling stuff that isn't part of the core  (or it is a corrupt install - try a reinstall - assume u have done the AOI and used the normal Joomla installer)
Title: Re: vm 2.0.26d to v2.6.10
Post by: zainabubu on September 25, 2014, 02:26:53 AM
What do you mean by "that isn't part of the core?" I installed about 3 times now, same result.
Title: Re: vm 2.0.26d to v2.6.10
Post by: GJC Web Design on September 25, 2014, 02:28:09 AM
something particular to your install .. extension, plugin, template over ride etc
Title: Re: vm 2.0.26d to v2.6.10
Post by: zainabubu on September 25, 2014, 02:43:49 AM
ok, so I found the culprit, plg_system_vm2_cart. And the site loaded. Now when I click on add to cart, the pop up is very tiny. Please see attachment.

[attachment cleanup by admin]
Title: Re: vm 2.0.26d to v2.6.10
Post by: coxi on September 25, 2014, 11:40:13 AM
Hi,
I have exactly the same problem, upgrading from J 2.5.17 to J 2.5.25 then upgrading VM from 2.0.26d to 2.6.10... and have now a blank page with nothing else.
Even I shut down VM compoment and plugins, the site stay blank.

The only conclusion is that this is not your fault... and not mine ! Issue come from VM.

I apologize for not having a solution. Hope you will find something and share it.

regard,
Alain.
Title: Re: vm 2.0.26d to v2.6.10
Post by: zainabubu on September 25, 2014, 12:16:11 PM
I already fixed it..the issue was plg_system_vm2_cart plugin. I disabled it and all went back to normal. Do you have your php.ini show errors et al? Once i did that, I was able to use the error message to find the issue with the help of GJC. So first spot what the error is then fix...good luck!
Title: Re: vm 2.0.26d to v2.6.10
Post by: GJC Web Design on September 25, 2014, 12:21:12 PM
@zainabubu - there must be css in your template over riding the facebox or fancybox (what ever one your using) - looks like a GK template  - test always first with staandard beez - then you know where the culprit lies
Title: Re: vm 2.0.26d to v2.6.10
Post by: zainabubu on September 25, 2014, 13:07:53 PM
I use GK and I have been using the template for my site because I do not want to use the one by virtuemart. Using Fancybox striped the css off pop up box.
I will test the other templates around 2am my time when user activity is low.
Title: Re: vm 2.0.26d to v2.6.10
Post by: GJC Web Design on September 25, 2014, 18:05:06 PM
not saying to use Beez - but use it as a base line to find what is over riding the modal
Title: Re: vm 2.0.26d to v2.6.10
Post by: Milbo on September 27, 2014, 08:06:01 AM
Quote from: zainabubu on September 25, 2014, 02:13:20 AM
Fatal error: Cannot redeclare class VmImage in administrator/components/com_virtuemart/helpers/image.php on line 200

search in your plugin for image.php. There is a line like require(VMPATH_ADMIN.DS.'helpers'.DS.'image.php'); just use instead

if (!class_exists('VmImage')) require(VMPATH_ADMIN.DS.'helpers'.DS.'image.php');
Title: Re: vm 2.0.26d to v2.6.10
Post by: coxi on September 27, 2014, 10:18:23 AM
Hi,
Thank for answer.
I deleted all by job (on backuped site) and restart with 2.5.17 --> 2.5.25 then VM 2.0.26d to 2.9.9c (instead of 2.0.26d to 2.6.6). Result is the same.

On front end, I just have a blanck page. Using "inspect element" in chrome navigator says there is no code...
## <body><span class="_hsShareImage hsShareImage">Share Image</span></body>

I search for a plg_system_vm2_cart plugin, but didn't find anything in my site like that ? Strange.

I continue to shut down plugin, one by one.

regards. Alain.
Title: Re: vm 2.0.26d to v2.6.10
Post by: jenkinhill on September 27, 2014, 10:52:49 AM
Turn on VMdebug (Enable debugging messages  in Config/Shop) and see if there is an error message displayed on your blank page.
Title: Re: vm 2.0.26d to v2.6.10
Post by: coxi on September 27, 2014, 11:22:51 AM
Hi,
unable to turn on any option of the VM componant...  :-[
As admin, I ask to turn on tools, debug mode in config but I can't save anything.
I tried to mod an item but I can't.
I tried to create a new one. Form is opened but you can't save your work...
In Maxthon browser, I have a 500 error (not in chrome neither mozilla). And blank page with empty code head/body.
Title: Re: vm 2.0.26d to v2.6.10
Post by: coxi on September 27, 2014, 12:22:27 PM
Hum,
I apologize... I wa saying I migrate from 2.0.26d to 2.6.10 but in fact, it wa from 2.0.20d....
I decide to migrate step by step, from a stable version to an other one.
Right. It was short.
I migrate from 2.0.20d to 2.0.26d and... all became blank.
Not a problem of DB because I used a DB installed by VM 2.9.9d.
Problem come from CSS or PHP, or .ini or... ???
Title: Re: vm 2.0.26d to v2.6.10
Post by: GJC Web Design on September 27, 2014, 14:04:14 PM
post 2 on this topic

QuoteBasically there is no "solution" until you find the error - all errors are logged somewhere.. once you find it you can proceed..
This has been answered multiple times on here (by me and others) of the steps u need to take to find your fatal error...

QuoteNot a problem of DB because I used a DB installed by VM 2.9.9d.

WHAT?  why would you think a 2.9.9 database will work on an ancient  2.0.x????
Title: Re: vm 2.0.26d to v2.6.10
Post by: Milbo on September 27, 2014, 15:28:25 PM
You can directly update from any vm1.9.8 to vm latest, that means vm2.6.10 or vm2.9.9D atm
Title: Re: vm 2.0.26d to v2.6.10
Post by: coxi on September 27, 2014, 21:10:50 PM
For my own, issue is solved....  :D
At first, I upgraded step by step from 2.0.20d to 2.0.26d, then....
It worked up to 2.5.5.
Not after 2.6.0. except one hour later. Why ?
But cart didn't work. And this is a special cart -> VP One check. I went to VP website and see they released 2.4 version in 2014 august 2.0/2.6 compatible. So I think older version didn't work with 2.6 VM.

I purchased 2.4 VP One check and upgrade my website and now all work fine...
But I don't know if upgrade directly from 2.0.20d to 2.6.10 or higher will work fine...

Thanks for all answers.
Regards.
Alain.