diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 54df4167eab3..bdaf103dd36e 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -2,7 +2,6 @@ namespace App\Exceptions; -use Crawler; use Exception; use Illuminate\Auth\AuthenticationException; use Illuminate\Auth\Access\AuthorizationException; @@ -51,11 +50,12 @@ class Handler extends ExceptionHandler return false; } - if (! class_exists('Utils')) { + // if these classes don't exist the install is broken, maybe due to permissions + if (! class_exists('Utils') || ! class_exists('Crawler')) { return parent::report($e); } - if (Crawler::isCrawler()) { + if (\Crawler::isCrawler()) { return false; } diff --git a/docs/install.rst b/docs/install.rst index 628a30fcf285..44a56c35136f 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -91,4 +91,4 @@ Troubleshooting - Running ``composer install`` and ``composer dump-autoload`` can sometimes help with composer problems. - If you’re using a subdomain. ie, invoice.mycompany.com You will need to add ``RewriteBase /`` to public/.htaccess otherwise it may fail with ``Request exceeded the limit of 10 internal redirects due to probable configuration error.`` messages in the logs. - Composer install error: ``Fatal error: Allowed memory size of...`` Try the following: ``php -d memory_limit=-1 /usr/local/bin/composer install`` -- PHP Fatal error: ``Call to undefined method Illuminate\Support\Facades\Session::get()`` try deleting bootstrap/cache/services.php +- PHP Fatal error: ``Call to undefined method Illuminate\Support\Facades\Session::get()`` try deleting bootstrap/cache/services.php. If the file doesn't exist the steps `https://stackoverflow.com/a/37266353/497368 `_ may help.