?
avatar Quy
Quy
3 Feb 2018

Steps to reproduce the issue

Install the last demo
Under Menus, select Main Menu
Select Site Map & Sample Sites
Click Batch button
Add to Australian Parks menu
Click Copy
Click Process button
See PHP error log

Expected result

no notices

Actual result

PHP Notice:  Undefined offset: 290 in \libraries\src\MVC\Model\AdminModel.php on line 284
PHP Notice:  Undefined offset: 439 in \libraries\src\MVC\Model\AdminModel.php on line 284
PHP Notice:  Undefined offset: 445 in \libraries\src\MVC\Model\AdminModel.php on line 284
PHP Notice:  Undefined offset: 446 in \libraries\src\MVC\Model\AdminModel.php on line 284

System information (as much as possible)

v3.8.3 & v3.8.4

Additional comments

These notices are generated when batch copy the parent menu item and not child menu items.

avatar Quy Quy - open - 3 Feb 2018
avatar joomla-cms-bot joomla-cms-bot - change - 3 Feb 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 Feb 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Feb 2018
Category com_menus
avatar sandewt
sandewt - comment - 3 Feb 2018

I can NOT reproduce this issue.

Joomla! 3.8.4
PHP Version 7.1.9
Xampp
Windows 10
Path to the error.php log folder ..\JOOMLA_3.8.4-2\Joomla\administrator/logs


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19547.
avatar Quy
Quy - comment - 3 Feb 2018

Please check PHP error log and not Joomla error log.

avatar Quy Quy - change - 3 Feb 2018
The description was changed
avatar Quy Quy - edited - 3 Feb 2018
avatar Quy Quy - change - 3 Feb 2018
The description was changed
avatar Quy Quy - edited - 3 Feb 2018
avatar Quy Quy - change - 3 Feb 2018
The description was changed
avatar Quy Quy - edited - 3 Feb 2018
avatar sandewt
sandewt - comment - 3 Feb 2018

@Quy , I understand it.

YES, I can reproduce this issue.

Path to the PHP log folder C:\xampp\apache\logs\error.log

PHP Notice: Undefined offset: 290 in C:\\xampp\\htdocs\\JOOMLA_3.8.4-2\\Joomla\\libraries\\src\\MVC\\Model\\AdminModel.php on line 284 and so on .
avatar Quy Quy - change - 3 Feb 2018
Title
Undefined offset when batch copy menu items
Undefined offset when batch copy parent menu and not child menu
avatar Quy Quy - edited - 3 Feb 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Feb 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-02-06 17:54:32
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 6 Feb 2018
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 6 Feb 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 6 Feb 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Feb 2018

closed as having Pull Request #19587

Add a Comment

Login with GitHub to post a comment