use a joomla v4.03, that is installed on a sever (not local!), i used php 8
goto the backend and install the attached minimum demo module
it gets installed
getting the error: Undefined constant "JPATH_"
i used a fresh j4.0.3
i didn't see it with a local installation. For better analysis i will also add an attachment of the debug info
mod_demo-min.zip
Maybe, there is a wrong coding in my module, it is my first attempt to do so in Joomla 4 ;-)
Labels |
Added:
No Code Attached Yet
|
If I remember correctly, You need to add client attribute , like this https://github.com/joomla/joomla-cms/blob/4.0-dev/modules/mod_articles_categories/mod_articles_categories.xml#L2
And a namepace Path like this
https://github.com/joomla/joomla-cms/blob/4.0-dev/modules/mod_articles_categories/mod_articles_categories.xml#L12
This issue is not a Joomla issue, so I close it here. Better address for your question: https://joomla.stackexchange.com/questions is a better address for you.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-10-07 12:39:49 |
Closed_By | ⇒ | chmst |
forgot the debug log: