Skip to content

Tag: error-handling

Form Processing php

I am new here so please point me in the right direction if I am misunderstanding how to submit a question here. 1. I am getting warning errors stating that I have “Undefined array keys”. I get this before and after the form has been submitted. I have defined the arrays at the top so I am unsure wh…

How to catch a fatal error both in PHP 7 and 8?

I have a PHP 7 script, that basically does this: To be clear: if the class I am looking for is “Main” and can’t be found, I must display the text, else it’s supposed to throw the exception anyway. It works well with PHP 7, but PHP 8 does not catch the error. Instead, it shows: How am I…

Website is throwing errors out of nowhere?

I literally don’t know what is causing this error, maybe one of you do. First of all I would like to state that, I have a two sites up and running with the exact same source/db, one is working fine. So out of nowhere errors came up on my second site (see picture below) causing Dropdown menus, charts and…