In particular circumstances displaying Contact.class.php will generate in-line Undefined
offset errors for Line 1284 (in fact the same error
The error is: repeated 10 times, one under the last.
"Notice: Undefined offset: 0 in /var/www/html/tab3/lib/backEnd/Contact.class.php on line 1284"
Line 1284 starts:
This only occurs in particular circumstances (I should say that I am running v3.3 on PHP5 and I cant' repeat the behaviour on the SourceForge demo site) It seems to only occur for cards that have at least 2 Information (other) items, with at least one linked to an address and at least one other that is not linked to an address. The Information item linked to the address
is not displayed at all.
Steps to reproduce:
1. Make a new card and fill in the Name and sensible
data for 1 address. Label the address "Home" easy
2. Under the Information section make 2 entries
Type Label Text Link
Other Home This text is about Home none
Other General This text is not none
3. Save the card and then open it for editing again
4. Change the first Information item so that the
linked address changes from "none" to "Home".
5. Save the card.
the page refresh to Contact.class.php and 10
in-line errors will display at the top of the page.
NB: No data is lost in the process, so the card can be re-edited and the linked address changed between "Home"
and "none" as many times as is required for debugging.
The errors will occur if there is atleast one linked and one unlinked Information item. Also errors only occur for "other" Information items. URl items seem to work fine.
Log in to post a comment.