Can't write to directory /var/www/lms/userpanel/templates_c. Can you run:
chown 33:33 /var/www/lms/userpanel/templates_c
chmod 755 /var/www/lms/userpanel/templates_c
This helps me to work. Thanks.