Support » Plugin: WP Maintenance Mode » Notice: Undefined index: status_data in wp-maintenance-mode.php on line 531

  • Resolved armanseref69

    (@armanseref69)


    Hello,

    When the maintenance page is UP, and WordPress in debug mode, i have this line on front-office.. :

    Notice: Undefined index: status_data in /home/lesamisddf/www/wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php on line 531

    Can you help me for resolve this problem please ?

    I have last version of plugin and wordpress, and no cache plugin..

    Thanks a lot !

    Arman Seref

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author George J

    (@georgejipa)

    Hello @armanseref69,

    Open wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php and replace this line:

    
    $countdown_start = !empty($this->plugin_settings['modules']['countdown_start']) ? $this->plugin_settings['modules']['countdown_start'] : $this->plugin_settings['general']['status_data'];
    

    with this line:

    
    $countdown_start = !empty($this->plugin_settings['modules']['countdown_start']) ? $this->plugin_settings['modules']['countdown_start'] : $this->plugin_settings['general']['status_date'];
    


    George

    • This reply was modified 3 years, 4 months ago by George J.

    Merged pull request from @georgejipa, this change will be included in the next release.
    @armanseref69 in the meantime to get rid of the message do what George suggested.

    Thread Starter armanseref69

    (@armanseref69)

    Nice !
    It’s OK for me !

    Thanks a lot, and good job for reactivity and update for next release.

    Best regards,

    Arman Seref

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Notice: Undefined index: status_data in wp-maintenance-mode.php on line 531’ is closed to new replies.