No Code Attached Yet J4 Issue
avatar ahamed
ahamed
27 May 2019

Steps to reproduce the issue

For a component, if anyone creates Extension/CompnameComponent.php file and inside this class, the boot() function does not register anything.

If I register something like
$this->getRegistry()->register('testregistry', new AdministratorService);
and call this like
HTMLHelper::_('testregistry.func', $arg1, $arg2)
this returns 500 JHtml testregistry not found.

Expected result

If I place a die() inside the boot() function this is expected to die the site but it renders the site.

Actual result

The boot() method not working.

System information (as much as possible)

Additional comments

avatar ahamed07sajeeb ahamed07sajeeb - open - 27 May 2019
avatar joomla-cms-bot joomla-cms-bot - change - 27 May 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 May 2019
Title
[4.0 alpha 9]HTML Service registry not register anything.
[4.0]HTML Service registry not register anything.
avatar franz-wohlkoenig franz-wohlkoenig - edited - 27 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 May 2019
Labels Added: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 27 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 May 2019
Title
[4.0]HTML Service registry not register anything.
[4.0 ]HTML Service registry not register anything.
avatar franz-wohlkoenig franz-wohlkoenig - edited - 28 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 May 2019
Title
[4.0 ]HTML Service registry not register anything.
[4.0] HTML Service registry not register anything.
avatar franz-wohlkoenig franz-wohlkoenig - edited - 28 May 2019
avatar ghost
ghost - comment - 30 May 2019

@infograf768 can you please comment?

avatar franz-wohlkoenig franz-wohlkoenig - change - 30 May 2019
Status New Information Required
avatar brianteeman
brianteeman - comment - 10 Jan 2020

anyone?

avatar alikon alikon - change - 3 Feb 2020
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2020-02-03 19:19:31
Closed_By alikon
avatar alikon
alikon - comment - 3 Feb 2020

Closing this due to not receiving required information to determine if this is a bug or not. If you feel this still needs review, please open a new tracker entry with as much information as possible to ensure it can be reviewed properly

avatar alikon alikon - close - 3 Feb 2020
avatar brianteeman
brianteeman - comment - 3 Feb 2020

@alikon What is this required information you are seeking. Just because no one responded to the report is no reason for it to be closed

avatar alikon alikon - change - 3 Feb 2020
Status Closed New
Closed_Date 2020-02-03 19:19:31
Closed_By alikon
avatar alikon alikon - reopen - 3 Feb 2020
avatar mbabker
mbabker - comment - 3 Feb 2020

This is a case where a reproducer is needed. Since the original issue report says that the component class' boot() method isn't being called, it could very well be there is something misconfigured about the component or there could be some edge case being run into that the code isn't handling. This one is legitimately something to put a "if no response after X then close" condition on, but usually it's better to say "we will close this in 2 weeks if we don't get anymore information about this issue" than to just blindly come in and close something that has had no action for months on end.

avatar laoneo
laoneo - comment - 13 Feb 2020

It looks indeed like that something with the registration is not correct. The content component registers services in the component class as well which works. Otherwise the back end articles list would crash. Here is the line with the registration:
https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_content/src/Extension/ContentComponent.php#L106

Did you register the component in the service class like here https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_content/services/provider.php#L53 ?

avatar joomdonation joomdonation - change - 12 Nov 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-11-12 08:39:22
Closed_By joomdonation
Labels Added: No Code Attached Yet
Removed: ?
avatar joomdonation joomdonation - close - 12 Nov 2022
avatar joomdonation
joomdonation - comment - 12 Nov 2022

We use this in our core components like com_content, com_contact.... and it is working well. So I would say that the problem comes from the code of the custom component. After 3 years, many things have changed, and we do not receive any further feedback, so I'm closing this issue. If you still have issue, look at the comment above from @laoneo for instructions and ask us further if needed.

Add a Comment

Login with GitHub to post a comment