Error after installing on shared hosting |
After installing CI4 on shared hosting (Hostgator) I'm getting the following error:
Code: Fatal error: Uncaught Error: Call to undefined function CodeIgniter\Autoloader\token_get_all() in /home1/*****/public_html/ci4/system/Autoloader/FileLocator.php:173 Stack trace: Any help would be gretaly appreciated!
Could you open up /home1/*****/public_html/ci4/system/Autoloader/FileLocator.php
And change line 173 from: PHP Code: $tokens = token_get_all($php); into: PHP Code: $tokens = \token_get_all($php); And see if it works.
Thanks for your Quick response!
I tried that and I'm getting this error stack now: Code: Fatal error: Uncaught Error: Call to undefined function token_get_all() in /home1/*****/public_html/ci4/system/Autoloader/FileLocator.php:173 Stack trace:
You should contact your hosting provider then, as it appears you don't have Tokenizer installed.
https://www.php.net/manual/en/book.tokenizer.php
I contacted my hosting provider and they confirmed it is installed. Is there anything else it may be?
Create a single PHP-file and try an example:
https://www.php.net/manual/en/function.t...l-examples If those dosen't work, it's not installed. And if they can't help you, change provider. (07-14-2020, 12:51 PM)jreklund Wrote: Create a single PHP-file and try an example: Does this issue have solution yet? i've tried deploying empty codeigniter project in hostgator just to see if it will run without my codes, but i'm still getting this error |
Welcome Guest, Not a member yet? Register Sign In |