Oct 10, 2018

[HDGEM] How to fix: Wordpress: Error plugins/insert-headers-and-footers/ihaf.php on line 102

This  fatal errors which cause 500 error.
Change plugin code- line number 102- 108 ihaf.php
if ( empty( get_option( $this->plugin->db_welcome_dismissed_key ) ) ) {           if ( ! ( $pagenow == 'options-general.php' && isset( $_GET['page'] ) && $_GET['page'] == 'insert-headers-and-footers' ) ) {               $setting_page = admin_url( 'options-general.php?page=' . $this->plugin->name );               // load the notices view               include_once( WP_PLUGIN_DIR . '/' . $this->plugin->name . '/views/dashboard-notices.php' );           }          }
change to –
$welcome_key = get_option( $this->plugin->db_welcome_dismissed_key );          if ( empty(  $welcome_key ) ) {           if ( ! ( $pagenow == 'options-general.php' && isset( $_GET['page'] ) && $_GET['page'] == 'insert-headers-and-footers' ) ) {               $setting_page = admin_url( 'options-general.php?page=' . $this->plugin->name );               // load the notices view               include_once( WP_PLUGIN_DIR . '/' . $this->plugin->name . '/views/dashboard-notices.php' );           }          }


--
Posted By Blogger to HDGEM at 3/16/2017 08:24:00 AM