WPIntell

Source evidence

Unexpected fatal error

WP Header Images · support · 2020-01-15T17:43:00+00:00

neutralsentiment
highseverity
0.7relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 28 rows with source links

17.9% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
familybiker resolved
Hello. 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 🙂

Comments

3 shown
cmolyn 2020-01-15T17:48:00+00:00

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())) {

Fahad Mahmood 2020-01-15T19:38:00+00:00

@cmolyn thank you so much. It was just a confusion as it didn’t bug on localhost. Sorry for the inconvenience.

familybiker 2020-01-16T06:01:00+00:00

@cmolyn Thanks 🙂