cPanel & WHM Version 108 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Jupiter: INCLUDE relative path broken in content includes that previously worked in paper lantern

Sangeeth Sudheer shared this idea 13 months ago
Transitioned to Case

We used to place minimal content in and in Paper Lantern and included the bulk of the functionality via a separate INCLUDE directive like so:

[% INCLUDE 'fm-template-toolkit/' %]
However, on Jupiter with Content Includes, the same line doesn't work anymore. We used to symlink the fm-template-toolkit directory to its actual location and I thought that's no longer supported but even replacing the link with the entire directory doesn't work. It produces the following error:

[2022-04-26 16:07:26 +0000] warn [cpanel] Failed to process template: '/var/cpanel/customizations/content_includes/' - Error: file error - fm-template-toolkit/ not found at /usr/local/cpanel/Cpanel/Template/Plugin/ line 114.
Tried adding a ./ to the beginning but that produces a more explicit error stating "relative paths are not allowed".

Absolute paths seem to work but the problem being having to hardcode that info and generate separate files .tt for Paper Lantern and Jupiter (until Jupiter is widely adopted).

Could you please add back the support for paths relative to `content_includes` directory as I mentioned in the first example or is there another way to do this?

WHM version: 102.0.11

Replies (1)


(apologies for the unintentional reply there). I'm in the process of registering this as a bug. I do not believe it was our original intent to prevent this but such a bug will prompt that discussion. Thank you!




@cPanelAdamF any updates on this? Will it be resolved soon?

Leave a Comment
Attach a file