Title: Undefined array key &#8216;condition&#8217;
Last modified: January 2, 2024

---

# Undefined array key ‘condition’

 *  Resolved [New_WP](https://wordpress.org/support/users/baxter89/)
 * (@baxter89)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/undefined-array-key-condition/)
 * Hello,
   I use ACF with Fluentsnippets, I create my PHP code using Content PHP 
   + HTML in my articles.The PHP code used:
 *     ```wp-block-code
       <?php
       $reference = get_field('reference');
       	if( $reference ): ?>
       <p><b>Ref. :</b> <?php the_field('reference');?></p>
       <?php endif; ?>
       ```
   
 * I get the following error when I go to my article page, to insert the code I 
   use Shortcode:
 * Warning: Undefined array key ‘condition’ in /var/www/clients/client2/web41/web/
   wp-content/plugins/easy-code-manager/app/Hooks/Handlers/CodeHandler.php on line
   96
 * WP 6.4.2 Theme: Ollie and tested with Twenty Twenty-Four
 * THANK YOU

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

 *  Plugin Author [Shahjahan Jewel](https://wordpress.org/support/users/techjewel/)
 * (@techjewel)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-condition/#post-17320795)
 * I got the issue. In the snippet just enable and disable the condition once and
   it will work fine. In the next version, we will fix the issue.
 *  Thread Starter [New_WP](https://wordpress.org/support/users/baxter89/)
 * (@baxter89)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-condition/#post-17321032)
 * THANK YOU
 *  Thread Starter [New_WP](https://wordpress.org/support/users/baxter89/)
 * (@baxter89)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-condition/#post-17321179)
 * I have activated and deactivated the conditions, it does not work?
   [https://snipboard.io/Bg0Uql.jpg](https://snipboard.io/Bg0Uql.jpg)
 *  Thread Starter [New_WP](https://wordpress.org/support/users/baxter89/)
 * (@baxter89)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-condition/#post-17321183)
 * **Warning**: Undefined array key “condition” in **/var/www/clients/client2/web41/
   web/wp-content/plugins/easy-code-manager/app/Hooks/Handlers/CodeHandler.php**
   on line **97**
 * **Warning**: Undefined array key “condition” in **/var/www/clients/client2/web41/
   web/wp-content/plugins/easy-code-manager/app/Hooks/Handlers/CodeHandler.php**
   on line **97**

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

The topic ‘Undefined array key ‘condition’’ is closed to new replies.

 * ![](https://ps.w.org/easy-code-manager/assets/icon.svg?rev=3011466)
 * [FluentSnippets - The High-Performance file based Custom Code Snippets Plugin](https://wordpress.org/plugins/easy-code-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-code-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-code-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-code-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-code-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-code-manager/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [New_WP](https://wordpress.org/support/users/baxter89/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-condition/#post-17321183)
 * Status: resolved