wckr / wocker

Create your WordPress development environment in 3 SECONDS!
https://wocker.dev/
MIT License
480 stars 42 forks source link

In PHP 7, a "call to undefined function ..." error occurs. #74

Closed hansendo closed 6 years ago

hansendo commented 6 years ago

In PHP 7 it was confirmed that mbstring and bz2 could not be found and an error occurred. For now it's OK to install php7.0-mbstring and php7.0-bz2 with apt-get. (from google translate.)

robdyke commented 6 years ago

I had a similar error 'Call to undefined function xml_parser_create()'.

My fix was to install the missing php7 modules using apt:

$ vagrant ssh
wocker ~ $ wocker exec -it wocker bash
root@c9fd5b0bea2f:/var/www/wordpress# apt install php7.0-xml
akiya64 commented 6 years ago

Hi, this is php modules list in Wocker V1.2. Does anyone know WordPress require php module list. I am thinking that it would be best WordPressCodex listing php build option.

[PHP Modules] calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext hash iconv json libxml mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql Phar posix readline Reflection session shmop SimpleXML sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xdebug xml xmlreader xmlwriter xsl Zend OPcache zlib

[Zend Modules] Xdebug Zend OPcache

ixkaito commented 6 years ago

Fixed this issue on v1.2.1. Thank you all!