Title: PHP Warning: Undefined array key &#8220;excerptLength&#8221;&#8230;
Last modified: November 26, 2021

---

# PHP Warning: Undefined array key “excerptLength”…

 *  Resolved [wprat](https://wordpress.org/support/users/wprat/)
 * (@wprat)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-excerptlength/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-undefined-array-key-excerptlength%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [wprat](https://wordpress.org/support/users/wprat/)
 * (@wprat)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-excerptlength/#post-15105734)
 * Don’t bother, it’s configuration discrepancy error, think I found it…. see ya…
   stay healthy and safe…
    wprat
 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-excerptlength/#post-15118062)
 * 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.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/kadence/1.5.0/screenshot.png)
 * Kadence
 * [Support Threads](https://wordpress.org/support/theme/kadence/)
 * [Active Topics](https://wordpress.org/support/theme/kadence/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/kadence/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/kadence/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [hannah](https://wordpress.org/support/users/hannahritner/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-excerptlength/#post-15118062)
 * Status: resolved