Announcement

Collapse
No announcement yet.

Error with PHP version 7, 7.1, 7.2

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!

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

    Comment


    • #3
      Originally posted by Maximus View Post
      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


      • #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


        • #5
          100% that php version is lower than 7.1.0.

          Comment

          Working...
          X