Solution 1Contact Host: The vast majority of these errors can easily be fixed by forwarding your host the message in question. For example if your log shows a message such as:
INSTALLER ERROR:[PHP ERR][FATAL] MSG:Uncaught Error: Call to undefined function token_get_all() in /var/www/localhost/htdocs/wordpress/duplicator/dup-installer/lib/config/class.wp.config.tranformer.php:387
Then simply send the message to your host or server admin and they can typically enable the undefined function call.
Solution 2Plugin/Theme Updates: When moving to a new hosting environment its common that the host has custom configuration it uses to protect its setup, that can be difficultto isolate. If you get an “undefined function” message try deactivating all your plugins and then trying the action that caused issue again. If the problem persists then try switchingthemes temporarily and see if that helps.
Solution 3Manual Update: If you choose to fix the issue your-self then here are a few items you will want to check:
- Check to make sure you are using an up to day version of PHP. WordPress recommends using PHP 7+ or better.
- Check your php.ini file for disable_functions = settings.
Related 1Post/Page updates: Other related issues that may present a “undefined function” error is when a host tries to limit the line length. Some users have had success when adding the followingto their .htaccess file.
# BEGIN Line too long fix
# END Line too long fix