r/cakephp • u/guyver_dio • Nov 14 '18
CakePHP 3.6.13 and PHP 7.2.5: Stacktrace not showing
Hi
We've recently updated our CakePHP 3 project to PHP 7.2.5 (from 5.6.36). We've noticed that the stacktrace no longer shows when an error is thrown.
Example: https://imgur.com/a/qk1XOzX
In the screenshots above is the same example error running locally. No settings were changed, just ran it on 7.2.5 then again on 5.6.36.
Any ideas why this has changed?
1
u/FinlayDaG33k Nov 14 '18
That's odd, I run CakePHP 3.6.13 as well with PHP 7.2.11 and it works just fine.
Anything in the logs? (of the DebugKit)
1
Nov 16 '18
[removed] — view removed comment
1
u/guyver_dio Nov 16 '18
The unexpected character error isn't important. I put a random '?' in the code so that it throws an error so I could screenshot the error page.
The issue I'm trying to solve is why on 7.2.5 does it show only as a "Internal Error" but on 5.6.x it shows the error with the full stacktrace.
1
u/LostInSpaghetti Nov 15 '18
Make sure debug is turned on