Last modified: 2012-11-20 21:36:01 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42811, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40811 - PHP Notice: Undefined offset: 1 in extensions/SemanticDrilldown/includes/SD_FilterValue.php on line 30
PHP Notice: Undefined offset: 1 in extensions/SemanticDrilldown/includes/SD_...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticDrilldown (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-05 20:58 UTC by Jamie Thingelstad
Modified: 2012-11-20 21:36 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jamie Thingelstad 2012-10-05 20:58:32 UTC
Semantic Drilldown is generating the following PHP notices in the error log for me:

PHP Notice:  Undefined offset: 1 in /srv/www/mediawiki/public_html/w/extensions/SemanticDrilldown/includes/SD_FilterValue.php on line 30

I'm running MediaWiki 1.19.2, PHP 5.3.10 and Semantic Drilldown 1.2.2 (via git).

The line referenced is:

list( $month_str, $year ) = explode( ' ', $fv->text );
Comment 1 Yaron Koren 2012-10-05 21:02:47 UTC
Is it possible that you're running a filter of type "month" on a property that's not of type "date", or something like that?
Comment 2 Jamie Thingelstad 2012-10-05 21:25:57 UTC
That is entirely possible, but I don't *think* that is the issue. This drilldown generates the error (as do others):

http://roadsignmath.com/wiki/Special:BrowseData/Signs?Posted_on=February_2006

The filter is on Was posted on property

http://roadsignmath.com/wiki/Filter:Posted_on

http://roadsignmath.com/wiki/Property:Was_posted_on

And that property is a date.
Comment 3 Yaron Koren 2012-11-20 19:41:19 UTC
I'm marking this as fixed, since there's now a check in place, as of version 1.2.3, to prevent this error message from appearing. I don't know if the underlying source of the error needs fixing, however.
Comment 4 Jamie Thingelstad 2012-11-20 21:31:29 UTC
At least that will keep log files from being piled up with this notice. I did look at my setup per your earlier comment and I did not see a type issue, but with the level of loose typing going on in (S)MW it's hard to say that with any certainty.
Comment 5 Jamie Thingelstad 2012-11-20 21:36:01 UTC
I updated to newest version from git and these notices are gone.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links