Loading...
 
Skip to main content

Itemlink, Trying to access array offset on value of type null (notice)

Status
Closed
Subject
Itemlink, Trying to access array offset on value of type null (notice)
Version
22.x
Category
  • Regression
Feature
Trackers
Resolution status
New
Submitted by
Bernard Sfez / Tiki Specialist
Keep informed
Jonny Bradley
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

I upgrade a Tiki using git and Tiki22 the 30/09/2020 and didn’t had that notice in my index rebuild log.

I upgrade for a second time the same Tiki (db) using git and Tiki22 the 05/10/2020 and this notice appears in my index rebuild log for (I believe) all the itemlinks I have in my trackers.

Copy to clipboard
2020-10-04T18:36:12+00:00 INFO (6): addDocument trackeritem 384 {"memoryUsage":"27.9 MiB"} 2020-10-04T18:36:12+00:00 ERR (3): NOTICE: Trying to access array offset on value of type null {"code":null,"file":"/home/xxx/public_html/lib/core/Tracker/Field/ItemLink.php","line":1002} 2020-10-04T18:36:12+00:00 ERR (3): NOTICE: Trying to access array offset on value of type null {"code":null,"file":"/home/xxx/public_html/lib/core/Tracker/Field/ItemLink.php","line":1002} 2020-10-04T18:36:12+00:00 ERR (3): NOTICE: Trying to access array offset on value of type null {"code":null,"file":"/home/xxx/public_html/lib/core/Tracker/Field/ItemLink.php","line":1002} 2020-10-04T18:36:12+00:00 ERR (3): NOTICE: Trying to access array offset on value of type null {"code":null,"file":"/home/xxx/public_html/lib/core/Tracker/Field/ItemLink.php","line":1002}


I have 2 itemLink, 1 itemList and 1 Dynamic ItemList in the tracker for the item 384.
The data displayed are correct, I have no missing.
I have several itemList values = 0
And 2 mathematical calculation that do their calculation.

Seems to be a false and general notice no matter what the data displayed.

Solution
Fixed by : https://gitlab.com/tikiwiki/tiki/-/commit/be8bed2127a3a130f0b8fde41f5a4174e1275a9a
Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7557
Created
Monday 05 October, 2020 04:32:15 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Thursday 15 October, 2020 06:26:17 UTC


Show PHP error messages