Error saving settings
-
Hi..
I’m using WP 5.7.1, PHP 8
I installed Travelers Map plugin, but if I want to modify the settings, I get an “error” when I press the “Save Changes” button.Even without modify anything, I get this error once “Save Changes” button is pressed.
Please, could you help me?
-
Solved….
Don’t use PHP 8.0 in your hosting.Thanks.
That’s what I thought when I saw your php version 🙂
Is it a problem you had only with my plugin? Even if php8 is still new I should have a look!Après vérification, il s’agit de la librairie HTMLPurifier que j’utilise dans le plugin pour nettoyer les champs de HTML enregistrés dans la base de donnée qui émet une erreur sur PHP8, je vais voir s’ils ont un correctif !
Woops sorry I answered in french without noticing x)
The error comes from a library (HTMLPurifier) that I use to sanitize fields before saving them to the database.
They have an update for this, so it will be integrated in the next update of Travelers map 🙂v1.12.0 is up in a few minutes, fixing this issue 😉
I installed the v1.12.0 version.
But still have problem saving the setting.
“There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about troubleshooting WordPress.”
However my PHP version is 7.4
Not exactly sure how to troubleshoot on my side.
Dear @leonlim007,
Could you set WP_DEBUG to true, so we can have a meaningful error message?
https://ww.wp.xz.cn/support/article/debugging-in-wordpress/#wp_debugYou can copy paste the error here, and set wp_debug to false again if your website is online 😉
Hi Camille V,
Fatal error: Uncaught Error: Call to undefined function ctype_lower() in /hermes/walnacweb05/walnacweb05aa/b1065/moo.leonlim007/defensepoliticsasia/wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/Token/Tag.php:44 Stack trace: #0 /hermes/walnacweb05/walnacweb05aa/b1065/moo.leonlim007/defensepoliticsasia/wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/TokenFactory.php(48): HTMLPurifier_Token_Tag->__construct('', Array) #1 /hermes/walnacweb05/walnacweb05aa/b1065/moo.leonlim007/defensepoliticsasia/wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/Lexer/DOMLex.php(39): HTMLPurifier_TokenFactory->__construct() #2 /hermes/walnacweb05/walnacweb05aa/b1065/moo.leonlim007/defensepoliticsasia/wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/Lexer.php(117): HTMLPurifier_Lexer_DOMLex->__construct() #3 /hermes/walnacweb05/walnacweb05aa/b1065/moo.leonlim007/defensepoliticsasia/wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/H in /hermes/walnacweb05/walnacweb05aa/b1065/moo.leonlim007/defensepoliticsasia/wp-content/plugins/travelers-map/includes/admin/HTMLPurifier/HTMLPurifier/Token/Tag.php on line 44 Fatal error: Uncaught Error: Call to undefined function PHPMailer\PHPMailer\ctype_alnum() in /hermes/walnacweb05/walnacweb05aa/b1065/moo.leonlim007/defensepoliticsasia/wp-includes/PHPMailer/PHPMailer.php:1797 Stack trace: #0 /hermes/walnacweb05/walnacweb05aa/b1065/moo.leonlim007/defensepoliticsasia/wp-includes/PHPMailer/PHPMailer.php(1876): PHPMailer\PHPMailer\PHPMailer::isShellSafe('[email protected]...') #1 /hermes/walnacweb05/walnacweb05aa/b1065/moo.leonlim007/defensepoliticsasia/wp-includes/PHPMailer/PHPMailer.php(1639): PHPMailer\PHPMailer\PHPMailer->mailSend('Date: Sun, 13 J...', 'Howdy!\n\nSince W...') #2 /hermes/walnacweb05/walnacweb05aa/b1065/moo.leonlim007/defensepoliticsasia/wp-includes/PHPMailer/PHPMailer.php(1470): PHPMailer\PHPMailer\PHPMailer->postSend() #3 /hermes/walnacweb05/walnacweb05aa/b1065/moo.leonlim007/defensepoliticsasia/wp-includes/pluggable.php(531): PHPMailer\PHPMailer\PHPMailer->send() #4 /hermes/walnacweb05/walnacweb05aa/b1065/moo.leonlim007/defensepoliticsasia/wp-includes/class-wp-recovery-mod in /hermes/walnacweb05/walnacweb05aa/b1065/moo.leonlim007/defensepoliticsasia/wp-includes/PHPMailer/PHPMailer.php on line 1797Hope it helps.
-
This reply was modified 4 years, 11 months ago by
leonlim007.
Well, you have a misconfiguration on your server, the PHP extension ctype is disabled.
ctype extension is now built-in PHP, since PHP4.3.0. So something on your server is disabling it.If you are on a local environment, Php install might be corrupted and you might need to reinstall.
If you are hosted from somewhere, you should contact your host provider and ask them why ctype extension is not enabled on your environment.To be honest, I don’t know anything about PHP extension, I just found some ressources on google:
https://www.php.net/manual/en/ctype.installation.php
https://docs.moodle.org/311/en/admin/environment/php_extension/ctype
https://www.drupal.org/project/htmlpurifier/issues/2273413 -
This reply was modified 4 years, 11 months ago by
The topic ‘Error saving settings’ is closed to new replies.