I have FAQ's configured as categories which link to seperate pages of FAQs. When I view the top level index page, I get this error:

Notice: Undefined offset: 3 in faq_page() (line 550 of /home/impactsurvey/htdocs/sites/impactsurvey.org/modules/faq/faq.module).

This may be related to a previous error I reported, http://drupal.org/node/1033086 I am not sure why its different now.

CommentFileSizeAuthor
#1 1041344-fix-undefined-offset.patch670 bytesbrianV

Comments

brianV’s picture

Status: Needs work » Needs review
StatusFileSize
new670 bytes

Attached patch should clear up this notice.

brianV’s picture

Title: Undefined offset » Undefined offset: 3 in faq_page() (line 550 of /modules/faq/faq.module).

Just making the title a little more accurate for now.

mortona2k’s picture

I think that worked! Thanks Brian, you rock!

s@ilor’s picture

Maybe related?

I have this error:

Fatal error: Call to undefined function token_get_list() in .....\sites\all\modules\faq\faq.module on line 1478

It appears, when I click to configure the Pathauto module(?)

If I'm in the wrong place here, please direct me to the correct one.

Thanks,

brianV’s picture

@Drunkensailor: Please put that in it's own issue - it's not related, but probably a simple fix.

Fanaile’s picture

I was coming to search for a similar error message that I received:

"Undefined offset: 4 in faq_page() (line 549 of..."

So, I thought maybe it was close enough - and applying the patch did work and get rid of the error as well.

mortona2k’s picture

Status: Needs review » Reviewed & tested by the community

I just updated to the Feb 24 dev release, which doesn't include this patch, and the error returned. This patch works, get it in the module. Fanaile, the new update we're using doesn't have the ID line at the top of the file, so its line 549, don't know why...

flightrisk’s picture

I'm the one running into this. I'll try to put it in its own issue. It isn't limited to just the the pathauto configuration. Several places in drupal when clicking on things or saving things gives me this error.

stella’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.