Hi. I'm attempting to install drupal8 on FreeBSD but when I try to load the front page in the browser, I get an empty page with just the error,
Fatal error: Call to undefined function Doctrine\Common\Annotations\token_get_all() in /data/htdocs/test1/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/TokenParser.php on line 56
All the other extensions listed in extensions.ini seem to load and Drupal7 is working fine.
The tokenizer extension is installed but phpinfo() does not show it enabled under the Configuration section. Although it does mention it in the PHP credits section.
Here is the contents of /usr/local/etc/php/extensions.ini
extension=dom.so
extension=filter.so
extension=ftp.so
extension=gd.so
extension=hash.so
extension=json.so
extension=mysqli.so
extension=pdo.so
extension=session.so
extension=simplexml.so
extension=xml.so
extension=curl.so
extension=tokenizer.so
I even upgraded from php 5.6.25 to php 7.0.10 but get the same result.
Also I tried with both drupal-8.1.7 and drupal-8.1.9. Same result.
If I run "php -m" on the command line, tokenizer is in the list and if it comment it out in /usr/local/etc/php/extensions.ini, it is no longer in the list.
Also, the command "php -i" shows
Tokenizer Support => enabled
Any help would be appreciated.
OS: FreeBSD-10.2
Web Server: nginx-1.10.1
PHP version: 7.0.10
Drupal version: 8.1.9
Comments
Problem solved.
Eureka! I found the problem. It was a user malfunction.
I kept wondering why I was getting different results between "php -i" from the command line and "phpinfo()" from the browser.
It turned out that I had restarted nginx but forgot about the php-cgi processes. I finally noticed that phpinfo() still showed the older version of php. So even though I had installed the newer php package, the old php-cgi processes, that nginx talks to to run php scripts, were still running. I had to restart the fcgiwrap service.
It is all working now :-).
Same happened to me.
Same happened to me.
I forgot to enable Tokenizer module in PHP-FPM