Error 500 after PHP Update

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ChrisCross
    Junior Member
    • Jun 2022
    • 14

    Error 500 after PHP Update

    Good evening dear Espo community,

    I wanted to update my instance to version 7.2.2. For this it is necessary that I install php 7.4.
    My server is still running on 7.0.10. Now when I switch to PHP 7.4 I get the error 500 in Espo. Nothing works anymore.
    If I switch back to php 7.3 via a2enmod php7.3, everything works again (except for the CronJobs).
    Does anyone have an idea what this could be?​

    THX for help.

    Greetings Chris
  • Vadym
    Super Moderator
    • Jun 2021
    • 345

    #2
    Hi ChrisCross,

    Try to restart your server, php-fpm and execute php rebuild.php in CLI after the switching PHP version.

    More useful commands:

    Comment

    • ChrisCross
      Junior Member
      • Jun 2022
      • 14

      #3
      [2022-09-17 12:14:20] DEBUG: API (0) could not find driver; GET /I18n; Route pattern: /I18n; Route params: Array ( [controller] => I18n ) [] []
      [2022-09-17 12:14:20] DEBUG: API (0) could not find driver; GET /Settings; Route pattern: /Settings; Route params: Array ( [controller] => Settings ) [] []
      [2022-09-17 12:14:20] ERROR: (0) could not find driver; GET /I18n; line: 95, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
      [2022-09-17 12:14:20] ERROR: (0) could not find driver; GET /Settings; line: 95, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
      [2022-09-17 12:14:33] ERROR: Uncaught Exception PDOException: "could not find driver" at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php line 95 {"exception":"[object] (PDOException(code: 0): could not find driver at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php:95)"} []
      [2022-09-17 12:14:39] ERROR: Uncaught Exception PDOException: "could not find driver" at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php line 95 {"exception":"[object] (PDOException(code: 0): could not find driver at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php:95)"} []
      [2022-09-17 12:14:48] DEBUG: API (0) could not find driver; GET /Settings; Route pattern: /Settings; Route params: Array ( [controller] => Settings ) [] []
      [2022-09-17 12:14:48] ERROR: (0) could not find driver; GET /Settings; line: 95, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
      [2022-09-17 12:14:48] DEBUG: API (0) could not find driver; GET /I18n; Route pattern: /I18n; Route params: Array ( [controller] => I18n ) [] []
      [2022-09-17 12:14:48] ERROR: (0) could not find driver; GET /I18n; line: 95, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
      [2022-09-17 12:15:02] ERROR: Uncaught Exception PDOException: "could not find driver" at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php line 95 {"exception":"[object] (PDOException(code: 0): could not find driver at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php:95)"} []
      [2022-09-17 12:15:02] ERROR: Uncaught Exception PDOException: "could not find driver" at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php line 95 {"exception":"[object] (PDOException(code: 0): could not find driver at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php:95)"} []
      [2022-09-17 12:16:01] ERROR: Uncaught Exception PDOException: "could not find driver" at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php line 95 {"exception":"[object] (PDOException(code: 0): could not find driver at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php:95)"} []
      [2022-09-17 12:16:01] ERROR: Uncaught Exception PDOException: "could not find driver" at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php line 95 {"exception":"[object] (PDOException(code: 0): could not find driver at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php:95)"} []
      [2022-09-17 12:17:01] ERROR: Uncaught Exception PDOException: "could not find driver" at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php line 95 {"exception":"[object] (PDOException(code: 0): could not find driver at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php:95)"} []
      [2022-09-17 12:17:01] ERROR: Uncaught Exception PDOException: "could not find driver" at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php line 95 {"exception":"[object] (PDOException(code: 0): could not find driver at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php:95)"} []
      [2022-09-17 12:18:01] ERROR: Uncaught Exception PDOException: "could not find driver" at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php line 95 {"exception":"[object] (PDOException(code: 0): could not find driver at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php:95)"} []
      [2022-09-17 12:18:01] ERROR: Uncaught Exception PDOException: "could not find driver" at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php line 95 {"exception":"[object] (PDOException(code: 0): could not find driver at /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php:95)"} []


      Maybe this will help you. Thank you for your effort.
      Greetings Chris​

      Comment

      • ChrisCross
        Junior Member
        • Jun 2022
        • 14

        #4
        Hi Vadim,
        Unfortunately, php rebuild.php did not work. I put the log in above.
        Greetings Chris​

        Comment

        • ChrisCross
          Junior Member
          • Jun 2022
          • 14

          #5
          Hi,
          I have now upgraded to php 8.1. That works.
          Thank you for your efforts :-)​

          Comment

          Working...