• Hello,

    I’ve got wp-cron.php setup as a cronjob and each time the cronjob is executed the contact form plugin throws a php notice.

    PHP Notice:  Undefined index: REQUEST_METHOD in /wp-content/plugins/contact-form-7/includes/controller.php on line 12
    PHP Notice:  Undefined index: REQUEST_METHOD in /wp-content/plugins/contact-form-7/includes/controller.php on line 39

    It can be solved by adding defined( 'DOING_CRON' ) || to the if statement or isset( $_SERVER['REQUEST_METHOD'] ).

    Could you fix it?

    Thanks.

    https://www.ads-software.com/plugins/contact-form-7/

  • The topic ‘wp-cron php warnings’ is closed to new replies.