What to do if you have a PHP fatal error?

What to do if you have a PHP fatal error?

In case of problems, try to clear Drush caches by using drush cc drush first. If your website works fine, double check how you load your database credentials. Sometimes, people are using if or switch / case statements for different environments based on the host and forgot about the command-line interface which is not included.

Why is there a fatal error in Drush?

The external command could not be executed due to an application error. [error] The command could not be executed successfully (returned: PHP Fatal error: Uncaught TYPO3\\PharStreamWrapper\\Exception: [error] Unexpected file extension in “phar:///usr/local/bin/drush/includes/..”

Is there a PHP fatal error in 7.62?

Yes this sounds like a broken deployment or update, which could have happened as a side effect of the issue affecting Drush in 7.62 or something else. Thanks @grahamC and @ianchan for following up! Automatically closed – issue fixed for 2 weeks with no activity. I did not see where this was “fixed” – but I troubleshot my same issue by . . .

How to fix the uncaught error in PHP?

After running into this issue again, even with the session_set_save_handler(new SessionHandler()); added to settings.php, adding the solution in #28 from @hughworm solved it. BTW, shouldn’t this issue be an active bug report?

What is the undefined function in Drupal core?

The above undefined function appears to be a Drupal core function. Note that the website works, so it’s communicating with the database without issue, I can also do a SHOW TABLES in MySQL and see the Drupal installer’s tables were created.

Where is cache file defined in drupal.inc?

It’s defined in includes/cache.inc, line 56. If this file is missing, that would make your “installation” not an installation. Always best to install from Drupal.org sources. One-click installers may include outdated code or errors.