Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Does anyone know how to fix the following PHP Fatal error?. I am trying to upgrade Drupal837 to Drupal853 using drush.
php version: PHP 7.2.2
Error:
PHP Fatal error: Uncaught Error: Class 'Drush\Config\Environment' not found in /var/www/html/vendor/drush/drush/drush.php:58
Stack trace:
#0 /var/www/html/vendor/drush/drush/drush(4): require()
#1 {main}
thrown in /var/www/html/vendor/drush/drush/drush.php on line 58
I have upgraded manually on local site from drupal 8.3.5 to 8.5.3.
After updating the database, i have an error :
InvalidArgumentException : $string ("1") must be a string. dans Drupal\Core\StringTranslation\TranslatableMarkup->__construct() (ligne 133 de xxx/docroot\core\lib\Drupal\Core\StringTranslation\TranslatableMarkup.php).
I have upgraded manually on local site from drupal 8.3.5 to 8.5.3.
After updating the database, i have an error :
InvalidArgumentException : $string ("1") must be a string. dans Drupal\Core\StringTranslation\TranslatableMarkup->__construct() (ligne 133 de xxx/docroot\core\lib\Drupal\Core\StringTranslation\TranslatableMarkup.php).
I don't want to upgrade to Drupal LTS. Due to financial constraints I'm very happy with my D6 sites.
I just want some patch code which I can add in the bootstrap.inc to mitigate or do away with this vulnerability. Or can anyone explain me more about this so that I can myself make some code and add it