cancel
Showing results for 
Search instead for 
Did you mean: 

configuring new 2.0 install. mb_strtolower

configuring new 2.0 install. mb_strtolower

i just installed a fresh 2.0 on ubuntu 15.10.    installed several php modules required by the Magento setup.    I verified home page and admin.    I'm trying to setup the cron for indexers.  I edited the crontab file as instructed.     i then chmod u+x magento/bin/magento   and then tried to   ./magento cron:run    

 

i'm receiving error: 

 

Fatal error: Uncaught Error: Call to undefined function Magento\Framework\Event\mb_strtolower() in /home/getuncommon/magento/vendor/magento/framework/Event/Manager.php:56
Stack trace:
#0 /home/getuncommon/magento/var/generation/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('default', Array)
#1 /home/getuncommon/magento/vendor/magento/framework/App/Cron.php(64): Magento\Framework\Event\Manager\Proxy->dispatch('default')
#2 /home/getuncommon/magento/vendor/magento/module-cron/Console/Command/CronCommand.php(98): Magento\Framework\App\Cron->launch()
#3 /home/getuncommon/magento/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Magento\Cron\Console\Command\CronCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /home/getuncommon/magento/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\ in /home/getuncommon/magento/vendor/magento/framework/Event/Manager.php on line 56

 

 

 

 

sounded like CLI php was missing a module  but i do how mbstring installed...

>  dpkg --get-selections | grep -v deinstall

.

.

.

php7.0 install
php7.0-cli install
php7.0-common install
php7.0-curl install
php7.0-fpm install
php7.0-gd install
php7.0-intl install
php7.0-json install
php7.0-mbstring install
php7.0-mcrypt install
php7.0-mysql install
php7.0-opcache install
php7.0-readline install
php7.0-xml install
php7.0-zip install

.

.

.

3 REPLIES 3

Re: configuring new 2.0 install. mb_strtolower

poking around finding some wierd stuff..not sure if expected for ubuntu php7.0 install

 

>which php
/usr/local/bin/php 

 

/usr/local/bin# ls -l php*
-rwxr-xr-x 1 root root 27374656 Dec 17 13:26 php
-rwxr-xr-x 1 root root 27208576 Dec 17 13:26 php-cgi
-rwxr-xr-x 1 root root 2149 Dec 17 13:27 php-config
-rwxr-xr-x 1 root root 28071008 Dec 17 13:26 phpdbg
-rwxr-xr-x 1 root root 4522 Dec 17 13:27 phpize

 

>which php7.0

/usr/bin/php7.0

 

 

 

in /usr/bin....

 

/usr/bin# ls -l php*
lrwxrwxrwx 1 root root 21 Mar 22 12:02 php -> /etc/alternatives/php
-rwxr-xr-x 1 root root 4410416 Mar 31 12:32 php7.0

 

/usr/bin/php is a symlink to /etc/alternatives/php    which is a symlink back to /usr/bin/php7.0

 

 

 

 

 

so it sounds like when running CLI php, it's using the /usr/local/bin one that does not have mbstring installed.

/usr/local/bin/php -m
[PHP Modules]
Core
ctype
date
dom
fileinfo
filter
hash
iconv
json
libxml
pcre
PDO
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter

[Zend Modules]

 

 

 

so how do i install it on that one?  it's already apt-get installed on the php7.0

 

/usr/bin/php7.0 -m
[PHP Modules]
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

 

Re: configuring new 2.0 install. mb_strtolower

How to use the same PHP interpreter for both the web-server and the command-line modes? https://mage2.pro/t/1149

Re: configuring new 2.0 install. mb_strtolower

I tried your tip. then ran 'php bin/magento setup:static-content:deploy'

 

ERROR RECVD:

PHP Fatal error: Uncaught Error: Call to undefined function Magento\Framework\Event\mb_strtolower() in /var/www/html/store/vendor/magento/framework/Event/Manager.php:56