I am keep receiving this error on my magento pages in frontend and back-end.
Error 500 – Internal server error An
internal server error has occured!
Please try again later.
In front-end all the pages working fine but when I hit proceed to checkout it is showing this error and the url is /index.php/checkout/onepage/.
My cart is also not showing products in it but when I say add to cart. It shows an empty cart with the message that the product has been added in to cart and button to proceed to checkout or continue shopping.

What are the causes? Ho do I go about this?
It’s hard to say what’s going on based solely on just a 500.
Magento has this behaviour of shielding the real issue at hand to avoid exposing any vulnerabilities to end-users.
In order to find out what’s going on you’d have to get the real error report.
I can think of four ways to find out what’s going on:
MAGENTO_ROOT/var/logMAGENTO_ROOT/var/report/var/logor a directory under your account if you are on a shared hosing environment.<?php phpinfo(); ?>to see whatphp.iniyour server is using, edit that file, and setlog_errors = Onand define a log path (which requires write permissions for the account that PHP runs under) with theerror_log = /path/to/php.error.logdirective.