• Resolved Angela

    (@angelajholden)


    Hello All: I’m using Esplanade for my website and on the pages where I add a link to an image or text, I get this warning message when I publish or update:

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /hermes/waloraweb007/b1153/moo.angelainmpls/fazilsayfan/wp-includes/functions.php on line 2447

    Warning: Cannot modify header information – headers already sent by (output started at /hermes/waloraweb007/b1153/moo.angelainmpls/fazilsayfan/wp-includes/functions.php:2447) in /hermes/waloraweb007/b1153/moo.angelainmpls/fazilsayfan/wp-includes/pluggable.php on line 866

    Here is line 2447 which is referenced in the first warning:

    if ( in_array( $ext, $exts ) )

    Here is line 866 which is referenced in the second warning:

    if ( in_array( $ext, $exts ) )

    I don’t know any PHP so trouble shooting this on my own makes me nervous. Interestingly enough, the page will still update. If someone can tell me what to do or what is wrong, I’m comfortable make the change. But since I don’t know any PHP, I have no idea what I’m looking at.

    I’ve also asked the theme author for support but I’m not getting a response. Any help is much appreciated.

    -Angela

Viewing 2 replies - 1 through 2 (of 2 total)
  • The error is in the theme’s functions.php file (wp-content/themes/esplanade/functions.php) on line 1711. Replace the line:

    add_filter( 'ext2type', 'esplanade_mime_types' );

    with this:

    add_filter( 'ext2type', 'esplanade_file_types' );

    The second error is just collateral damage done by the first and should disappear once the first is corrected.

    Thread Starter Angela

    (@angelajholden)

    The fix worked. Thanks for your help. Here’s the site if you’d like to have a look at your theme:

    https://fazilsayfan.com/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Theme: Esplanade] Warning when I update post or page’ is closed to new replies.