Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: billy2 on March 20th, 2012, 03:35 PM

Title: Uninitialized string offset
Post by: billy2 on March 20th, 2012, 03:35 PM
Notice: Uninitialized string offset: 562 in /Sources/Subs-BBC.php on line 514

this also on home page  - gone now
Title: Re: Uninitialized string offset
Post by: Arantor on March 20th, 2012, 03:39 PM
Hmm, interesting.

This tells me there's potentially two separate bugs here :/

(Firstly, the debug information should not be shown to anyone except admins, and secondly why there is an uninitialised string offset)
Posted: March 20th, 2012, 03:37 PM

Hmm, first glance would suggest a strange bug separately occurring in the bbc parser (in an area we haven't touched AFAIR), perhaps with cached content. Whatever, there's definitely an issue as indicated by the rate of stuff in the error log...
Title: Re: Uninitialized string offset
Post by: Nao on March 20th, 2012, 04:14 PM
I'll look into it. Blame me, I'm watching a recording of the 40th anniversary special of Countdown (well the original French version of course). I'm f'ing old. I should be working on the 10000 bugs I could fix right now.

Only things I did today were adding the Facebook link in the footer and making the previous SMF-based website browsable (not perfect but it has so many hardcoded links, shame on me), in case we need to compare features. Won't post URL in public but it's easy to guess.
Title: Re: Uninitialized string offset
Post by: Arantor on March 20th, 2012, 04:16 PM
You might want to put said version into a robots.txt Disallow rule, looking at the logs.

I'm currently trying to hammer out a log viewer for BB so I can really start examining WTF is going on with some of these things.
Title: Re: Uninitialized string offset
Post by: Nao on March 20th, 2012, 04:18 PM
Also, please don't post full paths to errors. I edited yours to hide it. I don't think it can be exploited but I won't take any chances ;)

Robots.txt nope: non conforming robots could discover the URL this way. I added noindex everywhere but again - won't take any chances!
Title: Re: Uninitialized string offset
Post by: Arantor on March 20th, 2012, 04:25 PM
Quote
Robots.txt nope: non conforming robots could discover the URL this way. I added noindex everywhere but again - won't take any chances!
They could discover it anyway. I'm pretty sure certain bots already know about it already in fact.
Title: Re: Uninitialized string offset
Post by: billy2 on March 20th, 2012, 05:29 PM
Quote from Nao on March 20th, 2012, 04:18 PM
Also, please don't post full paths to errors. I edited yours to hide it. I don't think it can be exploited but I won't take any chances ;)
Noted :cool: