Do you see an error “lessphp fatal error: load error: failed to find bootstrap.lesslessphp” and “style.less.cache” after migrating your WordPress site from one host to another?
Generally lessphp fatal error occurs for two files – namely, bootstrap.lesslessphp & style.less.cache. Also, the error is common when you are developing with Twitter Bootstrap (LESS) and you might notice that the changes made in .less files does not reflect immediately. The most common fix for cache issue is to delete the browser cache, but that trick is not going work for less cache errors. So how do you solve this error? Well, here’s how it’s.
Solution for lessphp fatal error
To fix the issue, you need to delete .cache files shown in the error message. To do that, go to your WordPress theme folder (wp-content/themes/mytheme) and delete the below files.
wp-content/themes/mytheme/style.less.cache wp-content/themes/mytheme/bootstrap/less/bootstrap.less.cache
Now your WordPress site will load without those errors. Still thinking about those deleted files? Go back to your WordPress theme folder and check if those .cache files has been generated. It should have!
Merci pour la solution de supprimer les fichiers cache. Tout est revenu à l’ordre
Translated: Thanks for the solution to delete cache files. Everything is back to order
Sorted my error messages. Clearly explained. Thanks!
The same for me, deleted those files but the website does not work.
Removed the two files mentioned above, but still getting error