SOLVED Web template editor, error

Petar

Member
Apr 5, 2017
12
0
1
Serbia
cPanel Access Level
Root Administrator
When I open Web template Editor I can see page for all template, but if I click on preview of any page I got blank preview form with error:

Template file not defined.
 

cPWilliamL

cP Technical Analyst II
Staff member
May 15, 2017
258
30
103
America
cPanel Access Level
Root Administrator
Hi @Petar,

When this happens, have you checked the `/usr/local/cpanel/logs/error_log' error log?:
Code:
# tail -fn0 /usr/local/cpanel/logs/error_log
When viewing a preview, a template file is generated as below:
Code:
# ls -1  /var/cpanel/webtemplates/root/english/*
/var/cpanel/webtemplates/root/english/default-preview.tmpl
/var/cpanel/webtemplates/root/english/moving-preview.tmpl
/var/cpanel/webtemplates/root/english/redirect-preview.tmpl
The '/root/' portion will change depending on your reseller. This is likely a permissions issue. The permission should be as below:
Code:
755 root:root(0:0) directory /var
711 root:root(0:0) directory /var/cpanel
711 root:root(0:0) directory /var/cpanel/webtemplates
711 root:root(0:0) directory /var/cpanel/webtemplates/root
711 root:root(0:0) directory /var/cpanel/webtemplates/root/english
Can you check the permissions on this path?

Thanks,
 

Petar

Member
Apr 5, 2017
12
0
1
Serbia
cPanel Access Level
Root Administrator
Thank you on reply, I'm resolved on this way.

Move all file from /var/cpanel/webtemplates/root/english/
except default-preview.tmpl in some temp location.
After that preview works !