This is indeed an error in the code. If anyone else has this problem and you are using PHP you should check the error.log file in your cPanel or ISPManager if you are using a web host, or even better, as @Picsou993 said enable errors in php.ini by changing Code: display_errors: off to Code: display_errors: on (P.S. keep in mind it might be commented)