silverstripe / silverstripe-lessons-v4

The source code for the SilverStripe.org Lessons section, version 4.x
Other
20 stars 68 forks source link

Undefined Offset:1 for ArticleHolder.php (Lesson 20) #73

Closed imandings closed 6 years ago

imandings commented 6 years ago

So I was browsing the PR and Issues here and noticed a few people had issues with the results section of the ArchiveDates() section on ArticleHolder.

https://github.com/silverstripe/silverstripe-lessons-v4/blob/924c11732786e4d999bfff298570fb49f3659c31/Lesson-20-end/app/src/ArticleHolder.php#L45-L78

I've tried a fix, even reverted to the initial configuration and are still having an issue. The problem seems to be around this one function as if I comment it out, and undo changes it said, I'm working again (Lesson 19).

Here's my error: capture

PHP 7.2.2 using XAMPP. Windows 7 Professional.

imandings commented 6 years ago

Fixed. Apparently, I had a record with null as title/description in the silverstripe_lessons_articlepage_live table. capture