We're updating the issue view to help you get more done. 

Administer Metadata elements can crash depending on your metadata

Description

When an administrative user browses to "Administer | Metadata elements", our installation of providence was giving a WSOD with this message being sent to the error log:

[Thu Aug 01 20:45:17 2013] [error] [client 50.74.78.193] PHP Fatal error: Call to a member function getProperty() on a non-object in /srv/publicca/web/admin/app/models/ca_metadata_elements.php on line 802, referer: https://catalog.interferencearchive.org/admin/index.php/administrate/setup/Interfaces/ListUIs

The attached diff resolves the issue (though i don't know why $o_dm->getInstanceByTableNum($qr_use_counts->get('editor_type'), true) was returning NULL in the first place).

Environment

debian wheezy + providence from current git master (b937ecf3e2cea2ff229cc40163151d6643940898)

Assignee

User known

Reporter

Daniel Kahn Gillmor

Labels

Components

Affects versions

Priority

Major
Configure