This is the error and doesn’t run
I have another site with PHP 7.4 and I haven’t problem
Se cerchi aiuto per questo problema, ti potrebbero essere chieste alcune delle seguenti informazioni: Versione di WordPress 6.4.2 Tema attivo: Martfury Child (versione 1.0) Plugin corrente: WP Advanced Math Captcha (versione 1.2.20) Versione PHP 8.0.30 Dettagli dell’errore ==================== Un errore di E_ERROR è stato causato nella linea 283 del file /web/htdocs/www.automazione-cancelli.net/home/wp-content/plugins/wp-advanced-math-captcha/includes/class-settings.php. Messaggio di errore: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /web/htdocs/www.automazione-cancelli.net/home/wp-content/plugins/wp-advanced-math-captcha/includes/class-settings.php:283 Stack trace: #0 /web/htdocs/www.automazione-cancelli.net/home/wp-content/plugins/wp-advanced-math-captcha/includes/class-settings.php(283): implode() #1 /web/htdocs/www.automazione-cancelli.net/home/wp-admin/includes/template.php(1836): Math_Captcha_Settings->mc_general_ip_rules() #2 /web/htdocs/www.automazione-cancelli.net/home/wp-admin/includes/template.php(1790): do_settings_fields() #3 /web/htdocs/www.automazione-cancelli.net/home/wp-content/plugins/wp-advanced-math-captcha/includes/class-settings.php(146): do_settings_sections() #4 /web/htdocs/www.automazione-cancelli.net/home/wp-includes/class-wp-hook.php(324): Math_Captcha_Settings->options_page() #5 /web/htdocs/www.automazione-cancelli.net/home/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #6 /web/htdocs/www.automazione-cancelli.net/home/wp-includes/plugin.php(517): WP_Hook->do_action() #7 /web/htdocs/www.automazione-cancelli.net/home/wp-admin/admin.php(259): do_action() #8 /web/htdocs/www.automazione-cancelli.net/home/wp-admin/options-general.php(10): require_once(‘…’) #9 {main} thrown
]]>Hi,
I have this problem on several sites :
WordPress version 6.3.2
Thème actif : Virtue Child (version 0.1.0) Extension actuelle : WP Advanced Math Captcha (version 1.2.20) PHP version 8.2.10
Détails de l’erreur
======================
Une erreur de type E_ERROR a été causée dans la ligne 283 du fichier /home/suncvft/test/wp-content/plugins/wp-advanced-math-captcha/includes/class-settings.php. Message d’erreur : Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /home/suncvft/test/wp-content/plugins/wp-advanced-math-captcha/includes/class-settings.php:283
Stack trace:
#0 /home/suncvft/test/wp-content/plugins/wp-advanced-math-captcha/includes/class-settings.php(283): implode('\n', '')
#1 /home/suncvft/test/wp-admin/includes/template.php(1824): Math_Captcha_Settings->mc_general_ip_rules(Array)
#2 /home/suncvft/test/wp-admin/includes/template.php(1778): do_settings_fields('math_captcha_op...', 'math_captcha_se...')
#3 /home/suncvft/test/wp-content/plugins/wp-advanced-math-captcha/includes/class-settings.php(146): do_settings_sections('math_captcha_op...')
#4 /home/suncvft/test/wp-includes/class-wp-hook.php(310): Math_Captcha_Settings->options_page('')
#5 /home/suncvft/test/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array)
#6 /home/suncvft/test/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /home/suncvft/test/wp-admin/admin.php(259): do_action('settings_page_m...')
#8 /home/suncvft/test/wp-admin/options-general.php(10): require_once('/home/suncvft/t...')
#9 {main}
thrown
Regards,
Michel
]]>Got a php error today on several pages:
Ein Fehler vom Typ E_ERROR wurde in der Zeile 283 der Datei */wp-content/plugins/wp-advanced-math-captcha/includes/class-settings.php verursacht. Fehlermeldung: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in */wp-content/plugins/wp-advanced-math-captcha/includes/class-settings.php:283
hope there is a fix. love the simple way how the plugin works.
]]>Where can I find or how can I create/contribute Czech translation of the plugin? The standard translation page says the plugin is not?properly prepared for localization and I should contact the author, but the link to contact the author leads back to this support forum.
]]>I have installed the plugin to the magazin.mensa.cz website, which is using the Soledad theme and Czech language. Captcha works fine in password reset form but does not appear in the contact form. Did I do something wrong, or is is a bug in the plugin? Would adding a Czech language to the plugin help? I am willing to help creating the Czech translation.
]]>The plugin does not work (no captcha form shown) for multisite signup pages, e.g:
example.com/wp-signup.php
This page is always redirected to when trying to signup with regular page (which is well supported by the plugin):
example.com/wp-login.php?action=register
The code that causes this issue located in includes/class-core.php:
if ( Math_Captcha()->options['general']['enable_for']['registration_form'] && ( ! is_user_logged_in() || (is_user_logged_in() && ! Math_Captcha()->options['general']['hide_for_logged_users'])) && $action === 'register' )
{
// Check IP rules
if (Math_Captcha()->options['general']['ip_rules'])
{
$geo = new MathCaptcha_GEO();
if ($geo->checkIP_in_List(false, Math_Captcha()->options['general']['ip_rules_list'])) return; // Dont show captcha
}
// Check GEO rules
if (Math_Captcha()->options['general']['geo_captcha_rules'])
{
$geo = new MathCaptcha_GEO();
if (isset(Math_Captcha()->options['general']['hide_for_countries'][ $geo->getCountryByIP(false) ])) return; // Dont show captcha
}
add_action( 'register_form', array( $this, 'add_captcha_form' ) );
add_action( 'register_post', array( $this, 'add_user_with_captcha' ), 10, 3 );
add_action( 'signup_extra_fields', array( $this, 'add_captcha_form' ) );
add_filter( 'wpmu_validate_user_signup', array( $this, 'validate_user_with_captcha' ) );
}
It appears that wp-signup.php does not use $action === ‘register’
]]>Hi, I use your plugin on 2 or 3 sites, recently the websites have many issues and the errors that appear in the logs are related to math captcha. It’s like hundreds or thousands of times per day. I don’t want to change to other plugins because I like your plugin best, but if you’re not going to fix these, I might just find something else. Please at least tell me if you’re going to fix these, or if there is any workaround.
These are the warnings on the first website:
[08-Jan-2023 16:13:19 UTC] PHP Warning: The magic method Math_Captcha::__wakeup() must have public visibility in /home2/sitename/public_html/wp-content/plugins/wp-advanced-math-captcha/wp-math-captcha.php on line 86
[08-Jan-2023 16:13:25 UTC] PHP Warning: Cannot modify header information – headers already sent in /home2/sitename/public_html/wp-content/plugins/wp-advanced-math-captcha/includes/class-cookie-session.php on line 46
[08-Jan-2023 16:13:25 UTC] PHP Warning: Cannot modify header information – headers already sent in /home2/sitename/public_html/wp-content/plugins/wp-advanced-math-captcha/includes/class-cookie-session.php on line 49
The second website has the same warning, it’s like flooding the server with thousands of these warnings everyday:
[10-Jan-2023 19:23:14 UTC] PHP Warning: Cannot modify header information – headers already sent in /home/anothersite/public_html/wp-content/plugins/wp-advanced-math-captcha/includes/class-cookie-session.php on line 46
[10-Jan-2023 19:23:14 UTC] PHP Warning: Cannot modify header information – headers already sent in /home/anothersite/public_html/wp-content/plugins/wp-advanced-math-captcha/includes/class-cookie-session.php on line 49
Thank you!
Regards
Hello,
during the installation of the plugin I noticed that a file called siteguarding_tools.php is installed in the root directory. This is not deleted after the uninstallation again.
What is this file for?
Short question. Is Math Captcha GDPR compliant?
]]>There is an PHP error in plugins/wp-advanced-math-captcha/includes/class-core.php on Line 775
Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null
which orrurs when Math_Captcha()->cookie_session->session_ids['multi']
is empty.
I locally fixed it by checking the array first:
if(is_array(Math_Captcha()->cookie_session->session_ids['multi'])){
…
}
]]>
Hello, thank you for this plugin.
Is it possible to delete the Capcha Logs in the admin bar? Thanks
With WP Debug i found this:
Notice: Undefined index: ip_rules in /var/www/vhosts/xxx/httpdocs/wp-content/plugins/wp-advanced-math-captcha/includes/class-core.php on line 80
Notice: Undefined index: geo_captcha_rules in /var/www/vhosts/xxx/httpdocs/wp-content/plugins/wp-advanced-math-captcha/includes/class-core.php on line 86
I guess there is an update needed?
]]>Hello,
Please can you add support for buddypress registration page
Thanks
]]>Get this message:
Warning: The magic method Math_Captcha::__wakeup() must have public visibility in /homepages/30/d38654804/htdocs/wp-content/plugins/wp-advanced-math-captcha/wp-math-captcha.php on line 86
if plugin is active, login doesn’t work.
Only disable plugin helps ??
WP 5.8.1 / PHP 8.0
Hi there,
i see in Debug-Mode this following Message, please indicate what to do, to make sure that this message will dissapear.
Notice: Undefined index: ip_rules in XXX/wp-content/plugins/wp-advanced-math-captcha/includes/class-core.php on line 80
Notice: Undefined index: geo_captcha_rules in XXX/wp-content/plugins/wp-advanced-math-captcha/includes/class-core.php on line 86
]]>
If “IP tools” are activated in the backend, the site only shows a number of php errors.
]]>Hi! In the backend the plugin creates this error-message:
implode(): Invalid arguments passed in /plugins/wp-advanced-math-captcha/includes/class-settings.php on line 283
Any idea why?
]]>The problem is simple.. No matter when i comment, it says Captcha time expired, even after commenting in 10 seconds…
]]>I have checked the checkbox for contact form 7 in the plugins admin.
But it still doesnt appear in my form.
Am I missing something?
Hi,
I think I have found an error in the plugin.
When I use it in the products reviews, it always return error “Please enter captcha value”.
I have fixed it, in the /includes/class-core.php file, line 294 (function add_comment_with_captcha) adding || $comment[‘comment_type’] === ‘review’
Hope you can add it in the next update.
Regards.
]]>Hi there, i have translatet this PI into German.
]]>The hard-coded constants 10, 89 and 9 in the following code are way too hight and should be lowered, or better, made them as options for the user to set.
case 'addition':
if ( $rnd_input === 0 ) {
$number[0] = mt_rand( 1, 10 );
$number[1] = mt_rand( 1, 89 );
} elseif ( $rnd_input === 1 ) {
$number[0] = mt_rand( 1, 89 );
$number[1] = mt_rand( 1, 10 );
} elseif ( $rnd_input === 2 ) {
$number[0] = mt_rand( 1, 9 );
$number[1] = mt_rand( 1, 10 - $number[0] );
}
$number[2] = $number[0] + $number[1];
break;
As in
case 'addition':
if ( $rnd_input === 0 ) {
$number[0] = mt_rand( 1, 5 );
$number[1] = mt_rand( 1, 5 );
} elseif ( $rnd_input === 1 ) {
$number[0] = mt_rand( 1, 5 );
$number[1] = mt_rand( 1, 5 );
} elseif ( $rnd_input === 2 ) {
$number[0] = mt_rand( 1, 4 );
$number[1] = mt_rand( 1, 8 - $number[0] );
}
$number[2] = $number[0] + $number[1];
break;
Thank you.
]]>