HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Upgrade disaster recovery

There are no pages beneath this page

Posted
Submitted by Chris Graham
If you accidentally manually upload the contents of an upgrade TAR (as opposed to letting the upgrader intelligently extract it), and you now have some files restored from bundled addons you actually uninstalled, you may find strange bugs or complete crashes.

The integrity checker in the upgrader will instruct you on installing the remaining files from those addons that you partially restored. However, you may want the opposite - to remove the addon registry files and the addon files that you erroneously put back.

Attached is a script that will find all addons with missing files - but instead of suggesting to restore the missing files, it lists all files in the addon. Essentially it tells you what to delete.

Attachment
» Download: execute_temp.php (4 Kb, 114 downloads so far)


Upload the script to data_custom/execute_temp.php and open the URL to it. You'll see each superfluous file on a new line. If the list passes a cursor check, go ahead and delete the listed files.

Remember, backups are always good at every stage!
 
CEDI change-log Post