Admin notices are not correctly created if a user is not logged into the site
|Reported by:||richardloxley||Owned by:|
Description (last modified by cash)
To reproduce this:
- Log out of the site
- Remove one of the plugin directories
- Visit the Elgg login page
Now when you log into the site as an admin, and visit the admin page, there will be an empty box where the admin notices should be. The actual notice (plugin cannot be enabled) is not displayed.
Debugging shows that elgg_load_plugins() correctly constructs an error message and passes it to elgg_add_admin_notice().
In elgg_add_admin_notice(), an ElggObject is created, with metadata for the ID and a description for the error message.
Looking in the database, the object is created in the table elgg_entities, the ID is created as metadata in table elgg_metadata, but there is no entry in table elgg_objects_entity which should contain the description.
I suspect that perhaps the creation of the row in elgg_objects_entity is failing because there is no logged in user - however I have not been able to narrow this down. There may be another reason.
Change History (7)
comment:3 Changed 17 months ago by Cash Costello
- Resolution set to fixed
- Status changed from new to closed