Questions tagged [mbstring]
MultiByte String in PHP
193
questions
1
vote
0
answers
34
views
Call to undefined function mb_detect_encoding on Ubuntu
Is there anybody who can give me a clue?
I'm using php on ubuntu. What bothers me is the error Call to undefined function mb_detect_encoding() although I've installed mbstring and gd packages and ...
0
votes
0
answers
37
views
phpMyAdmin-php81-4.9.10 got error Call to undefined function Symfony\Polyfill\Mbstring\iconv_strpos()
when running phpMyAdmin-php81-4.9.10, got the following error
I have php8.1 with extension installed.
Fatal error: Uncaught Error: Call to undefined function Symfony\Polyfill\Mbstring\iconv_strpos() ...
0
votes
0
answers
40
views
Enable mbstring library for PHP Windows installation
Using php 8.20 X86 Win32 VS16 not thread safe
In PHP.ini I have
extension=mbstring
(i.e. uncommented ";" in front)
and
extension_dir = "D:\webserve\php8X86Win32VS16NTS\ext"
In ...
2
votes
0
answers
128
views
php spark serve Uncaught Error: Call to undefined function CodeIgniter\CLI\mb_strpos()
I'm new to PHP and trying to open the CodeIgniter 4 welcome page by using localhost (I don't have any server programs like XAMPP since it's a company computer and PHP works fine with its built-in ...
1
vote
1
answer
27
views
mb_ereg_search_regs different behaviour with b option switching from php 7.4.7 to php 7.4.8
I have code like this:
$sTestString = "BEGIN:VEVENT";
$sPattern = '^(BEGIN|END)\:(.+)$';
$sRegex_opt = 'mib';
mb_ereg_search_init( $sTestString );
print_r(mb_ereg_search_regs( $sPattern, $...
1
vote
0
answers
61
views
sudo phpenmod mbstring doesn't work, /etc/php/8.1/mods-available is empty. Ubuntu-22.04
ubuntu@ubuntu:/etc/apache2/conf-enabled$ sudo phpenmod mbstring
WARNING: Module mbstring ini file doesn't exist under /etc/php/8.1/mods-available
WARNING: Module mbstring ini file doesn't exist under /...
0
votes
0
answers
14
views
How to fix an error in a php that uses mbstring? [duplicate]
I am reviewing a web page running multiple php on a machine with Linux Debian.
Specifically, one of the php contains this code:
$methods = get_class_methods ( $class );
// Makes the content of $...
0
votes
0
answers
26
views
Cyrilic small letter short i encoded by 2 chars
In php >=7.2 Russian symbol "й" (Cyrillic Small Letter Short I) encoding by 2 chars -
"и" (Cyrilic Small Letter I) + ̆ (Combining Breve). Because of this, my substring search ...
1
vote
2
answers
256
views
Why does PHP mb_convert_case() and mb_strtoupper() convert µ (U+00B5 MICRO SIGN) to "Μ"?
I'm trying to write my own mb_ucwords() function to proivde a quick wrapper of mb_convert_case so that it would work with multibyte strings since the base ucwords() function does not.
I have ran into ...
0
votes
2
answers
2k
views
PHP Startup: Unable to load dynamic library 'intl' (tried: /opt/homebrew/lib/php/pecl/20190902/intl
I am setting the environment for the use of CodeIgniter4.
I want to use "extension=intl" or "extension=mbstring" in php.ini
php.ini
extension=intl
;extension=imap
;extension=ldap
...
0
votes
0
answers
534
views
Installing php5.6-mbstring on Ubuntu 16.04
Before the question, I am running on Ubuntu 16.04. Upgrading is not an immediate option. I have installed php5.6 following the instructions in this article:
https://www.liquidweb.com/kb/install-...
0
votes
5
answers
2k
views
Laravel 8 error vendor/symfony/polyfill-mbstring/Mbstring.php
i want to ask about the problem i'm having. I'm using 2 desktops i.e. ubuntu and mint, when I run my code on ubuntu it runs smoothly. but if i run on mint desktop i have an error that says "...
0
votes
1
answer
436
views
PHP version upgrade from 5.6 to 7.4 causing issue for mbstring.func_overload = 6
I am upgrading the PHP version from 5.6 to 7.4 and it is causing an error related to the php.ini setting:
mbstring.func_overload = 6
The error is:
PHP Deprecated: The mbstring.func_overload directive ...
1
vote
2
answers
178
views
mb_strlen() counts new lines twice - difference to .length() in JavaScript
I have this issue since we try to count the characters in a textarea field by JavaScript and to validate the character count with PHP. The problem appears when in the textarea a text is filled in with ...
1
vote
3
answers
7k
views
Ubuntu 20.04, PHP 7.4: mbstring installed but not enabled
I'm running Ubuntu 20.04, and using PHP 7.4.
During a phpBB installation, it was reported "In order for phpBB to function correctly, the PHP mbstring extension needs to be available." I was ...
1
vote
0
answers
518
views
PHP extension mbstring is missing from your system [duplicate]
I am getting this error.
laravel/framework v5.4.9 requires ext-mbstring * -> the requested PHP extension mbstring is
missing from your system.
So I followed this: https://stackoverflow.com/a/...
0
votes
1
answer
709
views
"Call to undefined function Mpdf\mb_regex_encoding()" while mbstring is enabled
I have mbstring enabled in php.ini ("php -m" in CMD shows mbstring in the list), but I'm still getting this error.
Requirements page for mPDF says that it should include mbregex as well. I ...
0
votes
1
answer
179
views
PHP mbstring doesn't work, but I set everything
I set in the php.ini file the mbstring, php_mbstring.dll is on its place, but php can't load the mudule. I tried everything, what I found on stackoverflow, or anywhere else, but nothing.
-php ...
0
votes
0
answers
181
views
Add mbstring to php7.0 but not to php7.2
On my server there is an error message with phpmyadmin:
phpMyAdmin - Error The mbstring extension is missing. Please check your PHP configuration.
there are two versions of php7:
cli : Path => /...
2
votes
1
answer
5k
views
Dependency error when install php-mbstring module on RedHat 7.9 and php 7.2
On centos (7.6), I've a script to deploy a set of php dependencies with yum tools and remi-repo.
I need to migrate this installation set on a redhat (7.9). On this distribution, I've this issue during ...
0
votes
1
answer
509
views
PHP Startup: Unable to load dynamic library 'mbstring.so' on heroku push [closed]
I'm trying to push my git php project (symfony) using heroku but this error appends each time.
enter image description here
In the documentation, it's written that this extension sould be ...
0
votes
1
answer
404
views
How can I install extensions in PHP 7.4 (xampp 3.2.2)?
I want mbstring and fileinfo. There's no default php.ini file.
(And yes, I do have access to the \php\ext directory.)
2
votes
1
answer
351
views
Why do I get Error: Missing one or more required components of PHP that MediaWiki needs (mbstring)?
I have mediawiki on my local machine. I have php and php-mbstring installed. When I run phpinfo(), mbstring shows up. I have checked that I have mbstring.ini and mbstring.so, and they are on my ...
0
votes
2
answers
68
views
PHP function to adapt texte not working with special characters?
i'm struggling with a function that adapts a text depending of the first letter of a string.
$str = "élo";
function deD($str) {
return (in_array(...
-1
votes
2
answers
892
views
Can't run composer update missing mbstring
I am trying to configure Linux Ubuntu 20.04 server to run laravel, and i have nginx, mysql php7.4-fpm installed, i cloned my project from gitlab and now i want to run composer update, but it always ...
0
votes
2
answers
1k
views
Phpmyadmin showing mbstring is missing
I have using PHP 7.2 version,and modules list is given below:
php -m
[PHP Modules]
bz2
Core
ctype
curl
date
dom
exif
fileinfo
filter
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mcrypt
openssl
...
0
votes
1
answer
394
views
Failed to commit to a server, issue with mbstring php
For some reason my application won't build on my server when I make a commit.
There have been no impactful updates on the server, anyone has an idea what this could be? The mbstring.so file is in the ...
-1
votes
1
answer
363
views
php first word only from mb string
I used preg_match but its returning pdf as it English that's why may be.
But I want to get only 練馬春日町Ⅳ
Is there any way to detect it for mb string.
<?php
// Initialize a sentence to a variable
...
8
votes
2
answers
2k
views
What is the purpose of the MB_CASE_*_SIMPLE constants?
According to the manual, the following constants have been added in PHP 7.3:
MB_CASE_FOLD
MB_CASE_LOWER_SIMPLE
MB_CASE_UPPER_SIMPLE
MB_CASE_TITLE_SIMPLE
MB_CASE_FOLD_SIMPLE
I found an example of ...
3
votes
1
answer
503
views
mbstring Ubuntu 14.04 dependency package conflict
I am trying to install PHP mbstring module in my Ubuntu 14.04 machine. I've used "sudo apt-get -f install php7.0-mbstring" to install the module. I've added necessary source list in "/etc/apt/sources....
0
votes
1
answer
1k
views
Cannot enable mb_string in PHP
I need to use mb_strlen to sort an array of words with diacritics, but PHP does not recognize this function, although mb_string is installed.
So, if I say
function sortByStrlen($a, $b)
{
if (...
0
votes
1
answer
89
views
Laravel 5 webapp not working becasuse of mbstring
I migrated a Laravel 5 webapp from one server to new server. This webapp is working with nginx and php-fpm. I installed php by downloading php tar file and compiling.
When I do curl http://127.0.0.1:...
0
votes
1
answer
235
views
is errno STRUNCATE specific to windowsOS looking for its equivalent in linux/mac. using it in implementation of mbstowcs_s()
Is errno STRUNCATE specific to windows OS? looking for its equivalent in mac/linux.
implementing mbstowcs_s() for mac/linux, following https://learn.microsoft.com/en-us/cpp/c-runtime-library/...
0
votes
1
answer
965
views
php-mbstring won't install on CentOS 7 and PHP 7.1.21
Need to get php-mbstring installed on a CentOS 7 server running PHP 7.1.21. I have spent hours trying every possible solution I could find. Looks like there is a conflict when trying to install with ...
2
votes
2
answers
3k
views
Symfony 4.1 PHP 7.2.10 Notice: iconv(): Wrong charset, conversion from `UTF-8' to `UTF-16BE' is not allowed
Ok, so I have searched other questions without success.
I am getting this error on a virtual box, which I cannot alter in any way.
MBString is enabled
IconV is enabled
An exception has been thrown ...
0
votes
1
answer
2k
views
Enabling mbstring extension in PHP: undefined symbol: compiler_globals in Unknown on line 0
I have PHP 7.1.9 (compiled from source) and mbstring: php7.1-mbstring is already the newest version (7.1.17-0ubuntu0.17.10.1). I have added extension_dir and extension=mbstring.so in php.ini. I get ...
0
votes
0
answers
2k
views
PHP mb_substr() call to undefined function
I have hosted my zend apigility code in aws server, And i have getting mb_substr() function undefined error when basic password authentication. i have using php 7.0.30 and ubuntu 16.4. And error ...
0
votes
0
answers
761
views
Installed PHP mbstring but not recognized
I'm on Centos 7 running PHP 5.4. My webserver is Nginx.
The error log in my nginx says:
2018/08/30 04:07:18 [error] 12342#0: *403 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ...
5
votes
3
answers
4k
views
Can't get mbstring to work on Amazon linux 2 AMI
I run on Amazon linux 2 AMI, With PHP 7.2.5 and apache
The probleme is: Call to undefined function mb_convert_encoding
The initial need is to be able to read an uploaded text file correctly and have ...
1
vote
1
answer
450
views
Installed mbstring on php 7.1 but phpinfo says it's not installed - CentOS 7
I've installed php-mbstring on Centos 7 with: yum install php-mbstring and everything seemed to go well please see screenshot below.
I then went to view the phpinfo() output and searched for "...
3
votes
0
answers
1k
views
Compile mbstring statically into PHP
Is there a way to compile the PHP extension mbstring statically into PHP (PHP >= 7)? Something like ./configure [...] --enable-mbstring=static [...] && make?
7
votes
2
answers
24k
views
PHP 7.2 and modules 'dom', 'mbstring', and 'simplexml'
I installed PHP 7.2 on my server and everything works fine except these three issues:
I face these problems:
The PHP extension dom is not loaded. Please contact your server
administrator or ...
0
votes
0
answers
151
views
Required FILEINFO PHP Extension, JSON PHP Extension, PDO PHP Extension, MBSTRING PHP Extension
I installed a PHP Script on my domain, after testing it, I think the next one is better then this script. so that instead of uninstall method, i select the script folders from my root/home directory ...
1
vote
0
answers
723
views
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/gd2'
I recently bought a new Macbook pro with php 7.1 installed and everything was working fine since I tried to upgrade php to 7.2 using homebrew. When I try to show my version of php with php -v, and it ...
-1
votes
1
answer
10k
views
How to install php7.0-mbstring in Ubuntu 16.04 LTS
Hi i want to know how to install mbstring in ubuntu i m not expert in linux, so i search but i can't find the answer, the cmd line
1 - php -m
don't show the package. also
the cmds line
2- sudo ...
1
vote
2
answers
5k
views
Decode string into cyrillic symbols in PHP
I have string like this:
Óâàæàåìûé êëèåíò!
And want to decode it into cyrillic symbols. I'm already try to decode by mb_convert_encoding, but don't get the proper result.
$string = 'Óâàæàåìûé ...
6
votes
5
answers
16k
views
Composer Install - requires ext-mbstring
I am trying to do a composer install ..., but getting an error of requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. I am using Apache (Cpanel) and PHP 5.6....
0
votes
1
answer
1k
views
Settings of php.ini seem to be overwritten using xampp
I want to load some extensions, but my changes in the php.ini file do not have any effect. I have xampp installed on Windows and set extension_dir in php.ini to "C:\xampp\php\ext", which is where ...
1
vote
1
answer
710
views
Composer can not install dependencies
I have a FuelPhp project and i am trying to install dependencies via composer.
When i ran composer install on command line, i get following error;
The requested PHP extension ext-mbstring ^0.0.0 ...
0
votes
1
answer
2k
views
Error : The mbstring extension is missing from
Whenever I try to enter my phpMyAdmin, it gives me this error:
The mbstring extension is missing. Please check your PHP configuration.
I have already searched the solution and add extension=...