News:

Looking for documentation? Take a look on our wiki

Main Menu

Cannot redeclare class vmPlugin ... on line 582

Started by kovacshazi, April 30, 2014, 09:00:33 AM

Previous topic - Next topic

kovacshazi

PayPal sandbox whitout payment (cancel return to shop link) return I receive the following error message:
Cannot redeclare class vmPlugin ... on line 582

VM2.0.26d
J.2.5.19

balai

Can you please supply the code of the line 582?

alatak

Hello

QuoteCan you please supply the code of the line 582?
Yes please give us this code.
I have checked on the 2.0.26d, and there should be no error there in the paypal file. So it is probably in another file

We usually include all the files this way
if (!class_exists('theClass')) {
require(JPATH_VM_ADMINISTRATOR . DS . 'path' . DS . 'thefile.php');
}


And we should not have "redeclare" problems.

kovacshazi

Thank you. It turned out that another file using the wrong vmPugin