.12: Refreshing page after module installation adds dupe to table, breaks admin
Posted: Sat Feb 18, 2006 11:31 pm
After installing a module, I hit my browser's refresh button so that the admin menus update. In Beta 2, this adds a duplicate row in the cms_modules table. On future attempts to access admin pages, wackiness results. Either the admin interface loses its CSS, or a fatal error occurs saying that the module class has been declared twice.
WARNING: Don't try the following unless you have phpMyAdmin or similar access to fix your cms database afterwards.
Repro (works for me with Firefox):
1.) Uninstall the skeleton module if you have it installed.
2.) Go to extensions->modules and install skeleton.
3.) After reading install msgs, hit your browser's 'refresh' button.
4.) Try any admin function. You should see either a fatal error or the admin interface w/ styling.
5.) Look in the cms_modules table of your cms database. Notice duplicate entries for skeleton.
6.) Delete second entry, and you're back to normal.
WARNING: Don't try the following unless you have phpMyAdmin or similar access to fix your cms database afterwards.
Repro (works for me with Firefox):
1.) Uninstall the skeleton module if you have it installed.
2.) Go to extensions->modules and install skeleton.
3.) After reading install msgs, hit your browser's 'refresh' button.
4.) Try any admin function. You should see either a fatal error or the admin interface w/ styling.
5.) Look in the cms_modules table of your cms database. Notice duplicate entries for skeleton.
6.) Delete second entry, and you're back to normal.