-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] current nightly. Saving menu item fails. Call to a member function validate() on bool. Field "show_associations"" #23696
Comments
Only "Site" menu items. |
If someone wants to look at it, I think we can use similar solution on this PR #23501. Maybe we should search for all show_associations field in all components and fix it. |
4.0-dev branch (NOT nightly) I can't reproduce the issue here on non-multilingual site. |
The issue has been reported in a german forum and I tested it afterwards and could confirm it with an updated older J4 version and a new online installation. I've installed now the nightly build of today (Monday, 28 January 2019 03:00:50 UTC) from scratch on XAMPP727 without any additional steps, opened menu item "Home" in back-end, clicked on Save and have still the same issue. This line https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Form/Form.php#L1200 results in a |
Hmm This happens when it is a menu item chosen from the Articles menu items. This happens whether |
Issue confirmed. |
@joomdonation
before solves the issue. Tested in back-end only. I'll create a pr. |
@ReLater EDIT: Session issue, no worry. |
@infograf768 |
Test pr #23716 instead of 23700 !
So I'm closing here but not happy. See concerns in #23700 (comment) and #23700 (comment) |
Steps to reproduce the issue
Call stack
| Function | Location
1 | () | JROOT/libraries/src/Form/Form.php:1202
2 | Joomla\CMS\Form\Form->validate() | JROOT/libraries/src/MVC/Model/FormModel.php:199
3 | Joomla\CMS\MVC\Model\FormModel->validate() | JROOT/administrator/components/com_menus/Controller/ItemController.php:368
4 | Joomla\Component\Menus\Administrator\Controller\ItemController->save() | JROOT/libraries/src/MVC/Controller/BaseController.php:736
5 | Joomla\CMS\MVC\Controller\BaseController->execute() | JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:146
6 | Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() | JROOT/libraries/src/Component/ComponentHelper.php:379
7 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/AdministratorApplication.php:116
8 | Joomla\CMS\Application\AdministratorApplication->dispatch() | JROOT/libraries/src/Application/AdministratorApplication.php:159
9 | Joomla\CMS\Application\AdministratorApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:232
10 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/administrator/includes/app.php:63
11 | require_once() | JROOT/administrator/index.php:36
System information (as much as possible)
Additional comments
It looks like method
loadField()
(https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Form/Form.php#L1560) returnsfalse
for fieldshow_associations
The text was updated successfully, but these errors were encountered: