It has been quite a long time since I worked the last time with a Wordpress CMS but for a new project I'm currently building a web shop using Wordpress. This web shop will run with multiple languages, therefore the Wordpress Multi Lang Language (WPML) plugin was installed.
When I recently updated another plugin, I noticed that pages wouldn't be saved anymore once I edited them. Actually, the changes were saved, but the flashing "saving" text and "updating" button never went away and just kept flashing.
I followed the PHP error log and found the following entry appearing, whenever I tried to save a page:
[Sat Aug 17 16:08:51.368644 2019] [php7:error] [pid 3901] [client 192.168.15.150:50446] PHP Fatal error: Uncaught Error: Call to undefined function WPML\\PB\\Gutenberg\\StringsInBlock\\DOMHandler\\mb_convert_encoding() in /var/www/wordpress/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-gutenberg/src/strings-in-block/dom-handler/dom-handle.php:31\nStack trace:\n#0 /var/www/wordpress/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-gutenberg/src/strings-in-block/dom-handler/dom-handle.php(18): WPML\\PB\\Gutenberg\\StringsInBlock\\DOMHandler\\DOMHandle->getDom('\\n<p>At scoby&am...')\n#1 /var/www/wordpress/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-gutenberg/src/strings-in-block/class-html.php(24): WPML\\PB\\Gutenberg\\StringsInBlock\\DOMHandler\\DOMHandle->getDomxpath('\\n<p>At scoby&am...')\n#2 /var/www/wordpress/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-gutenberg/src/strings-in-block/class-collection.php(26): WPML\\PB\\Gutenberg\\StringsInBlock\\HTML->find(Object(WP_Block_Parser_Block))\n#3 /var/www/wordpress/wp-content/plugins/sit in /var/www/wordpress/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-gutenberg/src/strings-in-block/dom-handler/dom-handle.php on line 31, referer: https://wordpress.example.com/wp-admin/post.php?post=432&action=edit&lang=de
Some quick research on the WPML support forums always pointed to try and disable other plugins, but by looking at the error message more closely, something caught my eye:
Call to undefined function [...] mb_convert_encoding()
Hmm... that does pretty much sound like an mbstring function. But is the mbstring extension actually installed on that server? No, it was not! Let's do this, followed by an Apache2 reload:
root@debian:~# apt-get install php7.3-mbstring
root@debian:~# systemctl reload apache2
And voilĂ . Updates on pages now worked fine, no error messages anymore.
No comments yet.
AWS Android Ansible Apache Apple Atlassian BSD Backup Bash Bluecoat CMS Chef Cloud Coding Consul Containers CouchDB DB DNS Database Databases Docker ELK Elasticsearch Filebeat FreeBSD Galera Git GlusterFS Grafana Graphics HAProxy HTML Hacks Hardware Icinga Influx Internet Java KVM Kibana Kodi Kubernetes LVM LXC Linux Logstash Mac Macintosh Mail MariaDB Minio MongoDB Monitoring Multimedia MySQL NFS Nagios Network Nginx OSSEC OTRS Office PGSQL PHP Perl Personal PostgreSQL Postgres PowerDNS Proxmox Proxy Python Rancher Rant Redis Roundcube SSL Samba Seafile Security Shell SmartOS Solaris Surveillance Systemd TLS Tomcat Ubuntu Unix VMWare VMware Varnish Virtualization Windows Wireless Wordpress Wyse ZFS Zoneminder