• Resolved wprat

    (@wprat)


    Hello there!

    Wished to try out Kadence theme and tools, so, installed brand new WP site, with only free Kadence theme and blocks… and few hour later there are many records in error_log, every day, all are the same:
    [22-Nov-2021 10:24:21 UTC] PHP Warning: Undefined array key “excerptLength” in /home2/hdp/public_html/wp-content/plugins/kadence-blocks/dist/templates/entry-summary.php on line 19

    In line 19 mentioned is this code:
    $kadence_blocks_post_block_get_excerpt_length = ( $attributes[‘excerptLength’] ? $attributes[‘excerptLength’] : 40 );
    and afterthat the lines:
    add_filter( ‘excerpt_length’, ‘kadence_blocks_post_block_get_excerpt_length’, 20 );
    the_excerpt();
    remove_filter( ‘excerpt_length’, ‘kadence_blocks_post_block_get_excerpt_length’, 20 );

    ANY SUGGESTION ABOUT WHAT IS GOING ON AND HOW TO SOLVE?
    many thanks & greetings,
    wprat

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wprat

    (@wprat)

    Don’t bother, it’s configuration discrepancy error, think I found it…. see ya… stay healthy and safe…
    wprat

    hannah

    (@hannahritner)

    Glad you were able to resolve this! Let us know if there’s something else we can do for you.

    Best,
    Hannah

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Warning: Undefined array key “excerptLength”…’ is closed to new replies.