I received the following error :

warning: array_search() [function.array-search]: Wrong datatype for second argument in C:\wamp\www\golf-my\sites\all\modules\admin_menu\admin_menu.module on line 141.

CommentFileSizeAuthor
#3 admin_menu.module_7.patch1.01 KBsun

Comments

sun’s picture

Title: Error messsge » Error message
Status: Active » Postponed (maintainer needs more info)

Could you please supply further information?

- Where do you encounter this error? On certain pages or all pages?
- Is Admin Menu displayed or not?
- Do you still encounter the error if you disable Admin Menu?
- Which other modules are enabled?
- Do you still encounter the error if you disable all other contrib modules?
- Webserver including version
- PHP version

najibx’s picture

- Where do you encounter this error? On certain pages or all pages?
Only on content type that is associated with OG ... simple page type, event, classified, blog, forum ...

- Is Admin Menu displayed or not?
Admin Menu being display always

- Do you still encounter the error if you disable Admin Menu?
Error gone when disable Admin Menu. Done this twice.

- Which other modules are enabled?
I have so many to list here. I think the conflict is with OG. it's the latest og-5.x-4.0-rc11

- Do you still encounter the error if you disable all other contrib modules?
can't afford to do this. maybe with fresh install with og?

- Webserver including version
I use local server with WAMP5 - Apache/2.2.4 (Win32)

- PHP version
5.2.3

sun’s picture

Assigned: Unassigned » sun
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new1.01 KB

I think I have found a possible reason for this warning. Please test and report back if this patch works for you.

Maybe I should increase PHP's error reporting level...

sun’s picture

Title: Error message » Wrong datatype for second argument in array_search
Status: Needs review » Fixed

Committed that patch.
Feel free to re-open this issue if you still encounter this bug after updating to the lastest development snapshot (approx. available in 12 hours).

najibx’s picture

Great, work like a charm.

Thanx sun.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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