Looking into my crystal ball a bit more ... you do not have many defines for the LCD (see manual). Are you relying on the default values for those you have not shown? (not the best of practices if you are)

I am predicting that
Code:
Define LCD_DBIT 4
should be
Code:
Define LCD_DBIT 0
(only if you have the four data lines on RA0-RA3). If not, RA5 is input only and also will be causing you grief.

Let us know....