VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: kovacshazi on April 30, 2014, 09:00:33 AM

Title: Cannot redeclare class vmPlugin ... on line 582
Post by: kovacshazi on April 30, 2014, 09:00:33 AM
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
Title: Re: Cannot redeclare class vmPlugin ... on line 582
Post by: balai on April 30, 2014, 10:44:17 AM
Can you please supply the code of the line 582?
Title: Re: Cannot redeclare class vmPlugin ... on line 582
Post by: alatak on April 30, 2014, 11:45:54 AM
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.
Title: Re: Cannot redeclare class vmPlugin ... on line 582
Post by: kovacshazi on April 30, 2014, 19:58:08 PM
Thank you. It turned out that another file using the wrong vmPugin