Title: PHP 7.4 Error Notice
Last modified: March 31, 2020

---

# PHP 7.4 Error Notice

 *  Resolved [luminsol](https://wordpress.org/support/users/luminsol/)
 * (@luminsol)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-7-4-error-notice/)
 * I updated my PHP to 7.4 and notice the following warning:
 * > type E_NOTICE (8)
   >  info Trying to access array offset on value of type bool
   > file [removed]/wp-content/plugins/download-monitor/src/DLM.php line 236
 * Checking the code, it’s currently
 *     ```
       // fix current support for some themes
       if ( is_array( $current_support[0] ) ) {
           $current_support = $current_support[0];
       }
       ```
   
 * Line 236 should be changed to
    `if ( is_array( $current_support ) ) {`
    -  This topic was modified 6 years, 1 month ago by [luminsol](https://wordpress.org/support/users/luminsol/).

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

 *  [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-7-4-error-notice/#post-12614291)
 * Hey [@luminsol](https://wordpress.org/support/users/luminsol/),
 * Thanks for reaching out to us.
 * Our plugin is not yet tested on PHP 7.4. If possible for now, please change the
   PHP version to 7.3.
 *  [lkraav](https://wordpress.org/support/users/lkraav/)
 * (@lkraav)
 * [6 years ago](https://wordpress.org/support/topic/php-7-4-error-notice/#post-12734057)
 * [@luminsol](https://wordpress.org/support/users/luminsol/) analysis and solution
   is correct. Hopefully y’all can release 7.4 compatibility version soon.
 * EDIT it should probably be `isset( $current_support[0] )`, in theory it could
   also be an empty array, so `is_array( $current_support )` is not 100% safe.
    -  This reply was modified 6 years ago by [lkraav](https://wordpress.org/support/users/lkraav/).
      Reason: isset() is better
 *  Thread Starter [luminsol](https://wordpress.org/support/users/luminsol/)
 * (@luminsol)
 * [6 years ago](https://wordpress.org/support/topic/php-7-4-error-notice/#post-12748517)
 * Thanks [@lkraav](https://wordpress.org/support/users/lkraav/) for double checking,
   I agree with you.
 *  [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [6 years ago](https://wordpress.org/support/topic/php-7-4-error-notice/#post-12784800)
 * Hey [@luminsol](https://wordpress.org/support/users/luminsol/) [@lkraav](https://wordpress.org/support/users/lkraav/),
 * Thanks for sharing that. We have an open ticket at [https://github.com/download-monitor/download-monitor/issues/620](https://github.com/download-monitor/download-monitor/issues/620).
 * We will update you once we resolve this.
 *  [alemarengo84](https://wordpress.org/support/users/alemarengo84/)
 * (@alemarengo84)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/php-7-4-error-notice/#post-12882345)
 * I have the same error – never experienced till now – how to debug it? In my case,
   it prevents wordpress to print the main menu items in both languages available,
   managed through wpml.
 *  [dyin](https://wordpress.org/support/users/dyin/)
 * (@dyin)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-7-4-error-notice/#post-13031184)
 * I was just posting the same issue. I tried updating to PHP 7.4 (recommendation
   of WordPress) but had to revert back to PHP 7.3. Bummer because I really like
   the ease of this plugin 🙂
 *  [clipper87](https://wordpress.org/support/users/clipper87/)
 * (@clipper87)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-7-4-error-notice/#post-13039082)
 * [@luminsol](https://wordpress.org/support/users/luminsol/) where / when do you
   get this error ? I’m running the plugin on PHP 7.4.7 but not yet in production
 *  Thread Starter [luminsol](https://wordpress.org/support/users/luminsol/)
 * (@luminsol)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-7-4-error-notice/#post-13047006)
 * [@clipper87](https://wordpress.org/support/users/clipper87/) it’s a warning which
   you’ll find in error.log. You shouldn’t see it on the front end.
 *  [Dsonline-Group](https://wordpress.org/support/users/dsonline/)
 * (@dsonline)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/php-7-4-error-notice/#post-13466137)
 * **Thanks **
 *  [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/php-7-4-error-notice/#post-13567271)
 * Hello,
 * We have released an update. Can you please update the plugin and let us know 
   if the issue is resolved?
 *  Thread Starter [luminsol](https://wordpress.org/support/users/luminsol/)
 * (@luminsol)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/php-7-4-error-notice/#post-13570552)
 * Issue resolved. Thanks!

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

The topic ‘PHP 7.4 Error Notice’ is closed to new replies.

 * ![](https://ps.w.org/download-monitor/assets/icon-256x256.png?rev=3198936)
 * [Download Monitor](https://wordpress.org/plugins/download-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/download-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/download-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/download-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-monitor/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 11 replies
 * 7 participants
 * Last reply from: [luminsol](https://wordpress.org/support/users/luminsol/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/php-7-4-error-notice/#post-13570552)
 * Status: resolved