I have tried to deploy my Grav project to Apache, but it’s complicated. I have to test before deploy this Grav’s website on shared hosting so I emulated docker-apache-php7.1 enviroment (grav-docker-apache precisely).
When I want to load grav it’s throwing following ErrorException:
And it’s throwing following ErrorException during load admin:
"Declaration of Grav\Plugin\Babel\BabelSearch::setTokenizer(TeamTNT\TNTSearch\Support\TokenizerInterface $tokenizer) should be compatible with TeamTNT\TNTSearch\ ▶"
It’s not apache case definitely. I have deployed this my Grav’s project on another Nginx (docker php-fpm 7.3) and Grav throws the same error. Anyone knows why I have this error?
I have enabled php modules on machine:
[PHP Modules]
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
hash
iconv
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
readline
redis
Reflection
session
SimpleXML
soap
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined index: path on 43 lines of custom-css.php
Have you have Dockerfile with linux (i.e. alpine, ubuntu), newest php, newest grav and apache/nginx enviroment and all neccessary modules to launch grav?