Undefined offset: 2 after upgrading from 2.11 to 2.12

by chrisguidry, Saturday, September 27, 2014, 17:49 (3557 days ago)

Hi folks,

I'm a software engineer, but not very familiar with PHP debugging. I'm trying to update my instance from 2.11 to 2.12 and when I run update.php, it stops after a debug log line "item content sanitized" and prints "Undefined offset: 2" to stdout. I've narrowed it down to a reddit2 feed and the $item->getIcon call, but I'm not well set up to debug PHP at the moment.

I can reproduce the issue quite easily by toggling between the git tags 2.11 and 2.12, but there were a ton of changes between those two versions, so I'm not sure how to narrow it down.

Has anyone else seen this or have an idea for something to try? I've been running selfoss for several months and have lots of feeds, so I would prefer not to remove all my data.

Undefined offset: 2 after upgrading from 2.11 to 2.12

by chrisguidry, Saturday, September 27, 2014, 18:01 (3557 days ago) @ chrisguidry

After running through a git bisect, I've narrowed it down to e01d1858f5bede3400332dca64d03a4e36adf590:

e01d1858f5bede3400332dca64d03a4e36adf590 is the first bad commit
commit e01d1858f5bede3400332dca64d03a4e36adf590
Author: Tobias Zeising <tobias.zeising@aditu.de>
Date: Tue Sep 2 13:43:41 2014 +0200

* fix styling of buttons (new refresh button)
* update fat free php framework

:100644 100644 fb3f5bd03d4d28237cf537d542cd516ef3749047 614ccb3536d99534b47a588189c93a943726660b M .htaccess
:100644 100644 27127f9073a2af8bdad416b623bf16815d93a297 152977627cc654b886200f5c1af89f6684510820 M README.md
:040000 040000 5506947e532f2414c1536fa436ce0483f0490e3d ce9cb4e3993a2ae5acbdca51245ad0eb6e15f7ee M libs
:040000 040000 85e1d5fa912600a2601479cbac9893b05a6a049b 01e3a5818f89c9cde13146fc86bc7687560da901 M public

Unfortunately, this appears to be a big library update :/

Undefined offset: 2 after upgrading from 2.11 to 2.12

by chrisguidry, Sunday, September 28, 2014, 17:09 (3556 days ago) @ chrisguidry

Found the issue, and I think I've fixed it in https://github.com/SSilence/selfoss/pull/572.

RSS Feed of thread
powered by my little forum