Category: error-handling

How to Customize 403 exception page?

Seriously Symfony documentation is really bad or outdated… I am trying to customize the Access Denied page. I followed this “tutorial” https://symfony.com/doc/current/controller/error_pages.html It says To override the 404 error template for HTML pages, create a new error404.html.twig template located at…

How can I fix a class not found after composer update in Symfony? [closed]

I made a composer update and since then I get an error message: Class “OneupUploaderBundleUploaderNamingUniqidNamer” not found while loading “AppControllermyAppOriginalNameNamer”. And I just cannot figure out to fix it. I made again composer install, and also composer dumpautoload but nothing…

Why an "Undefined offset" throws an exception in one machine, but shows a notice in another?

I am getting different results on my local machine than on Travis for a simple test. Here is the test: class FooTest extends TestCase { public function testArrayKeyUndefined(): void { $a = [1 => ‘a’, 2 => ‘b’, 3 =>…