PHP Parse error in wpcf7cf-options.php on line 291
-
Hello,
in my WP installation I have disabled WP_CRON. Instead I have set up the following command with my provider:
php -f ~/html/<SERVER>/htdocs/wp-cron.phpSo every 5 minutes I receive emails with the following error:
PHP Parse error: syntax error, unexpected ‘?’ in /data/web/xxxxxx/html/<SERVER>/htdocs/wp-content/plugins/cf7-conditional-fields/wpcf7cf-options.php on line 291I looked at line 291 in the wpcf7cf-options.php file, but I don’t know about PHP.
This is the corresponding section of this file:
289 add_action( ‘wp_ajax_wpcf7cf_dismiss_notice’, ‘wpcf7cf_dismiss_notice’ );
290 function wpcf7cf_dismiss_notice() {
291 $notice_id = sanitize_text_field($_POST[‘noticeId’] ?? ”);
292 $notice_suffix = $notice_id ? ‘_’.$notice_id : $notice_id;
293
294 $settings = wpcf7cf_get_settings();
295 $settings[‘notice_dismissed’.$notice_suffix] = true;
296 wpcf7cf_set_options($settings);
297 }The parse error only occurs with Conditional Fields for Contact Form 7 (my version 2.1). If I disable the plugin there is no parse error at all.
Can anyone help me with this?
- The topic ‘PHP Parse error in wpcf7cf-options.php on line 291’ is closed to new replies.