Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

lessphp fatal error: load error: failed to find error after migrating wordpress website to new server

We are seeing the following error after migrating a WordPress site from one server to another.

lessphp fatal error: load error:
  failed to find /hermes/bosnaweb18a/b2978/ipw.m3federalcom/public_html/m3federal/wp-content/themes/theme44107/bootstrap/less/bootstrap.less
lessphp fatal error: load error:
  failed to find /hermes/bosnaweb18a/b2978/ipw.m3federalcom/public_html/m3federal/wp-content/themes/theme44107/style.less

The domain in question is on a parked testing domain (cerwebtest.net) and you will see the error at the top after clicking on any page other than the homepage. We have updated all plugins / WordPress to latest versions from within the WordPress admin portal. I have verified that the files in the error do exist. I have tried (according to this resource) removing the bootstrap.less.cache and style.less.cache files to try to force it to look at the .less files for generating the site. It only fixed the error on the main page but not any sub pages. The site appears to be loading correctly even with the something calling those files but not finding / using them. Any ideas as to what needs to be done to correct the error?

like image 430
cerhelp Avatar asked May 11 '16 13:05

cerhelp


2 Answers

I just had that same error. I got rid of it by deleting the .cache files in the folders of the named files in the error message.

Delete /wp-content/themes/theme44107/bootstrap/less/bootstrap.less.cache /wp-content/themes/theme44107/style.less.cache

After that the error message went away and the site worked.

like image 168
JohnnyThan Avatar answered Nov 19 '22 18:11

JohnnyThan


Just had same issue, my solution was to open the style.less cache files in text editor and check the url for the style.less file. Quick change now working

like image 1
Ollybob Avatar answered Nov 19 '22 17:11

Ollybob