Title: php 8 issue
Last modified: December 17, 2020

---

# php 8 issue

 *  Resolved [spiros](https://wordpress.org/support/users/spiros/)
 * (@spiros)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php-8-issue/)
 * Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class)
   must be of type object|string, null given in /home/sitename/public_html/wp-content/
   plugins/wp-dark-mode/includes/class-enqueue.php:87 Stack trace: #0 /home/sitename/
   public_html/wp-content/plugins/wp-dark-mode/includes/class-enqueue.php(87): method_exists(
   NULL, ‘is_block_editor’) #1 /home/sitename/public_html/wp-content/plugins/wp-
   dark-mode/includes/class-enqueue.php(57): WP_Dark_Mode_Enqueue->frontend_localize()#
   2 /home/sitename/public_html/wp-includes/class-wp-hook.php(287): WP_Dark_Mode_Enqueue-
   >frontend_scripts(”) #3 /home/sitename/public_html/wp-includes/class-wp-hook.
   php(311): WP_Hook->apply_filters(NULL, Array) #4 /home/sitename/public_html/wp-
   includes/plugin.php(484): WP_Hook->do_action(Array) #5 /home/sitename/public_html/
   wp-includes/script-loader.php(2004): do_action(‘wp_enqueue_scri…’) #6 /home/sitename/
   public_html/wp-includes/class-wp-hook.php(287): wp_enqueue_scripts(”) #7 /home/
   sitename/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”,
   Array) #8 /home/sitename/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(
   Array) #9 /home/sitename/public_html/wp-includes/general-template.php(3005): 
   do_action(‘wp_head’) #10 /home/sitename/public_html/wp-content/themes/responsive/
   header.php(42): wp_head() #11 /home/sitename/public_html/wp-includes/template.
   php(730): require_once(‘/home/sitename/p…’) #12 /home/sitename/public_html/wp-
   includes/template.php(676): load_template(‘/home/sitename/p…’, true, Array) #
   13 /home/sitename/public_html/wp-includes/general-template.php(48): locate_template(
   Array, true, true, Array) #14 /home/sitename/public_html/wp-content/themes/responsive/
   front-page.php(44): get_header() #15 /home/sitename/public_html/wp-includes/template-
   loader.php(106): include(‘/home/sitename/p…’) #16 /home/sitename/public_html/
   wp-blog-header.php(19): require_once(‘/home/sitename/p…’) #17 /home/sitename/
   public_html/index.php(17): require(‘/home/sitename/p…’) #18 {main} thrown in /
   home/sitename/public_html/wp-content/plugins/wp-dark-mode/includes/class-enqueue.
   php on line 87
    There has been a critical error on this website.

Viewing 1 replies (of 1 total)

 *  Plugin Author [WPPOOL](https://wordpress.org/support/users/wppool/)
 * (@wppool)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/php-8-issue/#post-13806337)
 * Hi [@spiros](https://wordpress.org/support/users/spiros/)
    Thanks for informing
   us about the issue. The issue will be fixed in the next update.

Viewing 1 replies (of 1 total)

The topic ‘php 8 issue’ is closed to new replies.

 * ![](https://ps.w.org/wp-dark-mode/assets/icon-256x256.gif?rev=2872214)
 * [WP Dark Mode - Improve Accessibility with AI Powered Dark Theme](https://wordpress.org/plugins/wp-dark-mode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-dark-mode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-dark-mode/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-dark-mode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-dark-mode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-dark-mode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WPPOOL](https://wordpress.org/support/users/wppool/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/php-8-issue/#post-13806337)
 * Status: resolved