Error with PHP version 7, 7.1, 7.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cris00
    Member
    • Dec 2015
    • 72

    Error with PHP version 7, 7.1, 7.2

    Hello!

    We have some problems with the PHP version after we updated to last version of Espo and version 7, 7.1 and 7.2. The last error we got today was:

    [25-Nov-2019 11:55:57 UTC] PHP Catchable fatal error: Argument 1 passed to Espo\Core\Container::get() must be an instance of Espo\Core\string, string given, called in /home/..../public_html/crm/application/Espo/Core/Application.php o

    [25-Nov-2019 11:55:59 UTC] PHP Catchable fatal error: Argument 1 passed to Espo\Core\Container::get() must be an instance of Espo\Core\string, string given, called in /home/..../public_html/crm/application/Espo/Core/Application.php o

    [25-Nov-2019 11:55:59 UTC] PHP Catchable fatal error: Argument 1 passed to Espo\Core\Container::get() must be an instance of Espo\Core\string, string given, called in /home/.../public_html/crm/application/Espo/Core/Application.php o

    [25-Nov-2019 11:56:00 UTC] PHP Catchable fatal error: Argument 1 passed to Espo\Core\Container::get() must be an instance of Espo\Core\string, string given, called in /home/.../public_html/crm/application/Espo/Core/Application.php o

    When the problem appears with bad server response or error 500 we have to modify the version of the php from Cpanel, from PHP version 7.2 to 7.1 or 7 and so on. After we change the version the CRM works again.

    Do you have any suggestions?

    Thanks!
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hello,
    The latest EspoCRM version doesn't support PHP lower than v.7.1. and MySQL lower than v.5.6.

    Comment

    • Cris00
      Member
      • Dec 2015
      • 72

      #3
      Originally posted by Maximus
      Hello,
      The latest EspoCRM version doesn't support PHP lower than v.7.1. and MySQL lower than v.5.6.
      Thanks for the reply. The error mentioned above happens with v. 7.2 also, not only 7.1 or 7.

      Comment

      • Maximus
        Senior Member
        • Nov 2018
        • 2731

        #4
        Perhaps you changed your CLI PHP version, not webserver PHP version. If you go In EspoCRM -> Administration -> System requirements you will see the PHP version that is set for your webserver. If you run this command: php -v in a terminal of your web server you will see a CLI PHP version.

        Comment

        • yuri
          Member
          • Mar 2014
          • 8440

          #5
          100% that php version is lower than 7.1.0.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          Working...