No Code Attached Yet
avatar pinta83
pinta83
2 Oct 2024

Steps to reproduce the issue

Change "administrator" folder in "/includes/defines.php" and "/administrator/includes/defines.php" to "admin"
rename "administrator" folder to "admin"

Expected result

Everything working

Actual result

Error 500 - There is no "template.atum.ltr" asset of a "preset" type in the registry.

System information (as much as possible)

Joomla 5.x

Additional comments

Change "addTemplateRegistryFile" function in /libraries/src/WebAsset/WebAssetRegistry.php to:

    /**
     * Helper method to register new file with Template Asset(s) info
     *
     * @param   string   $template  The template name
     * @param   integer  $client    The application client id
     *
     * @return  self
     *
     * @since  4.0.0
     */
    public function addTemplateRegistryFile(string $template, int $client): self
    {
        switch ($client) {
            case 0:
            case 1:
                $this->addRegistryFile(str_replace(JPATH_ROOT . '/', '', JPATH_THEMES) . '/' . $template . '/joomla.asset.json');
                break;
            default:
                break;
        }

        return $this;
    }
avatar pinta83 pinta83 - open - 2 Oct 2024
avatar pinta83 pinta83 - change - 2 Oct 2024
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 2 Oct 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Oct 2024
avatar pinta83 pinta83 - change - 2 Oct 2024
The description was changed
avatar pinta83 pinta83 - edited - 2 Oct 2024
avatar pinta83 pinta83 - change - 2 Oct 2024
The description was changed
avatar pinta83 pinta83 - edited - 2 Oct 2024
avatar pinta83 pinta83 - change - 2 Oct 2024
The description was changed
avatar pinta83 pinta83 - edited - 2 Oct 2024
avatar pinta83
pinta83 - comment - 2 Oct 2024

Fix for issue... Rename to php
WebAssetRegistry.txt

avatar fgsw
fgsw - comment - 9 Oct 2024

@pinta83 If the issue is fixed it should be closed.

avatar pinta83
pinta83 - comment - 9 Oct 2024

It's not fixed, I only offered a solution. Still needs to be implemented / merged with Joomla...
I tried to do a pull request, but sadly I can't - since I'm not a contributor (anymore).

avatar brianteeman
brianteeman - comment - 9 Oct 2024

I tried to do a pull request, but sadly I can't - since I'm not a contributor (anymore).

Anyone can make a pull request https://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests

Add a Comment

Login with GitHub to post a comment