VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: conceptworld on December 20, 2011, 16:16:46 PM

Title: Fatal error: Cannot redeclare class vmRequest in
Post by: conceptworld on December 20, 2011, 16:16:46 PM
I have installed VirtueMart 2.0.0 on my joomla version 1.5.20 and every thing seems to be ok ( installation was a success) but when I tried to go to my site I receive this error message:

Fatal error: Cannot redeclare class vmRequest in /home/xxxxxx/public_html/administrator/components/com_virtuemart/helpers/config.php on line 746

How can I fix this problem? I tried to Soulved it by uninstalling and reinstalling like you said on this forum but I received an another error message:

Warning: require_once(/home/xxxxxxx/public_html/modules/mod_virtuemart_login/../components/com_virtuemart/virtuemart_parser.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxxxxx/public_html/modules/mod_virtuemart_login/mod_virtuemart_login.php on line 26

Fatal error: require_once() [function.require]: Failed opening required '/home/xxxxxt/public_html/modules/mod_virtuemart_login/../components/com_virtuemart/virtuemart_parser.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxxx/public_html/modules/mod_virtuemart_login/mod_virtuemart_login.php on line 26

On virtuemart component I can see the component running but it is all new one, all my tables were not on it. Can you help me.


Title: Re: Fatal error: Cannot redeclare class vmRequest in
Post by: Milbo on December 20, 2011, 19:42:42 PM
You must disable all old vm1 modules and plugins.

and you should delete or rename the old com_Virtuemart folders before you do the update.
Title: Re: Fatal error: Cannot redeclare class vmRequest in
Post by: conceptworld on December 30, 2011, 06:16:54 AM
I think I loso some of my old files. I have to reinstal a oldest version of my Joomla, reinstall a copy of my old VirtueMart tables and upgrade after that my Joomla Version.
I have now version  1.5.23 Joomla  and 1.1.3 VirtueMart stable version.
Title: Re: Fatal error: Cannot redeclare class vmRequest in
Post by: spottedsparrow on January 14, 2012, 13:47:45 PM
Quote from: Milbo on December 20, 2011, 19:42:42 PM
and you should delete or rename the old com_Virtuemart folders before you do the update.

This crucial step is missing from the instructions on http://forum.virtuemart.net/index.php?topic=95236.0.
Title: Re: Fatal error: Cannot redeclare class vmRequest in
Post by: PRO on January 14, 2012, 14:34:50 PM
Quote from: spottedsparrow on January 14, 2012, 13:47:45 PM
Quote from: Milbo on December 20, 2011, 19:42:42 PM
and you should delete or rename the old com_Virtuemart folders before you do the update.

This crucial step is missing from the instructions on http://forum.virtuemart.net/index.php?topic=95236.0.

ITS ON #3

renaming does the same thing
Title: Re: Fatal error: Cannot redeclare class vmRequest in
Post by: Bravo on March 09, 2012, 21:48:29 PM
[ 3. Copy your vm1 images into the desired folders (you can also adjust the paths in the config to your old vm folders) ]

Yes, another excellent example of Virtuemart documentation.