You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ElementalContentControllerExtension::handleElement() has a bunch of places which call user_error(), resulting in a 500 internal server error when users visit a URL for an element which doesn’t exist (or previously existed, but has been removed). This can be caused by bots scanning sites, or legitimate users visiting URLs that have since been removed.
user_error('Element $id not found for this page', E_USER_ERROR);
returnfalse;
}
For example, if you visit a URL like http://mysite.test/home/element/12345/action you’ll get a server error when that may simply be a URL that no longer exists.
These should be replaced with 404 responses, though we could keep the more descriptive error messages for dev mode.
The text was updated successfully, but these errors were encountered:
ElementalContentControllerExtension::handleElement()
has a bunch of places which calluser_error()
, resulting in a 500 internal server error when users visit a URL for an element which doesn’t exist (or previously existed, but has been removed). This can be caused by bots scanning sites, or legitimate users visiting URLs that have since been removed.silverstripe-elemental/src/Extensions/ElementalContentControllerExtension.php
Lines 18 to 49 in f626840
For example, if you visit a URL like
http://mysite.test/home/element/12345/action
you’ll get a server error when that may simply be a URL that no longer exists.These should be replaced with 404 responses, though we could keep the more descriptive error messages for dev mode.
The text was updated successfully, but these errors were encountered: