I’m having the following error while trying to output an exception:
Argument 1 passed to Cake\Error\ExceptionRenderer::__construct() must be an instance of Exception, instance of ParseError given, called in /var/www/public/cake/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php on line 167
I’ve searched a lot in the web, and I found that there were some incompatibilities in earlier versions with PHP7. Ok, I have latest version of cakePHP now and the following server:
OS: Ubuntu 16.04 LTS (Xenial Xerus)
Web Server: Apache
PHP: 7.0.15
CakePHP: 3.5.7
I’m starting to learn cakePHP and this is my first PHP framework. Any help in where to look or how can I solve this would be very appreciated!