• Resolved dyin

    (@dyin)


    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 4 years, 5 months ago by dyin.
    • This topic was modified 4 years, 5 months ago by dyin.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Hey @dyin,

    For now, please revert back to PHP 7.3. I’ll create a ticket for this and update the developer.

    Thread Starter dyin

    (@dyin)

    @hchouhan Yup I did do that. Looking forward to the fix! Thx for the work guys

    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.

    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

    (@dyin)

    @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

    Hey @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.

    Thread Starter dyin

    (@dyin)

    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!

    @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

    (@dyin)

    @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.

    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

    (@dyin)

    @deltafactory thx for the tip! I hope there is a fix soon though.

    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.