#317 closed defect (bug) (fixed)
Multiple copies of a plugin can be adding, leading to fatal errors
| Reported by: | MC_incubus | Owned by: | michel v |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | |
| Severity: | critical | Keywords: | |
| Cc: | Focuses: |
Description
If you activate a plugin and doubleclick the "activate" link, it will activate two copies of the plugin, which leads to Fatal error: Cannot redeclare function_name()
plugins.php should make sure the plugin it is activating is not already activated!
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Added a check to avoid activating the same plugin twice, and changed include() into include_once() to avoid including the same plugin file twice.