No Code Attached Yet
avatar brianteeman
brianteeman
24 Feb 2025

The cypress api test for modifying a single template passes but it produces the following php warnings

[24-Feb-2025 18:17:53 UTC] PHP Warning:  Attempt to read property "parent" on array in D:\repos\j51\administrator\components\com_templates\src\Model\StyleModel.php on line 399
[24-Feb-2025 18:17:53 UTC] PHP Warning:  Attempt to read property "parent" on array in D:\repos\j51\administrator\components\com_templates\src\Model\StyleModel.php on line 400
[24-Feb-2025 18:17:53 UTC] PHP Warning:  Attempt to read property "parent" on array in D:\repos\j51\administrator\components\com_templates\src\Model\StyleModel.php on line 400
avatar brianteeman brianteeman - open - 24 Feb 2025
avatar joomla-cms-bot joomla-cms-bot - change - 24 Feb 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Feb 2025
avatar alikon
alikon - comment - 27 Feb 2025

backend issue #42236

avatar muhme
muhme - comment - 2 Mar 2025

There are two Cypress tests with "can modify a single template", you can run with e.g.

scripts/test 53 system '{tests/System/integration/api/com_templates/Administrator.cy.js,tests/System/integration/api/com_templates/Site.cy.js}'

Each of these Cypress tests generates two PHP Warning messages:

[Sun Mar 02 05:42:36.146441 2025] [php:warn] [pid 94:tid 94] [client 10.0.0.1:59254] PHP Warning:  Attempt to read property "parent" on array in /var/www/html/administrator/components/com_templates/src/Model/StyleModel.php on line 399
[Sun Mar 02 05:42:36.146668 2025] [php:warn] [pid 94:tid 94] [client 10.0.0.1:59254] PHP Warning:  Attempt to read property "parent" on array in /var/www/html/administrator/components/com_templates/src/Model/StyleModel.php on line 400
[Sun Mar 02 05:42:37.976301 2025] [php:warn] [pid 94:tid 94] [client 10.0.0.1:59254] PHP Warning:  Attempt to read property "parent" on array in /var/www/html/administrator/components/com_templates/src/Model/StyleModel.php on line 399
[Sun Mar 02 05:42:37.976528 2025] [php:warn] [pid 94:tid 94] [client 10.0.0.1:59254] PHP Warning:  Attempt to read property "parent" on array in /var/www/html/administrator/components/com_templates/src/Model/StyleModel.php on line 400
avatar alikon
alikon - comment - 2 Mar 2025

please test #45052

avatar alikon alikon - change - 2 Mar 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-03-02 08:47:21
Closed_By alikon
avatar alikon alikon - close - 2 Mar 2025

Add a Comment

Login with GitHub to post a comment