Page 1 of 1

Recovering 'lost' ocmod xml files

Posted: Sat Jan 30, 2016 3:24 am
by rsmck
Is there any easy (or less complicated than writing them again!) way to recover an ocmod purely from the /system/modification/* directories and/or logs ?

My OpenCart 2.0 installation seems to have 'lost' (not sure why) the original ocmod.xml files. They all show in the Modifications page of the admin panel, but of course I can't upgrade OpenCart or install any new mods without risking losing these ones!

They're all small things (and four of them are once I wrote myself based on adapting a simple one!) but don't seem to have another copy of them :(

[p.s. sorry for cross-posting, accidentally put this in the OC 1.5 section first, should now be deleted :)]

Re: Recovering 'lost' ocmod xml files

Posted: Sat Jan 30, 2016 5:22 am
by artcore
They're in the database, modification table ;D

Re: Recovering 'lost' ocmod xml files

Posted: Sat Jan 30, 2016 6:45 am
by rsmck
artcore wrote:They're in the database, modification table ;D
Thank you :D

I didn't think to look there :)

I presume that mean I don't need to put them back in the mods folder (i.e. will them just being in the DB be enough through upgrades etc)

Re: Recovering 'lost' ocmod xml files

Posted: Sat Jan 30, 2016 12:01 pm
by gogoweb
I'd export that table before any upgrade just to be sure.