Thread Starter
cosmax
(@cosmax)
Hi Bastian,
here below the content of debug.log (I think there is no way to add an attachment)
Thanks for suggestion about CFDB, I will check
[26-Jul-2021 19:39:42 UTC] PHP Notice: Undefined index: wp_db_temp_dir in /home/axdtqlml/public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php on line 112
[26-Jul-2021 19:39:42 UTC] PHP Deprecated: register_sidebar_widget is <strong>deprecated</strong> since version 2.8.0! Use wp_register_sidebar_widget() instead. in /home/axdtqlml/public_html/wp-includes/functions.php on line 5083
[26-Jul-2021 19:39:53 UTC] PHP Notice: Undefined index: wp_db_temp_dir in /home/axdtqlml/public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php on line 112
[26-Jul-2021 19:39:53 UTC] PHP Deprecated: register_sidebar_widget is <strong>deprecated</strong> since version 2.8.0! Use wp_register_sidebar_widget() instead. in /home/axdtqlml/public_html/wp-includes/functions.php on line 5083
[26-Jul-2021 19:40:02 UTC] PHP Notice: Undefined index: wp_db_temp_dir in /home/axdtqlml/public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php on line 112
[26-Jul-2021 19:40:02 UTC] PHP Deprecated: register_sidebar_widget is <strong>deprecated</strong> since version 2.8.0! Use wp_register_sidebar_widget() instead. in /home/axdtqlml/public_html/wp-includes/functions.php on line 5083
[26-Jul-2021 19:40:14 UTC] PHP Notice: Undefined index: wp_db_temp_dir in /home/axdtqlml/public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php on line 112
[26-Jul-2021 19:40:14 UTC] PHP Deprecated: register_sidebar_widget is <strong>deprecated</strong> since version 2.8.0! Use wp_register_sidebar_widget() instead. in /home/axdtqlml/public_html/wp-includes/functions.php on line 5083
[26-Jul-2021 19:40:18 UTC] PHP Notice: Undefined index: wp_db_temp_dir in /home/axdtqlml/public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php on line 112
[26-Jul-2021 19:40:18 UTC] PHP Deprecated: register_sidebar_widget is <strong>deprecated</strong> since version 2.8.0! Use wp_register_sidebar_widget() instead. in /home/axdtqlml/public_html/wp-includes/functions.php on line 5083
[26-Jul-2021 19:40:18 UTC] PHP Notice: Undefined offset: 1 in /home/axdtqlml/public_html/wp-content/plugins/cforms2/lib_validate.php on line 613
[26-Jul-2021 19:40:18 UTC] PHP Fatal error: Uncaught Error: Cannot access protected property PHPMailer\PHPMailer\PHPMailer::$LE in /home/axdtqlml/public_html/wp-content/plugins/cforms2/lib_email.php:228
Stack trace:
#0 /home/axdtqlml/public_html/wp-includes/class-wp-hook.php(303): cforms2_mail->phpmailer_init(Object(PHPMailer\PHPMailer\PHPMailer))
#1 /home/axdtqlml/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
#2 /home/axdtqlml/public_html/wp-includes/plugin.php(518): WP_Hook->do_action(Array)
#3 /home/axdtqlml/public_html/wp-includes/pluggable.php(538): do_action_ref_array('phpmailer_init', Array)
#4 /home/axdtqlml/public_html/wp-content/plugins/cforms2/lib_email.php(216): wp_mail(Array, 'Iscrizione Cosp...', '<!DOCTYPE html ...', Array, Array)
#5 /home/axdtqlml/public_html/wp-content/plugins/cforms2/lib_validate.php(916): cforms2_mail->send()
#6 /home/axdtqlml/public_html/wp-content/plugins/cforms2/cforms.php(197): require_once('/home/axdtqlml/...')
#7 /home/axdtqlml/public_html/wp-content/plugins/cforms2/cforms.ph in /home/axdtqlml/public_html/wp-content/plugins/cforms2/lib_email.php on line 228
[26-Jul-2021 19:40:19 UTC] PHP Notice: Undefined index: wp_db_temp_dir in /home/axdtqlml/public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php on line 112
[26-Jul-2021 19:40:19 UTC] PHP Deprecated: register_sidebar_widget is <strong>deprecated</strong> since version 2.8.0! Use wp_register_sidebar_widget() instead. in /home/axdtqlml/public_html/wp-includes/functions.php on line 5083
[26-Jul-2021 19:40:25 UTC] PHP Notice: Undefined index: wp_db_temp_dir in /home/axdtqlml/public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php on line 112
[26-Jul-2021 19:40:25 UTC] PHP Deprecated: register_sidebar_widget is <strong>deprecated</strong> since version 2.8.0! Use wp_register_sidebar_widget() instead. in /home/axdtqlml/public_html/wp-includes/functions.php on line 5083
[26-Jul-2021 19:40:30 UTC] PHP Notice: Undefined index: wp_db_temp_dir in /home/axdtqlml/public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php on line 112
[26-Jul-2021 19:40:30 UTC] PHP Deprecated: register_sidebar_widget is <strong>deprecated</strong> since version 2.8.0! Use wp_register_sidebar_widget() instead. in /home/axdtqlml/public_html/wp-includes/functions.php on line 5083
[26-Jul-2021 19:40:36 UTC] PHP Notice: Undefined index: wp_db_temp_dir in /home/axdtqlml/public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php on line 112
[26-Jul-2021 19:40:36 UTC] PHP Deprecated: register_sidebar_widget is <strong>deprecated</strong> since version 2.8.0! Use wp_register_sidebar_widget() instead. in /home/axdtqlml/public_html/wp-includes/functions.php on line 5083
[26-Jul-2021 19:40:43 UTC] PHP Notice: Undefined index: wp_db_temp_dir in /home/axdtqlml/public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php on line 112
[26-Jul-2021 19:40:43 UTC] PHP Deprecated: register_sidebar_widget is <strong>deprecated</strong> since version 2.8.0! Use wp_register_sidebar_widget() instead. in /home/axdtqlml/public_html/wp-includes/functions.php on line 5083
[26-Jul-2021 19:40:49 UTC] PHP Notice: Undefined index: wp_db_temp_dir in /home/axdtqlml/public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php on line 112
[26-Jul-2021 19:40:49 UTC] PHP Deprecated: register_sidebar_widget is <strong>deprecated</strong> since version 2.8.0! Use wp_register_sidebar_widget() instead. in /home/axdtqlml/public_html/wp-includes/functions.php on line 5083
Okay, I have included a fix for that in 14.12.4 as well, please download again.
Thread Starter
cosmax
(@cosmax)
Hey Bastian,
you fixed it!
Thanks so much for your support and dedication… it impressed me!
Thanks again!
Massimo
I was after the same issue and I found a clue, I hope this helps:
The issue is caused due a problem with PHP version (7.x) which uses a new regular expression engine, affecting the validation email regular expression and firing an error.
The solution is updating the regular expression on lib_email.php
The new regular expression should be:
‘/([\w\-\+\.]+@([\w\-]+\.)+[\w\-]{2,63})/’;
where the ‘+’ is slashed.
You can read more about this error on:
https://stackoverflow.com/questions/24764212/preg-match-compilation-failed-invalid-range-in-character-class-at-offset
This error is visible with WP_DEBUG=true
Notice this error only happen with this very specific regular expression, I scanned the plugin but there weren’t no errors related with any other regular expression.
Even though I suggest someone else check all the reg. expressions, this issue would affect this and many other plugins.