Closed c4tom closed 5 years ago
The function mb_strlen() is not enabled by default in PHP.
If you can use apt just run this (or whatever works for your version):
sudo apt install php7.2-mbstring
Please read the manual for more details: http://www.php.net/manual/en/mbstring.installation.php
maybe it should be added on composer dependencies https://github.com/gabordemooij/redbean/blob/a5c4ff3adf570d26201ecd58d2f2eb929e9965dd/composer.json#L14
Also explained on system requirements page: https://redbeanphp.com/index.php?p=/requirements
Hi, You can also use the command in your project: composer require symfony/polyfill-mbstring if you cannot install the extension
PHP Fatal error: Uncaught Error: Call to undefined function RedBeanPHP\QueryWriter\mb_strlen() in /home/projetos/rb.php:6808
`$remoteAddress = $_SERVER['REMOTE_ADDR']; $geoLocationURL='http://www.geoplugin.net/php.gp?ip=' . $remoteAddress; $geoLocationResult = file_get_contents($geoLocationURL); $listaGeoLocation= unserialize($geoLocationResult);
R::setup('mysql:host=localhost;dbname=geo', 'root',''); $geo = R::dispense('geolocation'); $geo->geoplugin_request = $listaGeoLocation['geoplugin_request']; $geo->dataHora = new DateTime();
R::store($geo); R::close();`