Author Topic: [solved]Fatal error: Cannot redeclare class class_currency_display.php line 38  (Read 3233 times)

nillew

  • Designer Team
  • Beginner
  • *
  • Posts: 24
Quote
Fatal 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

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Hero Member
  • *
  • Posts: 4188
  • VM2 ready to take off
    • VM2 Extensions
  • VirtueMart Version: 2.1
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.
Seminar/Workshop for virtuemart by the core team http://extensions.virtuemart.net/certifications/certification-of-virtuemart-2-detail
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

nillew

  • Designer Team
  • Beginner
  • *
  • Posts: 24
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

nillew

  • Designer Team
  • Beginner
  • *
  • Posts: 24
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

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 9470
have you chosen a shop currency?
"Banquet Tables Pro"
I do NOT do development work for hire.
My Custom Field Plugin Now with =Price
http://forum.virtuemart.net/index.php?topic=99678
My Shipping Plugin
http://forum.virtuemart.net/index.php?topic=100630.0

nillew

  • Designer Team
  • Beginner
  • *
  • Posts: 24
Yes: Euro

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 9470
do you have MORE than 1 enabled?

IF NOT, disable the currency converter module
"Banquet Tables Pro"
I do NOT do development work for hire.
My Custom Field Plugin Now with =Price
http://forum.virtuemart.net/index.php?topic=99678
My Shipping Plugin
http://forum.virtuemart.net/index.php?topic=100630.0

nillew

  • Designer Team
  • Beginner
  • *
  • Posts: 24
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.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 9470
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
"Banquet Tables Pro"
I do NOT do development work for hire.
My Custom Field Plugin Now with =Price
http://forum.virtuemart.net/index.php?topic=99678
My Shipping Plugin
http://forum.virtuemart.net/index.php?topic=100630.0

nillew

  • Designer Team
  • Beginner
  • *
  • Posts: 24
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

nillew

  • Designer Team
  • Beginner
  • *
  • Posts: 24
Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
« Reply #10 on: September 14, 2011, 09:12:58 AM »
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.

nillew

  • Designer Team
  • Beginner
  • *
  • Posts: 24
Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
« Reply #11 on: September 14, 2011, 09:20:31 AM »
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?

Quote
No Shop Currency defined! Go to http://www.mydomain.de/administrator/index.php?option=com_virtuemart&view=user&task=editshop

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Hero Member
  • *
  • Posts: 4188
  • VM2 ready to take off
    • VM2 Extensions
  • VirtueMart Version: 2.1
Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
« Reply #12 on: September 14, 2011, 09:21:26 AM »
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

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
Seminar/Workshop for virtuemart by the core team http://extensions.virtuemart.net/certifications/certification-of-virtuemart-2-detail
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

nillew

  • Designer Team
  • Beginner
  • *
  • Posts: 24
Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
« Reply #13 on: September 14, 2011, 09:31:30 AM »
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.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Hero Member
  • *
  • Posts: 4188
  • VM2 ready to take off
    • VM2 Extensions
  • VirtueMart Version: 2.1
Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
« Reply #14 on: September 14, 2011, 10:20:30 AM »
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.
Seminar/Workshop for virtuemart by the core team http://extensions.virtuemart.net/certifications/certification-of-virtuemart-2-detail
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

VirtueMart Forum

Re: Fatal error: Cannot redeclare class ... class_currency_display.php on line 38
« Reply #14 on: September 14, 2011, 10:20:30 AM »