Illegal Offset Warning

Hi,
When I submit a new story, I often get this warning in a red/pink bar: warning: Illegal offset type in .../sites/all/modules/drigg/drigg/drigg.module on line 963.

Though this does not stop a user from submitting a story, but it looks so ugly!

How to suppress this warning?

Whichversion?

Hi,

Please let me know which version of Drigg you're using precisely, and what's in that line!

Have you followed the install procedure _religiously_?

Merc.

Yes

I've been following all the steps as described in Download and Install section and it's the express install. The version is 5.7 (downloaded from here -> http://ftp.drupal.org/files/projects/drupal-5.7.tar.gz). Also, when I use drigg theme, it doesn't show the category for a story/scoop. It gives something like Category: Tags .... I'm just ready to publish my site online with a new theme based on FSdaily. But these two problems are driving me nuts!

I don't get it...

Hi,

Please clarify...
You are saying that you followed the "express install, and yet you point to Drupal 5.7 which would be the "manual" install. Did you mean to say that you install it from drigg-distr.tgz?

Also, please see my question:

"Please let me know which version of Drigg you're using precisely, and what's in that line!"

See that "What's in that line"...

Please let me know. I need _very_ precise, specific and accurate information in order to help...

Merc.

Got the culprit line

Sorry to confuse you I did the express install (ie drigg-distr.tgz)

I found that following line in the file /sites/all/modules/drigg/drigg/drigg.module is causing the problem. When I comment it out, it gives no warning. Commenting this out should not be the best way as we are inserting $safe_section later in the database. Any suggestion how to deal with this line?

$safe_section=$tl['lookup'][$t]['safe_name'];

I guess above line is also the cause for not displaying my category as it doesn't enter anything in the safe_section column in the database

I just did...

Hi,

I just played with drigg-distr.tgz, and could not reproduce the problem.
However, it looks like your database is missing something rather important.

What do you get from this query:

select * from variable where name='drigg_section_list';

What happens if you run the "Mass recalculation for category aliases"? Does the query above change? What if you edit a Drigg category? You don't need to change anything -- just edit any category. Does the query above change?

Also, most importantly: did you set the right section in "The vocabulary that will be used to define sections" ?

Merc.

It was because...

I know know where the problem was I for some reason deleted the Category vocabulary and created my own. So, it was not working. I reinstall everything and now it is working fine.

I think if we can link the section_link to any vocabulary we want, it will give us a lot of flexibility. Also if we can link more than one vocabulary to one scoop, the sub-categorizing problem could be solved to some extend. For eg. I can create a generalized lists for a category/vocabulary such as National and International. In another category list I can create a list such as news, games, software, hardware etc. If both of these categories can be linked together, sub-categorization is implemented.

BTW my site is now up and running http://www.netkhabar.com. Had to do a lot of hackings to give it a similar look to fsdaily.com (I loved the theme of fsdaily). Though there are still some glitches, I hope to sort out them soon.

Thanks Merc for your wonderfull support