Hello,
I will keep it simple this is the error I get during upgarde:
Error (ERROR_COLLISION) : Duplicate permission id: cart.add
* in modules/core/classes/helpers/GalleryPermissionHelper_advanced.class at line 853 (gallerycoreapi::error)
* in modules/core/classes/GalleryCoreApi.class at line 881 (gallerypermissionhelper_advanced::registerpermission)
* in modules/cart/module.inc at line 115 (gallerycoreapi::registerpermission)
* in modules/core/classes/GalleryModule.class at line 157 (cartmodule::upgrade)
* in upgrade/steps/UpgradeOtherModulesStep.class at line 74 (cartmodule::installorupgrade)
* in upgrade/index.php at line 221 (upgradeothermodulesstep::processrequest)
Error (ERROR_COLLISION) : Duplicate permission id: photoaccess.print
* in modules/core/classes/helpers/GalleryPermissionHelper_advanced.class at line 853 (gallerycoreapi::error)
* in modules/core/classes/GalleryCoreApi.class at line 881 (gallerypermissionhelper_advanced::registerpermission)
* in modules/photoaccess/module.inc at line 83 (gallerycoreapi::registerpermission)
* in modules/core/classes/GalleryModule.class at line 157 (photoaccessmodule::upgrade)
* in upgrade/steps/UpgradeOtherModulesStep.class at line 74 (photoaccessmodule::installorupgrade)
* in upgrade/index.php at line 221 (upgradeothermodulesstep::processrequest)
Gallery version (not just "2.1.1"):
PHP version (e.g. 4.4.2):
Webserver (e.g. Apache 1.3.34):
Database (e.g. MySql 4.1.18):
Why would be greatful is someone could help me out, I fond a previous post about it but it was before the 2.1.0 Beta and it was not very clear.
Thanks,
Neil
Posts: 8601
what state is your G2 in now? if you can get to Site Admin / Modules then uninstall cart/photoaccess and reinstall/activate them.
Posts: 6
I have not upgarded, all the files have been overwritten so in the Modules list I cannot unistall/reinstall because the only option is upgrade.
My current core is 1.1.0
Posts: 8601
hm, ok. it seems they are partially upgraded already, so it gets errors when you retry.
i'm trying to think of the easiest way to cleanup and allow upgrade.
how about this: edit cart/module.inc and put this line just below function upgrade($currentVersion) {
GalleryCoreApi::unregisterModulePermissions('cart');
now try the upgrade. if it succeeds then remove this line from module.inc.
repeat the same process for photoaccess, with 'photoaccess' instead of 'cart'
Posts: 6
Edit it worked!
Thanks for you help!