1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00

Clarify error if there are file permissions problems

This commit is contained in:
Hillel Coren 2018-02-21 17:59:54 +02:00
parent b1338555fd
commit f17c5d76d8
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -91,4 +91,4 @@ Troubleshooting
- Running ``composer install`` and ``composer dump-autoload`` can sometimes help with composer problems.
- If youre 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 <here>`_ may help.