?
avatar pranaymirchandani
pranaymirchandani
14 May 2021

Steps to reproduce the issue

  1. discover a module for installation by clicking on extensions->Manage->discover
  2. select the extension and click install

Expected result

Module should install

Actual result

Get the error below ?

An error has occurred.
0 Call to a member function children() on null
C:\xampp\htdocs\libraries\src\Installer\Adapter\ModuleAdapter.php:161

Call stack

| Function | Location

1 | () | JROOT\libraries\src\Installer\Adapter\ModuleAdapter.php:161
2 | Joomla\CMS\Installer\Adapter\ModuleAdapter->getElement() | JROOT\libraries\src\Installer\InstallerAdapter.php:339
3 | Joomla\CMS\Installer\InstallerAdapter->discover_install() | JROOT\libraries\src\Installer\Installer.php:633
4 | Joomla\CMS\Installer\Installer->discover_install() | JROOT\administrator\components\com_installer\models\discover.php:202
5 | InstallerModelDiscover->discover_install() | JROOT\administrator\components\com_installer\controllers\discover.php:46
6 | InstallerControllerDiscover->install() | JROOT\libraries\src\MVC\Controller\BaseController.php:710
7 | Joomla\CMS\MVC\Controller\BaseController->execute() | JROOT\administrator\components\com_installer\installer.php:19
8 | require_once() | JROOT\libraries\src\Component\ComponentHelper.php:402
9 | Joomla\CMS\Component\ComponentHelper::executeComponent() | JROOT\libraries\src\Component\ComponentHelper.php:377
10 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT\libraries\src\Application\AdministratorApplication.php:101
11 | Joomla\CMS\Application\AdministratorApplication->dispatch() | JROOT\libraries\src\Application\AdministratorApplication.php:159
12 | Joomla\CMS\Application\AdministratorApplication->doExecute() | JROOT\libraries\src\Application\CMSApplication.php:203
13 | Joomla\CMS\Application\CMSApplication->execute() | JROOT\administrator\index.php:51

System information (as much as possible)

System Information
Setting Value
 
PHP Built On Windows NT DESKTOP-SAIL3J8 10.0 build 19041 (Windows 10) AMD64
Database Type mysql
Database Version 5.5.5-10.1.26-MariaDB
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 7.3.13
Web Server Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.13
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 3.9.26 Stable [ Amani ] 13-April-2021 15:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36

Additional comments

avatar pranaymirchandani pranaymirchandani - open - 14 May 2021
avatar joomla-cms-bot joomla-cms-bot - change - 14 May 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 May 2021
avatar pranaymirchandani pranaymirchandani - change - 14 May 2021
The description was changed
avatar pranaymirchandani pranaymirchandani - edited - 14 May 2021
avatar richard67
richard67 - comment - 14 May 2021

@pranaymirchandani Which module did make these problems?

avatar PhilETaylor
PhilETaylor - comment - 14 May 2021

Screenshot 2021-05-14 at 11 08 32

New profile pic - who dis?
avatar richard67
richard67 - comment - 14 May 2021

New profile pic - who dis?

@PhilETaylor Its 2 years older than the previous one, but closer to reality since I don't shave anymore.

avatar PhilETaylor
PhilETaylor - comment - 14 May 2021

Im guessing this file had an invalid XML with no files defined

if (count($this->getManifest()->files->children()))

Please post the full XML file for the module here.

avatar PhilETaylor
PhilETaylor - comment - 14 May 2021

Its 2 years older than the previous one, but closer to reality since I don't shave anymore.

I have to keep updating mine to make me look balder and fatter every 6 months ;-)

avatar pranaymirchandani
pranaymirchandani - comment - 14 May 2021

@pranaymirchandani Which module did make these problems?

Hi Richard,

a custom module

<?xml version="1.0" encoding="utf-8"?> <extention type="module" version="3.9" client="site" method="upgrade"> <name>mod_mwprofile_search_filters</name> <files> <filename module="mod_mwprofile_search_filters">mod_mwprofile_search_filters.php</filename> </files> </extention>

Fixed it my bad this is where the problem was i misspelled extension as extention

avatar PhilETaylor
PhilETaylor - comment - 14 May 2021

same happens with that XML in Joomal4

Screenshot 2021-05-14 at 11 20 47

avatar pranaymirchandani pranaymirchandani - change - 14 May 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-05-14 10:22:30
Closed_By pranaymirchandani
avatar pranaymirchandani pranaymirchandani - close - 14 May 2021
avatar pranaymirchandani
pranaymirchandani - comment - 14 May 2021

caused by a typo sorry

avatar PhilETaylor
PhilETaylor - comment - 14 May 2021

extention doesnt look right ;-)

avatar PhilETaylor
PhilETaylor - comment - 14 May 2021

This probably should still be resolved, also the admin template is destroyed by the error :-(

Add a Comment

Login with GitHub to post a comment