check the templates_c folder exists and permissions on it are set to 777