• maschmiede

    (@maschmiede)


    Hello Zapier team,

    after updating “Zapier for WordPress” plugin to version 1.0.6 we get an internal warning spam. Inside your zapier.php on line 177 you request $_SERVER[‘HTTP_USER_AGENT’] which could not be set. Especially if you run wp-cron.php via command php:

    $> /usr/bin/php8.1 /our_abs_path_2_wordpress/wordpress/wp-cron.php

    Can you please add an isset() for that variable in future releases to avoid this mistake. Here is our hotfix for that line:

    $is_zapier_request = isset($_SERVER[‘HTTP_USER_AGENT’]) && $_SERVER[‘HTTP_USER_AGENT’] === ‘Zapier’ && isset($_SERVER[‘HTTP_X_ZAPIER_AUTH’]);

    Thank you very much.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Cronjob warning after update to 1.0.6’ is closed to new replies.