User tests: Successful: Unsuccessful:
Pull Request for Issue #24559 .
This moves the addIncludeMethod from the LeagcyModelLoaderTrait to the BaseModel and declare the $paths var as static member of the class
Check components that are using the addIncludePath method, if they are still working
It still works
none
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Thanks fixed it
It's like cs fixes, it always takes two or more attempts to fix a trailing space :-)
Call to undefined method Joomla\CMS\MVC\Model\BaseModel::addIncludePath()
Call stack
--
# | Function | Location
1 | () | JROOT\libraries\src\MVC\Controller\BaseController.php:186
2 | Joomla\CMS\MVC\Controller\BaseController::addModelPath() | JROOT\libraries\src\MVC\Controller\BaseController.php:460
3 | Joomla\CMS\MVC\Controller\BaseController->__construct() | JROOT\libraries\src\MVC\Factory\MVCFactory.php:77
4 | Joomla\CMS\MVC\Factory\MVCFactory->createController() | JROOT\libraries\src\Dispatcher\ComponentDispatcher.php:172
5 | Joomla\CMS\Dispatcher\ComponentDispatcher->getController() | JROOT\libraries\src\Dispatcher\ComponentDispatcher.php:145
6 | Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() | JROOT\libraries\src\Component\ComponentHelper.php:384
7 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT\libraries\src\Application\AdministratorApplication.php:115
8 | Joomla\CMS\Application\AdministratorApplication->dispatch() | JROOT\libraries\src\Application\AdministratorApplication.php:158
9 | Joomla\CMS\Application\AdministratorApplication->doExecute() | JROOT\libraries\src\Application\CMSApplication.php:230
10 | Joomla\CMS\Application\CMSApplication->execute() | JROOT\administrator\includes\app.php:63
11 | require_once() | JROOT\administrator\index.php:36
Labels |
Added:
?
?
?
|
Last commit reintroduces the original issue.
Labels |
Added:
?
Removed: ? |
Priority | Medium | ⇒ | Urgent |
I have tested this with differenc components: com_cache, com_users, com_content and looks good.
But recommend more tests, especially with 3rd party components
LeagcyModelLoaderTrait
just realised this has a typo in xD
Labels |
Added:
Conflicting Files
?
Removed: ? |
Confirmed with the weblinks module that this fixes the issue. Thankyou!
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-03-11 19:30:15 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
Removed: ? |
Wasn't this method supposed to stay in the trait?
Ideal world yes. But because of php internals it doesn’t work. See the original issue
The linked issue at the top of the description is wrong. It is #24599 , but it should be #24559 .