Conversation
supportHello. Since midday I have received the following error message from my WordPress installation: An unexpected fatal error occurred on the site. Fatal error: Uncaught Error: Call to undefined function is_home_page () in /wp-content/plugins/wp-header-images/inc/functions.php:298 Stack trace: # 0 /wp-content/plugins/wp-header-images/inc/functions.php(360): get_header_images_inner () # 1 /wp-includes/shortcodes.php(325): get_header_images (”, ”, ‘WP_HEADER_IMAGE …’) # 2 [internal function]: do_shortcode_tag (array) # 3 /wp-includes/shortcodes.php(199): preg_replace_callback (‘/ \\ [(\\ [?) (WP_HEA …’, ‘do_shortcode_ta …’, ‘[WP_HEADER_IMAG …’) # 4 /wp-content/themes/lawyeriax/header.php(42): do_shortcode (‘[WP_HEADER_IMAG …’) # 5 /wp-includes/template.php(722): require_once (‘/ home / xxxxxxxxx / …’) # 6 /wp-includes/template.php(671): load_template (‘/ home / xxxxxx / …’, true) # 7 /wp-includes/general-template.php(41): locate_template (array in /wp-content/plugins/wp-header-images/inc/functions.php on line 298 A backup didn’t do anything … I haven’t made any changes recently. I hope the bug can be fixed 🙂 The page I need help with: [ log in to see the link]
I changed : /wp-content/plugins/wp-header-images/inc/functions.php Line 298 from is_home_page — which not a WP function to is_home if($img_id == 0 && (is_front_page() || is_home_page())) { to if($img_id == 0 && (is_front_page() || is_home())) {
@cmolyn thank you so much. It was just a confusion as it didn’t bug on localhost. Sorry for the inconvenience.
@cmolyn Thanks 🙂
I changed : /wp-content/plugins/wp-header-images/inc/functions.php Line 298 from is_home_page — which not a WP function to is_home if($img_id == 0 && (is_front_page() || is_home_page())) { to if($img_id == 0 && (is_front_page() || is_home())) {
@cmolyn thank you so much. It was just a confusion as it didn’t bug on localhost. Sorry for the inconvenience.
@cmolyn Thanks 🙂