-
-
Notifications
You must be signed in to change notification settings - Fork 531
Open
Labels
bugThe issue in the code or project, which should be addressed.The issue in the code or project, which should be addressed.
Description
Bug report
Summary
A PHP-type widget with a syntax error causes 500 error and blank screen for entire site.
Step to reproduce
Create a PHP-type widget with this code:
<?php
return "Hello World;"
Reload page.
Observed behavior
xxxxxx.modx.dev is currently unable to handle this request. HTTP ERROR 500
Nothing in error log.
Expected behavior
Clearer error.
This may be unavoidable, but the effect seems unnecessarily catastrophic.
On initial visit to the site, you don't even see the login screen. The 500 hundred error shows up immediately. I didn't expect that the widget code would be "included" before the login screen was rendered. That seems unnecessary.
Environment
MODX Cloud, but I think any install.
Metadata
Metadata
Assignees
Labels
bugThe issue in the code or project, which should be addressed.The issue in the code or project, which should be addressed.