mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-06 16:14:36 -04:00
Clarify error if there are file permissions problems
This commit is contained in:
parent
b1338555fd
commit
f17c5d76d8
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace App\Exceptions;
|
namespace App\Exceptions;
|
||||||
|
|
||||||
use Crawler;
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Auth\AuthenticationException;
|
use Illuminate\Auth\AuthenticationException;
|
||||||
use Illuminate\Auth\Access\AuthorizationException;
|
use Illuminate\Auth\Access\AuthorizationException;
|
||||||
@ -51,11 +50,12 @@ class Handler extends ExceptionHandler
|
|||||||
return false;
|
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);
|
return parent::report($e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Crawler::isCrawler()) {
|
if (\Crawler::isCrawler()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,4 +91,4 @@ Troubleshooting
|
|||||||
- Running ``composer install`` and ``composer dump-autoload`` can sometimes help with composer problems.
|
- 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.
|
- 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``
|
- 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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user