Comments (5)
i was able to reproduce on 2nd run
": "Save failed with the following error: Joomla\\Component\\Menus\\Administrator\\Table\\MenuTable::_getNode(1, id) failed.",
and the #__menu table is messed up for lft, rgt
from joomla-cms.
- @alikon gave the correct hint there are problems with
__menu
table π - the check of the table
__menu
shows that there is no entry withid 1
and therefore the usedparent_id 1
fails, hardwired theparent_id
was changed to (at this moment) existingid 2
the test run was successful several times - a stable solution would therefore be to initial search for a (e.g. the first) menu item and then use this menu item ID as
parent_id
from joomla-cms.
But the more important question is, why is the so importand looking __menu entry id=1 title=Menu_Item_Root alias=root
deleted in a fresh instance with running only sytem tests? The obvious suspect is the test case can delete a site menu item
in the same file. And with this question, the approach of getting the first menu entry and using its id
sound more like a work around and does not fix the main cause that menu entry #1 being deleted.
from joomla-cms.
please test #43456
from joomla-cms.
on fresh macOS-docker-4.4-dev installation
- tested before the PR:
- every run of
SiteMenuItems.cy.js
deletes one more entry from the__menu
table, starting withid=1
- from the 2nd run, the test case
can create a site menu item
fails because there is no longer a parent menu entry id=1 - restored entry with:
- every run of
INSERT INTO `jos44_menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`, `publish_up`, `publish_down`) VALUES
(1, '', 'Menu_Item_Root', 'root', '', '', '', '', 1, 0, 0, 0, NULL, NULL, 0, 0, '', 0, '', 0, 43, 0, '*', 0, NULL, NULL);
- applied
gh pr checkout 43456
- checked
tests/System/integration/api/com_menus/SiteMenuItems.cy.js
has changed tobeforeEach
- multiple runs of
SiteMenuItems.cy.js
- no test failures anymore β
- no
__menu
entries are deleted β
- overall test run with 110 specs and 435 test cases passed β
- checked
Thank you for fixing π
from joomla-cms.
Related Issues (20)
- Issues with Contact Select List HOT 1
- 5.1.1 update is not found HOT 15
- Custom text field: HTML filter active after migration to J5 HOT 1
- Remove legacy code in updater
- Extension Check for Updates fails when manifest update url is redirected http to https
- Vote plugin is displayed even when disabled inside article HOT 7
- Deprecation warnings on admin login screen on PHP 8.2 HOT 4
- [5.2] Consistency: Users (front-end) - Front-end Overview + Single User view HOT 6
- Custom Field Type 'URL' does not refer to Target Value HOT 5
- Buenas, la descripciΓ³n del sitio web o pagina web sale con letras chinas. HOT 3
- Cypress System Test fails on 2nd Windows run HOT 1
- Please implement an input field for Matomo scriptcode (web analytics) in HTML Head of J5 HOT 2
- Cypress System Test fails on 2nd run if cmsPath set HOT 3
- [5.1.1] Why has "itemprop="inLanguage" been reverted in article default.php HOT 1
- spam
- Problem: Menu items based on tags with Match All & Include Child doesn't work
- Special characters are transferred to the alias HOT 2
- Show tagged items in category blog layout HOT 10
- [5.1.1] Creating a child template of Cassiopeia produces two copies in Styles HOT 3
- Plugin System - Logout need to be removed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joomla-cms.