Download & Extend

Fatal error: Cannot use string offset as an array drigg.module line 1014

Project:Drigg
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi,
I did a fresh install with the most recent drigg .dev version (25 Feb 2011) and after a while I started having
Fatal error: Cannot use string offset as an array drigg.module line 1014

you can read more about the cause of such fatal error here http://informationideas.com/news/2006/06/14/fatal-error-cannot-use-strin...
so I added $t = array(); just above the line 1014, but that opened a new can of warms: $section_links were not printing into the theme and also the dummy category (which I call "Please choose one") now appears among the options.

I've been with drigg for 3 years and never had an issue like this. I compared line 1014 with an earlier .dev version and it seems like the problem is cased by $t which used to be $tl

so please in drigg.module on line 1014 change the line
$safe_section = $t['lookup'][$t]['safe_name'];
back to
$safe_section = $tl['lookup'][$t]['safe_name'];

PS: it great to see that at least someone is maintaining Merc's masterpiece. Merc, where are you - we miss you!!! Please-please come back!

nobody click here