[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 20:48:31 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:  Administration           |    Version:  trunk
 Severity:  major                    |   Keywords:  has-patch changes-
  Focuses:  administration, php-     |  requested
  compatibility                      |
-------------------------------------+-------------------------------------
 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/

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61873>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list