[wp-trac] [WordPress Trac] #61873: Check if error_reporting function exists, otherwise breaks php8 installs when disabled in the ini config
WordPress Trac
noreply at wordpress.org
Wed Aug 14 21:12:54 UTC 2024
#61873: Check if error_reporting function exists, otherwise breaks php8 installs
when disabled in the ini config
--------------------------+------------------------------------------------
Reporter: gansbrest | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: | Version: trunk
Administration |
Severity: major | Resolution:
Keywords: has-patch | Focuses: administration, php-compatibility
--------------------------+------------------------------------------------
Changes (by sabernhardt):
* keywords: has-patch changes-requested => has-patch
Old description:
> Short summary of the problem: When error_reporting function is disabled
> on the hosting provider, it breaks admin area due to the fact that wp-
> admin/load-styles.php and wp-admin/load-scripts.php are triggering it
> without checking.
>
> Some work has been done to resolve the problem here
> https://core.trac.wordpress.org/ticket/52226
>
> Unfortunately it doesn't address the issue completely as it only adds
> checks to the wp-load.php file.
>
> Here is the great post that summarizes problem with error_reporting in WP
> for some additional context: https://phil.lavin.me.uk/2022/02/wordpress-
> changing-error_reporting-level/
New description:
Short summary of the problem: When `error_reporting` function is disabled
on the hosting provider, it breaks admin area due to the fact that `wp-
admin/load-styles.php` and `wp-admin/load-scripts.php` are triggering it
without checking.
Some work has been done to resolve the problem on #52226
Unfortunately it doesn't address the issue completely as it only adds
checks to the `wp-load.php` file.
Here is the great post that summarizes problem with `error_reporting` in
WP for some additional context: https://phil.lavin.me.uk/2022/02
/wordpress-changing-error_reporting-level/
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61873#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list