belettebuck
Forum Replies Created
-
Forum: Plugins
In reply to: [VS Contact Form] PHP warning “SERVER_NAME”Hello Guido
Yes it works for me!
I thank you 😉
Forum: Plugins
In reply to: [VS Contact Form] PHP warning “SERVER_NAME”Thank you 😉 🙂
Forum: Plugins
In reply to: [VS Contact Form] PHP warning “SERVER_NAME”Cron is used to periodically perform tasks on WordPress, e.g.: update plugins, email campaign, etc.
Here is an example of a cron task that I have:
php /bin/su --shell /bin/sh --command "/usr/bin/php /var/www/[VHOST]/docs/wp-cron.php" [USER_PHP_FPM]I confirm, the
vscf-sh=successis present.I thank you for your energy 😉
Forum: Plugins
In reply to: [VS Contact Form] PHP warning “SERVER_NAME”Hello,
I don’t really know what to look for, could you say more?
The form works well (reception for the client and the site manager)
Forum: Plugins
In reply to: [VS Contact Form] PHP warning “SERVER_NAME”Hello, I also have the problem.
Here is a solution (not the best):
/***/wp-content/plugins/very-simple-contact-form # diff vscf.php vscf_fix.php 140c140,144 < $server = preg_replace("/[^a-zA-Z0-9]/", "", $_SERVER['SERVER_NAME']); --- > if (isset($_SERVER["SERVER_NAME"])) { > $server = preg_replace("/[^a-zA-Z0-9]/", "", $_SERVER['SERVER_NAME']); > } else { > $server = 'CRONTAB'; > }The variable ‘$_SERVER[“SERVER_NAME”]’ is not defined when running the WordPress crontab (wp-cron.php).
The email I received from crontab (every 15min): PHP Warning: Undefined array key “SERVER_NAME” in /***/wp-content/plugins/very-simple-contact-form/vscf.php on line 140