SOLVED preview is blank on web template editor

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,226
463
Hello :)

The updated case number is FB-152285. There's currently no time frame available on a resolution, but I've added a comment to note this thread and report that it's still reproducible on cPanel version 54.

Thank you.
 
  • Like
Reactions: Metro2

aUserName

Member
Sep 15, 2016
14
4
3
Tubes
cPanel Access Level
Root Administrator
The Web Template Editor Preview page error is still a problem on 11.58.x of WHM. I can confirm.
Put simply, when you view the editor and preview pages via HTTPS the preview page loads the HTTP link to the file you are editing, which goes against modern browser policies on Mixed Content loading, thus the "insecure" URL in the iframe is prevented from loading and the user at the HTTPS-served preview page sees nothing at all.

As a temporary workaround, I have used a page inspector or firebug to edit the iframe tag on the page and change its URL to the HTTPS version.

Pardon my saying so, but the issue seems like it would be relatively easy for cPanel's devs to fix and slip into any upcoming version. Wouldn't it be a matter of detecting the current protocol used to view the preview page and then ensuring the iframe URL is using the protocol that was detected? Surely there is already a method that would accomplish this checking?
I have thought briefly of editing the page template and including a javascript snippet that would do this but thought better of it since auto-updates would wipe out any changes I would make.

I hope this information helps anyone else wondering about it.
 
  • Like
Reactions: Metro2

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,226
463
Hello,

The case is still open at this time, and the updated case number is CPANEL-4880. I'll update this thread with updates to this case as they become available.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,226
463
Hello,

To update, this is fixed in cPanel version 64:

Fixed case CPANEL-4880: Use correct protocol for Web Template Editor Preview.

Thank you.
 
  • Like
Reactions: Metro2