Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Received the following error when creating a new biblio node. Node was not created. Error is repeatable. "Preview" mode works, "Save" causes the error.
Fatal error: Call to undefined function mb_regex_encoding() in /var/www/mnopedia/sites/all/modules/biblio/includes/biblio.util.inc on line 15
Comments
Comment #1
rjerome CreditAttribution: rjerome commentedThat function requires Multibyte String to be enabled on your server. On Linux machines, it's usually a separate php-mbstring... package. Given that Drupal works with UTF-8 strings exclusively, mbstring is a good one to have enabled.
Ron.
Comment #2
rjerome CreditAttribution: rjerome commentedBy the way, I should have mentioned that if mbstring is a problem, I can (and probably will anyway) create an alternative path if mbstring is not installed.
Ron.
Comment #3
rjerome CreditAttribution: rjerome commentedI've added an check for the existence of mbstring and if it doesn't exist, I use an alternative.
http://drupalcode.org/project/biblio.git/commit/655181e