I just tried updating to the latest dev release. When running update.php, I encountered this error:
Fatal error: Call to undefined function apachesolr_attachments_solr_reindex()
It looks like the update_7003() is calling apachesolr_attachments_solr_reindex() which is located in the apachesolr_attachments.module file. I'm pretty sure that when updates are being run, the .module file isn't included by default, so this should be included during the update.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | undefined_function_apachesolr_attachments_solr_reindex-1566252-2.patch | 683 bytes | netw3rker |
Comments
Comment #1
netw3rker commentedpatch attached
Comment #2
netw3rker commentedactually after thinking about this more, this is probably fine under normal operations when the module is active/enabled and update.php is run. However, in my situation i had disabled but not uninstalled the apachesolr_attachments module.
if you update the code for a module that was enabled but is now disabled, update.php will still apply the updates. (this happens until the module is actually uninstalled). In that situation, the .module file is not included (since the module is disabled), so functions referenced in the .module file aren't available unless the file is specifically included.
I'm guessing this is not a very big edge case, but still an issue none the less :)
Comment #3
nick_vhand committed it, even though it is an edge case ;-)