Support » Plugin: Head & Footer Code » PHP errors after updating to 1.0.3

  • Resolved chrisbloom

    (@chrisbloom)


    I saw there was an update available for HFC and applied it. Afterward I started getting the following PHP error at the top of any posts that include additional header code (nothing includes footer code at the moment). I went to the HFC settings page and the checkboxes for what post formats to include them on were both unchecked. When I checked them and saved the form the errors went away.

    ( ! ) Warning: in_array() expects parameter 2 to be array, string given in /var/www/html/wp-content/plugins/head-footer-code/inc/front.php on line 47
    Call Stack
    # Time Memory Function Location
    1 0.0006 233912 {main}( ) .../index.php:0
    2 0.0011 234352 require( '/var/www/html/wp-blog-header.php' ) .../index.php:17
    3 0.4287 4821168 require_once( '/var/www/html/wp-includes/template-loader.php' ) .../wp-blog-header.php:16
    4 0.4421 4923296 include( '/vagrant/custom_theme/page-full-width.php' ) .../template-loader.php:75
    5 0.4421 4923352 get_header( ) .../page-full-width.php:7
    6 0.4421 4940896 locate_template( ) .../general-template.php:45
    7 0.4427 4941160 load_template( ) .../template.php:514
    8 0.4430 4954328 require_once( '/vagrant/custom_theme/header.php' ) .../template.php:555
    9 0.4437 4969256 wp_head( ) .../header.php:9
    10 0.4437 4969304 do_action( ) .../general-template.php:2270
    11 0.4975 5122640 call_user_func_array:{/var/www/html/wp-includes/plugin.php:503} ( ) .../plugin.php:503
    12 0.4975 5122816 auhfc_wp_head( ) .../plugin.php:503
    13 0.4976 5124632 in_array ( ) .../front.php:47

    https://wordpress.org/plugins/head-footer-code/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP errors after updating to 1.0.3’ is closed to new replies.