Error when clicking on Extend Concrete 5 in dashboard

Permalink
Hi, I get an error 'Cannot redeclare class Concrete\Package\JbMegamenu\Controller' when I try to add themes from Extend Concrete 5 - Add functionally.
Any help appreciated. Image of error attached.
Phil

1 Attachment

tambopc
 
Gondwana replied on at Permalink Reply
Gondwana
Any chance you've already got something installed from the same vendor? This, perhaps?:
https://www.concrete5.org/marketplace/addons/mega-menu1...
tambopc replied on at Permalink Reply
tambopc
Yes I have. I was trying to install another addon but cannot get passed this error.
Gondwana replied on at Permalink Reply
Gondwana
My guess is that the vendor copied-and-pasted his/her packaging code, and forgot to change the class name to something unique for the new package. Your best bet would be to contact him/her via the support link on the add-on's page. He/she should be grateful to you for picking up this problem.

If that isn't possible, it would be feasible to change the class name throughout the package yourself, but there could be side-effects.
tambopc replied on at Permalink Reply
tambopc
Thanks, I will contact them.
tambopc replied on at Permalink Reply
tambopc
I found the problem. I had renamed the Megamenu folder by adding xxx to it then copied the new Megamenu folder into the packages folder. I have now removed the renamed folder and everything is working correctly now.
Many thanks for responding quickly.
Phil
Gondwana replied on at Permalink Reply
Gondwana
Ah, that was going to be my next guess. ;)

Glad it's working.