backdrop-issues
backdrop-issues copied to clipboard
1.23.1 update results in: Call to undefined function file_needs_type_classification()
Description of the bug
Reported in the Backdrop CMS Forum
Quoting:
Ran a 1.23.1 update on a local site... after running update.php got this Error alone on screen:
Error: Call to undefined function file_needs_type_classification() in file_requirements() (line 278 of /PATH_TO/core/modules/file/file.install).
After not finding anything searching BD site, hit back button and find site updated with no error or obvious problem (except 1 log) + nothing showing me what file needs anything. Repeat running update.php returns clear.
I've been unable to reproduce this error when updating a Vanilla install test site, and a D7 upgraded site.
EDIT: the updates I tried were done through the UI, not bee or drush.
Here's a wild guess (I don't know enough about server caches like opcache).
The function file_needs_type_classification() is new to 1.23.1. The strange thing about the error is that it happened in file.install. The call to file_needs_type_classification should not have failed, since, when the site downloaded the update, it downloaded all the code, including the new function. My guess is that there is some sort of php server cache like OPcache that stored the old file.module functions in memory during the update, and then failed to reload file.module during the update process.
Probably that won't help much to discover the reason, but ... until now I updated several installs, on different hosting - and never saw that error.
Original forum poster here... Now I've updated another local site, and both of these sites' live instances, + they updated with no problem :-)
This certainly is rare, nothing at all found searching both drupal + beyond! Thanks for pondering... I'm considering this irrelevant.