The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Paper Lantern not recognizing .tt file in custom cPanel plugin

Discussion in 'User Experience' started by dfritsch, Oct 28, 2014.

  1. dfritsch

    dfritsch Registered

    Joined:
    Oct 28, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I am working on upgrading a cPanel plugin from x3 to paper lantern. I have been able to get the plugin to run on an existing cpanel dev server within my company, but I just set up my own cpanel dev server and the plugin won't load in paper lantern. (The plugin works fine in x3 on both servers.)

    Things I can see so far:

    When I click my plugin's button in paper lantern, I get a 404 error, and the url ends in 'index.html'. If I rename my 'index.html.tt' file to 'index.html', the file is found and loads, but naturally the tt code is not processed.

    I'm curious if the file extension is misconfigured for me on the new server, because I note that a lot more files are named 'name.auto.tt' instead of 'name.html.tt' on the new server. I'm not sure if that is a setting in paper lantern though.

    Even if I replace my 'index.html.tt' file with a basic html file (so the content is just an h1 tag, say), I continue to get a 404 error.
     
  2. dfritsch

    dfritsch Registered

    Joined:
    Oct 28, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I should also note that this is currently running WHM 11.44.1 (build 19) [DEV], while the working server is running in EDGE mode, so should be running the latest version. I'm currently upgrading versions to see if this fixes the issue for me.
     
  3. dfritsch

    dfritsch Registered

    Joined:
    Oct 28, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Upgrading to CURRENT 11.46.0.9 did not solve the issue on this server. Continue to get a 404 error for the plugin's index.html.tt file.
     
Loading...

Share This Page