Title: PHP error
Last modified: June 24, 2020

---

# PHP error

 *  Resolved [dyin](https://wordpress.org/support/users/dyin/)
 * (@dyin)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/php-error-400/)
 * Hi,
 * Thanks for the useful plugin. I am however trying to upgrade the hosting from
   PHP 7.3 to PHP 7.4 and I got an error in the WP admin.
    So I had to revert back
   to PHP 7.3. Any info on why this could happen?
 *     ```
       Notice: Trying to access array offset on value of type bool in /data/sites/web/mywebsite/www/wp-content/plugins/download-monitor/src/DLM.php on line 236
       Warning: Cannot modify header information - headers already sent by (output started at /data/sites/web/mywebsite/www/wp-content/plugins/download-monitor/src/DLM.php:236) in /data/sites/web/mywebsite/www/wp-includes/functions.php on line 6221
       Warning: Cannot modify header information - headers already sent by (output started at /data/sites/web/mywebsite/www/wp-content/plugins/download-monitor/src/DLM.php:236) in /data/sites/web/mywebsite/www/wp-admin/includes/misc.php on line 1282
       Warning: Cannot modify header information - headers already sent by (output started at /data/sites/web/mywebsite/www/wp-content/plugins/download-monitor/src/DLM.php:236) in /data/sites/web/mywebsite/www/wp-admin/admin-header.php on line 9
       ```
   
    -  This topic was modified 5 years, 11 months ago by [dyin](https://wordpress.org/support/users/dyin/).
    -  This topic was modified 5 years, 11 months ago by [dyin](https://wordpress.org/support/users/dyin/).

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

 *  [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/php-error-400/#post-13041467)
 * Hey [@dyin](https://wordpress.org/support/users/dyin/),
 * For now, please revert back to PHP 7.3. I’ll create a ticket for this and update
   the developer.
 *  Thread Starter [dyin](https://wordpress.org/support/users/dyin/)
 * (@dyin)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/php-error-400/#post-13041817)
 * [@hchouhan](https://wordpress.org/support/users/hchouhan/) Yup I did do that.
   Looking forward to the fix! Thx for the work guys
 *  [deltafactory](https://wordpress.org/support/users/deltafactory/)
 * (@deltafactory)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-error-400/#post-13090075)
 * Is there a timeline for this to be fixed? DreamPress is rolling out automatic(
   forced?) upgrades to PHP 7.4 starting next week so this will start to become 
   an issue as hosts deprecate earlier versions.
 *  [deltafactory](https://wordpress.org/support/users/deltafactory/)
 * (@deltafactory)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-error-400/#post-13100612)
 * Not knowing all of the possible values from `get_theme_support()` line 236 may
   be incorrect:
 * `if ( is_array( $current_support[0] ) ) {`
 * might need to become:
 * `if ( is_array( $current_support ) ) {`
 *  Thread Starter [dyin](https://wordpress.org/support/users/dyin/)
 * (@dyin)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-error-400/#post-13120087)
 * [@hchouhan](https://wordpress.org/support/users/hchouhan/) Any timeline for the
   php issue fix? My host will also soon go to 7.4 and I really like the ease of
   this download plugin
 *  [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-error-400/#post-13123273)
 * Hey [@dyin](https://wordpress.org/support/users/dyin/),
 * I regret to say we do not have any update on this yet. You can follow the issue
   at [https://github.com/download-monitor/download-monitor/issues/620](https://github.com/download-monitor/download-monitor/issues/620).
 *  Thread Starter [dyin](https://wordpress.org/support/users/dyin/)
 * (@dyin)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-error-400/#post-13166026)
 * Hey Guys,
 * just a question. In case they decide to upgrade my server to PHP 7.4, is there
   a good alternative to this plugin? I really like it but I do not want error messages
   to be displayed. I guess I can wait a little longer but I do need to be prepared.
 * Thx for the info!
 *  [deltafactory](https://wordpress.org/support/users/deltafactory/)
 * (@deltafactory)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-error-400/#post-13166093)
 * [@dyin](https://wordpress.org/support/users/dyin/),
 * If you have error logging disabled (a good idea on a production site) then the
   Notice won’t show, nor will it change site behavior.
 *  Thread Starter [dyin](https://wordpress.org/support/users/dyin/)
 * (@dyin)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-error-400/#post-13166133)
 * [@deltafactory](https://wordpress.org/support/users/deltafactory/) Thanks for
   the tip. I will into it. It doesn’t hower sound smart to just hide it while the
   problem is still there.
    What is the easiest way to disable error logging? I’m
   not used to it.
 *  [deltafactory](https://wordpress.org/support/users/deltafactory/)
 * (@deltafactory)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-error-400/#post-13166241)
 * Adding these lines to your wp-config.php *might* work – untested, use at your
   own risk:
 *     ```
       ini_set('display_errors','Off');
       ```
   
 * This assumes that no other plugins are re-enabling logging.
 * There are other ways to do it through a php.ini file but that varies across hosts.
   The line above will have the same result and should be easy for you to disable
   by FTP if something goes wrong.
 *  Thread Starter [dyin](https://wordpress.org/support/users/dyin/)
 * (@dyin)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-error-400/#post-13166256)
 * [@deltafactory](https://wordpress.org/support/users/deltafactory/) thx for the
   tip! I hope there is a fix soon though.
 *  [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/php-error-400/#post-13567272)
 * Hello,
 * We have released an update for the plugin. Please update and let us know if the
   issue is resolved when using PHP 7.4

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

The topic ‘PHP error’ 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/)

 * 12 replies
 * 3 participants
 * Last reply from: [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/php-error-400/#post-13567272)
 * Status: resolved