• Resolved axel2301

    (@axel2301)


    The following error message has appeared in the header since the update to 1.8.2:

    Warning: array_key_exists() expects parameter 2 to be array, bool given in /homepages/39/d744599325/htdocs/WordPress/wp-content/plugins/wp-header-images/inc/functions.php on line 285

    What can I do?

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • You have turned on debugging that’s why this warning appeared. This is just a warning. Don’t worry about it. We’ll fix it soon.

    Thread Starter axel2301

    (@axel2301)

    I have now found the following code in wp-config.php:

    define(‘WP_DEBUG’, false);

    But then this error message shouldn’t appear in the frontend?

    Yes, by changing debug mode to false warnings will not appear frontend.

    Thread Starter axel2301

    (@axel2301)

    Unfortunately, the error message is still displayed!

    OK than please replace line no. 156 in functions.php by this

    $wphi_gluri_slider = get_option( ‘wphi_gluri_slider’, array());

    it will resolve this issue thanks.

    Thread Starter axel2301

    (@axel2301)

    The line 156 of my functions.php says the following:

    * @global WP_Locale $wp_locale WordPress date and time locale object.

    I think you are editing wrong file, please check file in WP heeader images plugin on this location

    /homepages/39/d744599325/htdocs/WordPress/wp-content/plugins/wp-header-images/inc/functions.php

    Thread Starter axel2301

    (@axel2301)

    I’ve done it, but now there’s a new error message

    Warning: Use of undefined constant ‘wphi_gluri_slider’ – assumed ‘‘wphi_gluri_slider’’ (this will throw an Error in a future version of PHP) in /homepages/39/d744599325/htdocs/WordPress/wp-content/plugins/wp-header-images/inc/functions.php on line 156

    • This reply was modified 4 years, 7 months ago by axel2301.
    Thread Starter axel2301

    (@axel2301)

    I have undone it, unfortunately the error message is still there.

    • This reply was modified 4 years, 7 months ago by axel2301.
    Thread Starter axel2301

    (@axel2301)

    “curly” quotation marks were incorrectly used, presumably due to the forum system at www.ads-software.com or the missing marking as code?

    $wphi_gluri_slider = get_option( 'wphi_gluri_slider', array());

    Now the code works.

    Thank you so much!

    • This reply was modified 4 years, 7 months ago by axel2301.

    Yes you can use double quotation mark like this it will work.
    $wphi_gluri_slider = get_option(“wphi_gluri_slider”, array());

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @axel2301, i am releasing a new version with these improvements. Thank you @abdulrazzaq4085 and @raissufyan for suggesting these fixes.

    Thread Starter axel2301

    (@axel2301)

    @abdulrazzaq4085

    The additional code example, which has since been added, is unfortunately also incorrectly formatted and currently has
    curly quotes “ ” instead of single quotation marks " "

    @fahadmahmood

    Thanks for my mentioning the latest version! ??

    • This reply was modified 4 years, 7 months ago by axel2301.
    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @axel2301 please try the latest version with these improvements. Thank you @abdulrazzaq4085 , @raissufyan and @global.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Error message in the header after update to 1.8.2’ is closed to new replies.