Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294759

Fatal error: Call to undefined function _system_default_theme_features after rebuild, followed by non-recoverable(?) errors

$
0
0

After doing a git pull, I am often presented with an error about rebuilding, that contains a link to this page: https://drupal.org/documentation/rebuild

As a good citizen, I follow the instructions and replace my settings file and delete my files/php directory (even though drupal was previously installed and working fine, complete with data in the database).

But after following the steps above, I'm presented with a fatal:

Fatal error: Call to undefined function _system_default_theme_features() in drupal-8.x-dev/core/includes/theme.inc on line 1408

I believe this is because my config directory hash has been regenerated, so the previous theme settings that were saved in the previous config directory are now lost.

Since I assumed this was the case, I deleted my config directories (I now have two) hoping that would clean up the problem, but instead I'm greeted with an even worse error:

Error
The website has encountered an error. Please try again later.

Error message

    InvalidArgumentException: No check has been registered for access_check.permission in Drupal\Core\Access\AccessManager->loadCheck() (line 193 of /Users/jlampton/Sites/_drupal/drupal-8.x-dev/core/lib/Drupal/Core/Access/AccessManager.php).
    Drupal\Core\Config\StorageException: sites/default/files/config_oKNSqvQToNsF3R9yILl74bC1im-6pIEpKdocu8USuSE/active/ not found. in Drupal\Core\Config\FileStorage->listAll() (line 190 of /Users/jlampton/Sites/_drupal/drupal-8.x-dev/core/lib/Drupal/Core/Config/FileStorage.php).

When I encounter this problem my general course of action is to drop the database and start over. Is there any way to recover from this situation? and if not, are we already working on makeing Drupal 8 less brittle? Dropping the db and starting over won't be a viable solution for websites when they are actually running Drupal 8. It's making me nervous.

Thoughts about possible solutions:
- if a cached copy of a function can't be found, use a non-cached copy, or rebuild the cache
- automatically generate a new config directory with the correct hash if it doesn't exist (maybe we are doing this already?)
- fall back to the config that shipped with the module/theme/whatever if a site specific override is not found (but log an error)

Possibly related

#1712250: Convert theme settings to configuration system


Viewing all articles
Browse latest Browse all 294759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>