VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: nillew on September 14, 2011, 15:15:05 PM

Title: [solved]Fatal error: Cannot redeclare class class_currency_display.php line 38
Post by: nillew on September 14, 2011, 15:15:05 PM
QuoteFatal error: Cannot redeclare class CurrencyDisplay in /www/htdocs/.../administrator/components/com_virtuemart/classes/currency/class_currency_display.php on line 38

Using Joomla 1.5.23 and VM 1.9.8.RC2G.

Please help

nillew
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: Milbo on September 14, 2011, 15:29:50 PM
Please provide the link which you are using.

In general this error happens, when you install over vm1.1 and some old vm1.1 files are read. When you update vm1.1 the file toolbar.php should be renamed to toolbar.vm1.php,

please test first if the file is renamed, if yes, please delete the file and try again.

If this does not help, I need exactly the link you are using, so that I can reproduce the error. Maybe more files must be deleted.
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: nillew on September 14, 2011, 15:42:02 PM
Did you mean this file: administrator/components/com_virtuemart/toolbar.vm1.php ?
The file is renamed. I deletet the file tried again.

I did not know what link? The link from the errot or the link in the url?

error: www/htdocs/w007fcba/administrator/components/com_virtuemart/classes/currency/class_currency_display.php on line 38
url: http://www.mydomain.de/administrator/index.php?option=com_virtuemart
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: nillew on September 14, 2011, 15:48:53 PM
Maybe it helps you. The Frontend show this error:

Fatal error: Cannot redeclare class convertECB in /www/htdocs/w007fcba/administrator/components/com_virtuemart/classes/currency/convertECB.php on line 24
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: PRO on September 14, 2011, 16:15:05 PM
have you chosen a shop currency?
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: nillew on September 14, 2011, 16:16:49 PM
Yes: Euro
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: PRO on September 14, 2011, 16:22:19 PM
do you have MORE than 1 enabled?

IF NOT, disable the currency converter module
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: nillew on September 14, 2011, 16:32:10 PM
No, there is only one: EUR. There are no other options to choose. Only EUR

Did you mean "mod_virtuemart_currencies" - if yes, this module is already deactivated.
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: PRO on September 14, 2011, 16:40:20 PM
ok, I see where the problem is coming from now.

DO THIS

download a new 1.9.8.RC2G

THEN, do to administrator/components/com_virtuemart
RENAME that folder to com_virtuemartBACK

Then, extract the 1.9.8.RC2G.
THEN, upload the administrator/components/com_virtuemart

THEN, "renew config by file", and see if all is correct then
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: nillew on September 14, 2011, 17:08:53 PM
Yes, that works. Thanks. But now I have one old and one new problem:

1. I can not save any changes under Shop/Shop/Vendor / Additional Information / General User Information. The "Save" button does not work. Just "Exit" is working.

2. all products, categories and orders are not there
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: nillew on September 14, 2011, 17:12:58 PM
Update:
I have not made a migration. That was the reason that there are no products... But after migration there is a new fatal error:

Fatal error: Maximum execution time of 30 seconds exceeded in /www/htdocs/w007fcba/libraries/joomla/language/language.php on line 172

I have 1700 products in my shop ... But in the old Shop it works.
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: nillew on September 14, 2011, 17:20:31 PM
Sorry for all my replies.   :-\

I changed the number of showing elements in the orders to "10" and it works also with products.

There is still the problem that I can not change the Shop Currency. That problem is displayed in the products 10 times. One for each showing product?

QuoteNo Shop Currency defined! Go to http://www.mydomain.de/administrator/index.php?option=com_virtuemart&view=user&task=editshop
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: Milbo on September 14, 2011, 17:21:26 PM
uhm, it was not meant that way.
Banquet, it has nothing todo with the shop currency or  the converter. The problem is that old files get loaded and I don't understand why. In my test it was enough to delete the toolbar.php. I want to find out which files I have to remove/delete whatever.

and Fatal error: Maximum execution time of 30 seconds exceeded in /www/htdocs/w007fcba/libraries/joomla/language/language.php on line 172,

again, we need the link

Quote from: nillew on September 14, 2011, 17:20:31 PM
Sorry for all my replies.   :-\

I changed the number of showing elements in the orders to "10" and it works also with products.

You changed the orders? or the general product to show to ten? Seems your config file isnt running correct, you may renew it by file
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: nillew on September 14, 2011, 17:31:30 PM
I changed the number of displayed orders and this option is also working for the displayed numbers of products. Fortunately, because the product site was not even loaded.
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: Milbo on September 14, 2011, 18:20:30 PM
you changed on that view administrator/index.php?option=com_virtuemart&view=orders

the display how many orders you want to see, and then you was able to sort your products? because you tried before to list all 1700 products? It is very hard to understand what you mean.
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: nillew on September 14, 2011, 18:41:24 PM
Hmm ok, my english is not the best and its hard to explain the problem in the right way. Sorry for that.
But you helped me still so much. The System is running. Still one problem I can not solve... I can give you the link and backend login per PM, I dont like to write it here for all user.

I wrote it in another post. I thougt I got the problem with a new vendor table. But I was wrong - its not working.

I can not save vendor changes in Shop information.

Yes, I know - you need the link. But I don not understand which link you are meaning. If you mean the URL, I would like to send you as a private message. Is that ok?

nillew
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: Milbo on September 14, 2011, 18:46:50 PM
Yes, of course.

and the other thing, one exampel

"I was on /administrator/index.php?option=com_virtuemart and clicked a link to /administrator/index.php?option=com_virtuemart&view=config and there I got an error on the second tab."

We just need all information to be able to reproduce the error.
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: incolor on October 21, 2011, 05:04:17 AM
I got the same error:

PHP Fatal error:  Cannot redeclare class CurrencyDisplay in [root]/administrator/components/com_virtuemart/classes/currency/class_currency_display.php on line 38, referer: http://[root]/administrator/index.php

I'm trying to upgrade from J1.5.24 + VM1.1.9.

I installed com_virtuemart_ext_aio.1.9.8i and com_virtuemart.1.9.8i.

The installation was successful. When I clicked Go to Shop, I got a blank page and the error message above. I have not successfully been able to access the vm2 component, so I have not setup currency.

ADDED:
Upon trying to access on the front end, I get this error:

PHP Fatal error:  Cannot redeclare class convertECB in [root]/administrator/components/com_virtuemart/classes/currency/convertECB.php on line 24, referer: http://[root]/store
Title: Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
Post by: Milbo on October 21, 2011, 12:27:00 PM
Because you have old vm1.1 extensions running. http://dev.virtuemart.net/projects/virtuemart/wiki/Upgrading_VM1_to_VM2_with_provided_packages
Title: Re: [solved]Fatal error: Cannot redeclare class class_currency_display.php line 38
Post by: incolor on October 23, 2011, 00:10:48 AM
Hi Milbo,

Thanks for that link. I knew there had to be an upgrade guide somewhere.

I've tried removing all VM1 modules and plugins before the upgrade, but I still get the same error.

I even tried doing a clean installation of VirtueMart_1.1.9_eCommerceBundle_Joomla_1.5.23.zip, then replacing the vm tables with those in my live site. I did this to ensure there were no user-modified files or extra VM1 extensions that were interfering. Before the trying the upgrade, I removed all VM1 modules and plugins, and I changed to the default templates. I still got the same error.

The only component I installed was Akeeba Admin Tools, so I could easily update Joomla to 1.5.24 and change the table prefix to match that of my live installation.