Viewing 14 replies - 1 through 14 (of 14 total)
  • How to revert exactly? Because I could not even go to the wp-admin page.

    I experienced the same issue and I had to delete the plugin through File Manager. To restore my website.

    open the file in editor and comment out the whole if {}.

    open the file in editor and comment out the whole if {}.
    or
    change the plugin folder name
    and
    wait until the issue is fixed with a new update…

    thanks for help. it worked to comment out the if {} beginning line 102.

    For someone who’s not too experienced in coding, what does ‘comment out’ mean?
    Do I delete the whole line 102, or what should I do exactly?

    • This reply was modified 7 years, 8 months ago by hannesofie.

    Go to line 102 in ihaf.php

    Change

    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' );
            	}
            }

    to

    /*
    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' );
            	}
            }
    */

    In another topic is a code given which fix the issue.

    Change

    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' );
            	}
            }

    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' );
            	}

    Thank you very much. ??

    numandroid (@numandroid) Solution fixed the issue for me.

    THANKS

    Thank you, solution also worked for me and I can now view my website too! However, I now have a completely different error message when trying to get to the wp-admin page as follows:

    Parse error: syntax error, unexpected ‘$ihaf’ (T_VARIABLE), expecting function (T_FUNCTION) in /home4/tpmcminn/public_html/wp-content/plugins/insert-headers-and-footers/ihaf.php on line 224

    Any help appreciated.. a beginner so in basic terms please!

    First of all, my sincerest apologies for the issue.

    This bug was caused by an older PHP version and how it treats a certain function. We have fixed the issue in 1.4.1.

    Please update the plugin to v1.4.1

    Thanks

    • This reply was modified 7 years, 8 months ago by Dave.

    @fluxwavez

    Sorry for the inconvenience. Please update the plugin to its latest version (1.4.1)

    Thanks

    Thread Starter rmmcclay

    (@rmmcclay)

    The update to 1.4.1 fixed my problem. Thanks.

    • This reply was modified 7 years, 8 months ago by rmmcclay.
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘1.4 Throws Error, Disables Site (error at ihaf.php on line 102)’ is closed to new replies.