Announcement

Collapse
No announcement yet.

HTTP ERROR 500 when trying to access Espo

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

  • HTTP ERROR 500 when trying to access Espo

    Got this HTTP ERROR 500 when trying to access Espo. I try to access this domain: https://devcrm.exemple.com.br/, but got redirected to: https://devcrm.exemple.com.br/install/

    Any idea on what could it be?

    Log in server:

    Stack trace:
    #0 /var/data/www/espocrm/install/core/Installer.php(103): Espo\Core\Utils\Util::arrayKeysExists(Array, 1)
    #1 /var/data/www/espocrm/install/core/Installer.php(69): Installer->initialize()
    #2 /var/data/www/espocrm/install/index.php(86): Installer->__construct()
    #3 {main}

    thrown in /var/data/www/espocrm/application/Espo/Core/Utils/Util.php on line 647" while reading response header from upstream,
    client: xxx.xxx.xx.xx, server: devcrm.exemple.com.br,
    request: "GET /install/ HTTP/1.1",
    upstream: "fastcgi://unix:/run/php/php7.3-fpm.sock:",
    host: "devcrm.exemple.com.br"

    2020/10/20 10:31:16 [error] 10484#10484: *60 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: Argument 2 passed to Espo\Core\Utils\Util::arrayKeysExists() must be of the type array, int given, called in /var/data/www/espocrm/install/core/Installer.php on line 103 and defined in /var/data/www/espocrm/application/Espo/Core/Utils/Util.php:647


    Have you been through something like this?

    Thanks in advance
    Last edited by luizthomasini; 10-20-2020, 06:15 PM.

  • #2
    hi, did you check the data/config.php file ?
    Cheers!
    Nishan.

    Comment


    • #3
      Hi luizthomasini,
      You haven't yet installed EspoCRM, am I right? When you connect to EspoCRM for the first time it redirects you to /install in order to make EspoCRM system installation. If you are getting the error on this stage, then there are a few possible causes:
      1. The EspoCRM files are corrupted. You can download a fresh EspoCRM .zip file here https://www.espocrm.com/download/, and replace your corrupted instance with the fresh one. After, try to run the installation again. If it won't help then see the next cause.
      2. Your webserver is badly configured. Please check this manual carefully https://docs.espocrm.com/administrat...configuration/.

      If you have this issue happen to the completely installed system then please open these 2 files:
      1. /data/config.php
      2. /install/config.php
      and check whether the 'isInstalled' parameter is set to true. E.g.
      Code:
      'isInstalled' => true
      If it set to false then change it and try to connect to the https://devcrm.guiainvest.com.br/ again.

      Comment


      • #4
        Hi

        I checked the /data/config.php file.

        Somehow the file was completely empty, something caused it to delete the config file content, not sure what it was.

        So I copied another config file and paste it and changed the parameters.

        I did that and now it's working normaly.


        Thanks.

        Comment

        Working...
        X