No Code Attached Yet
avatar stephan-ansems
stephan-ansems
5 May 2022

Steps to reproduce the issue

  1. Create (or reuse) a component that has an admin page.
  2. Make sure the manifest file is named manifest.xml instead of <extension_name>.xml. According to the documentation (read it here) the manifest file of a component can be named manifest.xml or <extension_name>.xml.
  3. Create the zipfile for the component so it can be uploaded.
  4. Install it in a fresh Joomla server version 4.1.2.
  5. Try and access an admin page of your component.

Expected result

  • The admin page of the component

Actual result

  • You'll see an error page. Even though the component installed properl, the admin page will fail to work. You'll probably see an error like 'Class ... not found' or 'Layout default not found'.

System information (as much as possible)

  • Clean install of the Joomla 4.1.2

Additional comments

The following line in the code expects the manifext to be called <extension_name>.xml and that you component declares it namespace tag in the manifest, otherwise it will not generate an entry in the namespace map and you'll end up wasting time.

$file = $extensionPath . $name . '.xml';

Either update the doc, or add a line for manifest.xml to the code.

@chmst Please don't treat this as a support request like last time. I think its a bug.

avatar stephan-ansems stephan-ansems - open - 5 May 2022
avatar joomla-cms-bot joomla-cms-bot - change - 5 May 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 May 2022
avatar roland-d
roland-d - comment - 6 May 2022

@stephan-ansems Thank you for your findings.

Either update the doc, or add a line for manifest.xml to the code.

I agree the docs should follow the code. As anybody can update the docs because it is a wiki, feel free to update the docs. We are all volunteers and try to help where we can.

avatar roland-d roland-d - change - 7 May 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-05-07 11:16:26
Closed_By roland-d
avatar roland-d roland-d - close - 7 May 2022
avatar roland-d
roland-d - comment - 7 May 2022

As the change has been documented now, I will close this issue.

Add a Comment

Login with GitHub to post a comment