Add-on update help please!

Permalink
Hi,

Following the recent issues with ProEvents, I've been struggling to the point where I want to burn my computer and cry! Firstly, my Update Add-ons function is not working. Clicking Download and Install got me nowhere. The guys from the core team then sent me a link to download a zip folder of the updated add-on and a link to the page explaining how to do this manually.

So here's what I did:
1. I backed-up my DB (export as SQL) - not even sure this is how you do this
2. I made a copy of my entire website (I'm working locally so can't do a back-up via my hosting company)
3. I then went to my concrete5 account and released the add-on licence from my project
4. Downloaded the zip file of the updated add-on the core team sent me
5. I copied my old ProEvents folder and changed its file name
6. Copied and extracted the new add-on folder into /packages/
7. Deleted the zip folder
8. Went to my site's Dashboard > Extent concrete5 so I can Download and Install the add-on again.

The issue:
I now get a message saying "Cannot redeclare class Concrete\Package\Proevents\Controller"

I get the same message when I now navigate to Update Add-ons.

Also tried:
I also tried repeating the steps above with a fresh copy of the new version (zip folder).
I also tried associating the licence again via my Projects page.

My site doesn't look too broken but have been too scared to edit any of my pages now.

Any idea what is causing this? Anything I can do to fix this?

Any help will be really appreciated! I'm really desperate!

Thanks,
Choppie

Choppie
 
mnakalay replied on at Permalink Best Answer Reply
mnakalay
Hello,
Did you keep a copy of the old proEvent renamed folder alongside the new one in the packages folder? If yes that might be the problem.
Choppie replied on at Permalink Reply
Choppie
Hi mnakalay,

You were right on the money! Thank you so much!

This totally worked and I get now how there would have been a conflict in the namespace even if I renamed the folder under my /packages/ folder.

I now just need to figure out how I put the files I previously customised back into the new version without compromising the security again. I don't want to simply copy and paste the old files back as I don't know where the issue was and I'm guessing they're not going to advertise it either :)

Thank you for your help! I really appreciate it!

Cheers,
Choppie
Choppie replied on at Permalink Reply
Choppie
Hi,

I also noticed that when I go to Update Add-ons that instead of the usual Download and Install (which didn't work for me before), there was another instance of ProEvents with an "Update Add-on" button. This seemed to work fine. Is this because I had manually added the add-on folder to my /packages/ folder?

This seems to work much better. The "Download and Install" is still a bit dead to me. The URL changes but nothing happens. I'm still mystified as to why this happens. I'm on v5.7 of concrete5 so not sure if this is a known bug?

Cheers,
Choppe
mnakalay replied on at Permalink Reply
mnakalay
Yes, when you manually unzip the package in place of the other one on your server, you get that update option. That's because the add-on version number in the package is higher than the one saved in your database.

You have ot be careful though. You shouldn't unzip the new package on top of the other because then if any files were removed from one version to the other or renamed you will have problems. You should deleted the old package from your server and unzip the new one. Then update from the dashboard.

I didn't have any problem installing add-ons from the marketplace through the dashboard so I don't think there's a bug.

Are you sure you gave your packages folder the proper permissions? If Concrete5 is not allowed to write in it, it can't download anything to it.