The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

Disable the 500 fatal error screen

Barry's Avatar

Barry

29 Jul, 2015 03:17 PM

Hello,

We are trying to work with Slim but Slim is smarter then we are unfortunatly.

We use a try catch block in a code, to connect to another API. When there is a problem with that external API an exception is thrown.

But as I said Slim is smarter then we are, and decides to throw out a 500 internal server error and stops running code all together. And prompts us with a Slim stacktrace.

This is not what we want.

So is it possible to let us handle our own errors without Slim thinking it is smarter and knows what we want?

Thanks in advance,

  1. 1 Posted by Rob Allen on 29 Jul, 2015 05:36 PM

    Rob Allen's Avatar

    If this is Slim 2.x, then you should turn off debug in your config.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac