Hello,

I am currently using the T4 Template Framework on my Joomla 5.1.2 site and have encountered an issue when attempting to use Regular Labs' Content Templates.

When I switch the template to Cassiopeia, everything works fine, and I can successfully call the content templates from within the editor. However, when using the T4 Template Framework, I receive the following error when trying to load a content template:
Undefined constant "T4\Helper\T4PATH_BASE"
/home/XXX/plugins/system/t4/src/t4/Helper/Asset.php (37)

In an attempt to resolve this, I manually defined the constant T4PATH_BASE in the Asset.php file, but this led to further errors, such as:
Undefined constant "T4\Helper\T4PATH_TPL"
and
Undefined constant "T4\Helper\T4PATH_LOCAL"

I believe these constants should be automatically defined within the framework, but this does not seem to be happening in my environment.

Could you please provide guidance on how to correctly define these constants, or if this is a known issue, could you suggest a proper resolution?

Thank you for your assistance.

Regards

    Hi, 4creator
    Would you please share your administrator site credentials so I can check and help you solve the issue.?
    Regards,

    Hi,

    We operate a business website, and from the perspective of personal information protection, it is not a simple matter to grant you administrative privileges. I believe I have provided you with the information that you can investigate, but is it your view that there are no error factors in Asset.php?

    If it is an issue specific to our site, we can prepare a website that you can investigate, but as this will incur costs for us, please first confirm whether or not you believe there are no error factors in Asset.php (and whether you have already investigated Asset.php).

    Regards

    I had Cody (AI) investigate Asset.php and create a message for you:
    Developer Alert: The T4PATH_BASE constant appears to be undefined in the current context. This constant is crucial for the proper functioning of the T4 Template Framework. Please ensure that T4PATH_BASE is correctly defined in the framework's initialization file or in a suitable configuration file before it's used in Asset.php. Defining this constant will resolve the 'Undefined constant' error and allow the Content Templates to load correctly.

    Write a Reply...
    You need to Login to view replies.