Jump to content
MakeWebGames

Error handling in 1.1.4


a_bertrand
 Share

Recommended Posts

Before the error handling inside NWE was less than optimal usually showing something which was in the best cases hard to decrypt and in other not even pointing to the right direction. In this release I spent quiet some time on improving the error handling. It now shows error which are easier to understand, showing the stack trace in a readable format, in some cases giving even hints about what the issue could be, and even showing the bad SQL query you tried to run. Also, with a trick, the engine will now even be able to catch parsing errors (missing ; or more) inside your modules.

In the cases below you will see a "HINT" text, which is a small text I added to try to help understand common errors. Of course that's not a PHP book or the solution to all, but it may help find common issues quicker, at least for those starting programming in PHP.

Parsing error (previously it wasn't catch by the engine):

[ATTACH=CONFIG]752[/ATTACH]

Evaluated code error (for example custom conditions / actions in the items)

[ATTACH=CONFIG]753[/ATTACH]

use $_POST['something'] without checking if we got it ?

[ATTACH=CONFIG]754[/ATTACH]

Wrong SQL query:

[ATTACH=CONFIG]755[/ATTACH]

Forget to add the $ sign?

[ATTACH=CONFIG]756[/ATTACH]

Wrong variable name?

[ATTACH=CONFIG]757[/ATTACH]

wrong_close_string.JPG.e3c8ca83c58185e40bb856f934606204.JPG

wrong_eval.JPG.3804e50ca8ea0f1baade735961c627b4.JPG

wrong_post.JPG.30316fab25a5905d2a4350ec82a3d9d5.JPG

wrong_query.JPG.85d8851a21ec8817a1f7d105ef17665a.JPG

wrong_string.JPG.4bc3cb9b0b6765ab42497fdfe339ae11.JPG

wrong_variable.JPG.67e0ca95999db4fd67d77774eafac36c.JPG

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...