In Joomla 4 the file '/templates/system/css/system.css' no longer exists. The index.php of the JA Simpli template contains the following lines:

if (version_compare(JVERSION, '4.0') >= 0) {
// SYSTEM CSS
$this->addStyleSheet(JURI::base(true) . '/templates/system/css/system.css');
}

This will load this file in Joomla 4 with a 404-error. The following lines prevent this file from loading:

if (version_compare(JVERSION, '4.0', 'lt')) {
// SYSTEM CSS
$this->addStyleSheet(JURI::base(true) . '/templates/system/css/system.css');
}

Is it possible to correct this change in a next version?

    rjanssen Hi

    Thanks for your report, I will share with team to update this in the next version of template.

    18 days later

    Hi, rjanssen
    I took an update, and it will be released in the next version.
    Thanks for your issue reporting.
    Regards,

    4 months later

    In version 2.0.3 the problem with system.css still exists. The following error message appears:

    Warning: is_file(): open_basedir restriction in effect. File(/templates/system/css/system.css) is not within the allowed path(s): (/home/vhosts/.../:/tmp/) in /home/vhosts/.../httpdocs/templates/ja_simpli/index.php on line 69

    This is in conjunction with Joomla 4.3.3.

      rjanssen Hi

      We updated it already but not release yet, it will be included in the next update.

      Regards

      a year later

      r9c2nn You can apply the same solution and let me know if you need further help on this.

      17 days later

      Having this issue in the latest version of the ja_fit template in 4.4.8

        7 days later

        carlbengston You can edit this file:

        root/templates/ja_fit/tpls/blocks/head.php

        and change:

        <?php
        // SYSTEM CSS
        $this->addStyleSheet(JUri::base(true) . '/templates/system/css/system.css');
        ?>

        To:

        <?php
        if (version_compare(JVERSION, '4.0', 'lt')) {
        // SYSTEM CSS
        $this->addStyleSheet(JURI::base(true) . '/templates/system/css/system.css');
        }
        ?>
        Write a Reply...
        You need to Login to view replies.