Hey guys, Desperatley need help, first of all when using checkout for almost a year but the last few weeks when somebody orders an photo there delivery address disapeared and was havign to get the delivery address from paypal :S not sure why this happened just did one day......
anyways i uninstalled the checkout core module and other supporting modules (paypal and pdf) and when i try to re install i get the following error message
Error Detail -
Error (ERROR_COLLISION) : Duplicate permission id: checkout.purchase
in modules/core/classes/helpers/GalleryPermissionHelper_advanced.class at line 762 (GalleryCoreApi::error)
in modules/core/classes/GalleryCoreApi.class at line 929 (GalleryPermissionHelper_advanced::registerPermission)
in modules/checkout/module.inc at line 658 (GalleryCoreApi::registerPermission)
in modules/core/classes/GalleryModule.class at line 175 (CheckoutModule::upgrade)
in modules/core/PluginCallback.inc at line 230 (GalleryModule::installOrUpgrade)
in modules/core/PluginCallback.inc at line 67 (PluginCallbackView::handleCallback)
in main.php at line 450 (PluginCallbackView::renderImmediate)
in main.php at line 104
in main.php at line 88
Thank you in advance.
Scotty
Quote:
System Information
Gallery version 2.3
PHP version 5.2.6 apache2handler
Webserver Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.6
Database mysqlt 5.0.81-community
Toolkits NetPBM, Gd
Operating system Linux vps.mickhall-photos.com 2.6.18-028stab053.10-ent #1 SMP Thu Feb 28 20:34:08 MSK 2008 i686
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Posts: 4342
It looks like your uninstallation wasn't completed correctly. If this is the only glitch then you should be able to fix it from phpMyAdmin. Are you up for it?
Posts: 3
hw would i got about doing this correctly mate? p.s thanks for quick reply...
Posts: 4342
Have a look in your g2_PermissionSetMap table, and see if (without checkout installed) it still has entries for checkout.Purchase and checkout.PurchaseAlbum. If it does, you could *try* removing those entries; you should probably back up your sql db first though.
If those permissions are still assigned to items you may have a problem; ideally you would note which bits those permissions refer to then go through the entries in the g2_AccessMap table and reset them to zero (the permission column in the g2_AccessMap is the binary OR of the relevant permission bits for each access list, the bits as listed in the g2_PermissionSetMap table rows.)
I think you could that with a single INSERT statement, SELECTing the entries and zeroing the bits by ANDing the existing values with the right mask, but I'm afraid my SQL isn't up to that task.
An alternate approach if the permissions are still registered in the g2_PermissionSetMap table would be to doctor the checkout install code (it's in module.inc) to change the name of the permissions it registers to two dummy names and then stop the code assigning those dummy permissions (the checkout.Purchase is assigned to the all users over the root album, by default I think) - then remove those dummy permissions manually from the g2_PermissionSetMap, restore the original code (for future) and hope (expect?) that the rest of Checkout will still use the permissions that wrongly remain from the previous install.
Good Luck!
Posts: 3
Hey alcemyers, i did what you said that seemed to work :S for re installing thank you, lets just hope that in main issue is sorted by a reinstall.. thank you so much again.....