AdvanzoDocumentation

Troubleshoot Advanzo CRM

· Enterprise admins

In short

If a self-hosted Advanzo CRM installation does not work, first check the server log and storage/logs/laravel.log, and turn on APP_DEBUG while debugging. This page covers 404 errors, the /install route, database connection and migration failures and a cron job error.

If you run into problems, the best first step is to check the server and application logs, for example /var/log/apache2/error.log and storage/logs/laravel.log.

While debugging an issue, we also recommend turning on debug mode in the .env file with APP_DEBUG=true. Read more about editing the .env file.

404 Not Found Error

Make sure that the document root of your subdomain points to the /path/to/advanzo/public folder and not to the /path/to/advanzo folder. We recommend checking the installation guides to get more familiar with the installation steps.

Cannot See Folder Named Install

The URL /install is a Laravel route and not a folder. You will be redirected to /install if the application detects that the app needs to be installed.

Database Connection Failed

If you get the error message Database connection failed, make sure that the database user credentials are correct. If you recently changed the database user password, make sure to update the password in the .env file as well. Read more about editing the .env file.

Database Migration Failed

If you get the error message Database migration failed, check that your database user has enough privileges to perform database actions. Also try increasing the PHP memory limit.

Invalid Argument Supplied For Foreach

Your cron job is not running and you get an ErrorException with the message Invalid argument supplied for foreach() in /home/project/vendor/symfony/console/Input/ArgvInput.php.

This error indicates that the register_argc_argv option is not enabled.

Try one of the following commands:

php -d register_argc_argv=1 /path/to/advanzo/artisan schedule:run >/dev/null
php -d register_argc_argv=1 /path/to/advanzo/artisan schedule:run > '/dev/null' 2>&1 &

Make sure to replace /path/to/advanzo/ with the path to your installation. On some shared hosting you may need to specify the full path to the PHP executable (for example, /usr/local/bin/php-8.1 instead of php).