cerhelp
asked on
getting lessphp error after transferring website from one web server to another
Greetings,
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.m3fede ralcom/pub lic_html/m 3federal/w p-content/ themes/the me44107/bo otstrap/le ss/bootstr ap.lessles sphp fatal error: load error: failed to find /hermes/bosnaweb18a/b2978/ ipw.m3fede ralcom/pub lic_html/m 3federal/w p-content/ themes/the me44107/st yle.less
The domain in question is on a parked testing domain http://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 wp-admin portal. I have verified that the files in the error do exist. I have tried (according to this resource: http://smallmouthmediagroup.com/moving-wordpress-site-cherry-framework-tip-lessphp-errors/) 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. Any thoughts or ideas are welcome, Thank you in advance.
Thank you for your help.
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/
The domain in question is on a parked testing domain http://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 wp-admin portal. I have verified that the files in the error do exist. I have tried (according to this resource: http://smallmouthmediagroup.com/moving-wordpress-site-cherry-framework-tip-lessphp-errors/) 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. Any thoughts or ideas are welcome, Thank you in advance.
Thank you for your help.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
is the path in the error:
" /hermes/bosnaweb18a/b2978/ ipw.m3fede ralcom/pub lic_html/"
the new path or the old path?
" /hermes/bosnaweb18a/b2978/
the new path or the old path?
ASKER
The new server it was moved to is running CENTOS 6.7 / WHM 56 BUILD 9.
the path " /hermes/bosnaweb18a/b2978/ ipw.m3fede ralcom/pub lic_html/" , im guessing, is originating from the old server only. i do not know where that info would be coming from. to be honest, i have never really done much with our web box with any directories above public_html in a specific users account.
also if any value, the style.less.cache file permissions is 0644 (owner read / write, group read only, public read only)
the folder its in is 0755 (owner read / write / execute, group read / execute, public read / execute)
exactly the same with the other folders where the other bootstrap.less.cache file resides
the path " /hermes/bosnaweb18a/b2978/
also if any value, the style.less.cache file permissions is 0644 (owner read / write, group read only, public read only)
the folder its in is 0755 (owner read / write / execute, group read / execute, public read / execute)
exactly the same with the other folders where the other bootstrap.less.cache file resides
It's very difficult to provide assistance with so little to go on. My guess is that the paths on the new server are not the same as the old server, and Less is configured to use "/hermes/bosnaweb18a/b2978 /ipw.m3fed eralcom/pu blic_html/ " and so on, and the new server is "something/else/altogether /public_ht ml" and so on.
You will need to update the Less configuration, wherever that is on your setup.
It may be hardcoded somewhere in your theme, so a search for "/hermes/bosnaweb18a/b2978 /ipw.m3fed eralcom/pu blic_html/ " in the PHP code may yield results.
If this is all way beyond what you feel comfortable with, I suggest you request paid assistance on Gigs or Live.
You will need to update the Less configuration, wherever that is on your setup.
It may be hardcoded somewhere in your theme, so a search for "/hermes/bosnaweb18a/b2978
If this is all way beyond what you feel comfortable with, I suggest you request paid assistance on Gigs or Live.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
chiltern-pc - i created the showroute.php file and tried opening the file in a web browser and here is the new path:
/home/m3federa/public_html
any tool you would recommend for searching multiple files for the previous paths? also any recommendations on the database utility to search with?
Mr Nettman - i will try to look at updating the Less configuration as soon as i can figure that out. i unfortunately know nothing about Less. Is that something that can be edited in the wp-admin? or is that something that needs to be modified outside of this specific account, say in the root control panel for whm?
/home/m3federa/public_html
any tool you would recommend for searching multiple files for the previous paths? also any recommendations on the database utility to search with?
Mr Nettman - i will try to look at updating the Less configuration as soon as i can figure that out. i unfortunately know nothing about Less. Is that something that can be edited in the wp-admin? or is that something that needs to be modified outside of this specific account, say in the root control panel for whm?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
good to know of the stern warning. i will start backing up our entire web server before trying anything. thank you for the input. i will follow up when possible
ASKER
actually quick question, if i run this:
find /home/m3federa/public_html -type f -name '*.php'
wont it just find objects related /home and not the out dated /hermes/bosnaweb18a/b2978/ ? maybe i am just interpreting the command incorrectly.
find /home/m3federa/public_html
wont it just find objects related /home and not the out dated /hermes/bosnaweb18a/b2978/
The find command looks for files matching "*.php" on your new server - the path is where to look, not what to look for.
The sed command will change " /hermes/bosnaweb18a/b2978/ " to "/home/m3federa/" in any files which the find command finds.
Here is a tutorial.
The sed command will change " /hermes/bosnaweb18a/b2978/
Here is a tutorial.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I may have spoken before i should have. The error still exists for some of the pages when clicking on certain links. I tried just going into wp-admin to see if i could adjust the links manually but do not see them listed anywhere. i may end up trying your guys idea anyway.
chilternpc - do you know of any documentation to attempt what you are suggesting?
chilternpc - do you know of any documentation to attempt what you are suggesting?
Have you run both database and file changes?
Which pages are still throwing an error?
Which pages are still throwing an error?
ASKER
i have yet to run the database / file changes. if there was a potentially less damaging solution i wanted to try that first. our web server has over 400 websites on it and is going to take awhile to backup (of course got disconnected on friday so i had to restart it this morning).
the biggest issue is we do have root whm access, but i am not sure i have console access to run commands on the server, so i am also trying to discover where i perform those commands.
the biggest issue is we do have root whm access, but i am not sure i have console access to run commands on the server, so i am also trying to discover where i perform those commands.
ASKER
i ran the interconnect/it search and replace. it found 3 objects in one of the wp_jzpl tables. only error (which looks almost the same) that i am currently seeing is in multiple spots:
http://cerwebtest.net/services/
when clicking any of the links it will result in the error below:
http://cerwebtest.net/
when clicking on any of the more info links at the bottom results in same error as below:
lessphp fatal error: load error: failed to find /hermes/bosnaweb18a/b2978/ ipw.m3fede ralcom/pub lic_html/m 3federal/w p-content/ themes/the me44107/bo otstrap/le ss/bootstr ap.lessles sphp fatal error: load error: failed to find /hermes/bosnaweb18a/b2978/ ipw.m3fede ralcom/pub lic_html/m 3federal/w p-content/ themes/the me44107/st yle.less
Warning: Cannot modify header information - headers already sent by (output started at /home/m3federa/public_html /m3federal /wp-conten t/themes/C herryFrame work/inclu des/less-c ompile.php :152) in /home/m3federa/public_html /m3federal /wp-includ es/pluggab le.php on line 1207
http://cerwebtest.net/services/
when clicking any of the links it will result in the error below:
http://cerwebtest.net/
when clicking on any of the more info links at the bottom results in same error as below:
lessphp fatal error: load error: failed to find /hermes/bosnaweb18a/b2978/
Warning: Cannot modify header information - headers already sent by (output started at /home/m3federa/public_html
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i did go into wp admin and attempted this because of what i thought you meant earlier. i found the cherry options and went in and clicked on each tab and hit save. before i posted here, i also tried exporting the cherry plugin content and imported to the new server, unfortunately didn't help either. just to be extra sure, i just re-logged back into wp-admin and reattempted saving this. no change unfortunately.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
here is the output from the command:
root@webserver [/]# grep -r -l "/hermes/bosnaweb18a/b2978 /ipw.m3fed eralcom"
/home/m3federa/public_html
/home/m3federa/public_html /m3federal /wp-conten t/themes/t heme44107/ bootstrap/ less/boots trap.less. cache
/home/m3federa/public_html /m3federal /wp-conten t/themes/t heme44107/ style.less .cache
/home/m3federa/public_html /dodboardo fappeals/w p-content/ themes/Che rryFramewo rk/update. log
/home/m3federa/public_html /dodboardo fappeals/w p-content/ themes/the me44107/bo otstrap/le ss/bootstr ap.less.ca che
/home/m3federa/public_html /dodboardo fappeals/w p-content/ themes/the me44107/st yle.less.c ache
/home/m3federa/public_html /dodboardo fappeals/e rror_log
root@webserver [/]# grep -r -l "/hermes/bosnaweb18a/b2978
/home/m3federa/public_html
/home/m3federa/public_html
/home/m3federa/public_html
/home/m3federa/public_html
/home/m3federa/public_html
/home/m3federa/public_html
/home/m3federa/public_html
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
delete all the ones listed above? (or download them then delete rather just in case)
ASKER
i added a .bak to all the .cache files listed above. cleared browser cache and viola, it seems to be working! Thank you both so much for your help again!
ASKER
Thank you so much for your assistance!
Often when moving files around on a server they end up being owned by the user doing the moving, and the web server user does not have access.
You don't mention the operating system or web server involved or one could give more specific advice.
Setting WP_DEBUG to false isn't going to fix a fatal error, but it could conceal the message, and then you wouldn't even know where to start. Bit of a pet peeve of mine - plugin and theme "developers" relying on WordPress to conceal their sloppy code by setting WP_DEBUG off.
This is also not a permalinks issue, as this is a file path, not a URL.