Hi, i have this warning:
warning: Illegal offset type in isset or empty in /home/www/web68/web/sites/empresa.galiciadigital.com/modules/notifications/notifications.module on line 467.
What can i do?
Hi, i have this warning:
warning: Illegal offset type in isset or empty in /home/www/web68/web/sites/empresa.galiciadigital.com/modules/notifications/notifications.module on line 467.
What can i do?
Comments
Comment #1
gmak commentedI've got the same error (but referring to line 469). This appears on a node creation form for a CCK node.
Comment #2
jose reyero commentedSince I'm doing some major rework and code clean up, It is a bit hard to follow line numbers. I think this one is fixed though in latest code. Please reopen if not (but mention the function name or piece of code too, please)
Comment #3
entrigan commentedI get the same error: "warning: Illegal offset type in isset or empty in /Applications/MAMP/htdocs/repo/k6/sites/all/modules/notifications/notifications.module on line 444."
Watchdog logs it twice, as follows:
Location http://localhost/repo/k6/node/add/farm
Referrer http://localhost/repo/k6/user/1/notifications
Message Illegal offset type in isset or empty in /Applications/MAMP/htdocs/repo/k6/sites/all/modules/notifications/notifications.module on line 444.
Location http://localhost/repo/k6/node/add/farm
Referrer http://localhost/repo/k6/node/add/farm
Message Illegal offset type in isset or empty in /Applications/MAMP/htdocs/repo/k6/sites/all/modules/notifications/notifications.module on line 444.
Hopefully that helps (btw this is with 4.x-dev checked out april 10th)
Comment #4
pribeh commentedI get it on every page. line 467 for me (April 14th beta1).
Comment #5
pribeh commentedI updated to latest Dev and now I get the following aloft a white screen :
Call to undefined function notifications_ui_build_links() in /var/www/blah.com/sites/all/modules/notifications_extra/notifications_nice/notifications_nice.module on line 21
Perhaps this is another issue.
Comment #6
pribeh commentedlast (probably separate) bug reported in #5 goes away after updating to latest dev of both messaging and notifications. But bug reported in this issue remains :(
Thanks for your hard work guys.
Comment #7
pribeh commentedAs of the recent April 26th Beta 2 update the illegal offset shifts to line 594.
Comment #8
pribeh commentedI'm reopening since I'm still experiencing this.
Comment #9
gmclelland commentedI am experiencing this bug as well at line 594 using Beta 2 Messaging and Notifications.
I see it when I goto admin/messaging/notifications/events
It shows
* warning: Illegal offset type in isset or empty in /var/aegir/platforms/drupal/drupal-6.16/sites/dp2.devsites.com/modules/notifications/notifications.module on line 594.
* warning: Illegal offset type in isset or empty in /var/aegir/platforms/drupal/drupal-6.16/sites/dp2.devsites.com/modules/notifications/notifications.module on line 594.
Hope that helps
Comment #10
gmclelland commentedI think this might be caused by http://drupal.org/project/notifications_extra. When I disable those modules the error goes away. Is everyone else using this module? Just curious.
Comment #11
pribeh commentedYa, it seems to be caused by certain notifications_extra modules. I still can't figure out which though.
Comment #12
jose reyero commentedOk, that kind of explains everything.
The notifications_extra pack is not up to date with latest 4.x-beta2. It will be in a few days (I think we'll skip beta2 ans sync it up to beta3).
Postponed till we can release next beta, later this week.
Comment #13
pribeh commentedGreat stuff Jose. I'll test it as soon as beta 3 comes out. Thanks.
Comment #14
pribeh commentedHi,
I've updated to the beta3 of both Messaging and Notifications, have uninstalled notifications_extra and now receive the following upon viewing a node (which is setup for allowing subscriptions):
Fatal error: Cannot use object of type Notifications_Subscription as array in /var/www/blah.com/includes/form.inc on line 893
Comment #15
okday commentedsubscribing
Comment #16
carlitus commentedI have the same error when I enable the checkbox in the comment form:
Warning: Invalid argument supplied for foreach() in sites/all/modules/notifications/includes/object.inc on line 460
Fatal error: Cannot use object of type Notifications_Subscription as array in includes/form.inc on line 893
Comment #17
sethviebrock commentedsubsc
Comment #18
sethviebrock commentedFYI downgrading to Beta 1 from B2 or B3 fixes the issue for me.
Comment #19
jose reyero commentedCheck out Beta 4
Comment #20
carlitus commentedI've upgraded to beta 4 (messaging y notifications), then update.php and I've the same error:
Warning: Invalid argument supplied for foreach() in sites/all/modules/notifications/includes/object.inc on line 468
Fatal error: Cannot use object of type Notifications_Subscription as array in includes/form.inc on line 893
This only happens when I enable the checkbox in the comment form in admin/messaging/notifications/subscriptions/ui page
Comment #21
escoles commentedConfirming Carlitus's experiences: Also at beta 4 for messaging, notifications and notifications extras. as far as I can see, the only notifications extra module I have activated is auto-subscribe -- I get the Fatal Error when I try to create a comment while logged in as a user who is set to auto-subscribe.
Comment #22
jose reyero commentedIt's kind of weird because comment notifications, the ui and auto-subscribe are in the main notifications package, not in notifications_extra.
I'd need someone to enable the modules one at a time and let me know which is the one actually causing the issue.
Comment #23
pribeh commentedk, I'll try to do that this weekend.
Comment #24
hayk commentedI have similar issue nearly in every page
warning: Illegal offset type in isset or empty in sites\all\modules\notifications\notifications.module on line 612.
6.x-4.x-dev and older version
Provided is dump of variable $key in function
notifications_event_enabled($key, $default = TRUE)As you can see in function it is used as key for $info array, but it already an array and php dispatched warning.
Where this key generated and why it is array?
As i can see maybe roots of this error from notifications_array_info function.
Comment #25
anea02 commentedI was experiencing the same issue. I disabled 'cck notifications' and the issue went away. Disabling this module also solved this issue for me: http://drupal.org/node/789444#comment-4725014
Regards
Adam
Comment #26
bsandor commentedI have the same message:
warning: Illegal offset type in isset or empty in /Applications/MAMP/htdocs/XXX/sites/all/modules/notifications/notifications.module on line 612.
Using:
Notifications 6.x-4.0-beta7
notifications_extra 6.x-4.0-beta5
messaging debug on
cck notifications off
nice links off
FeedAPI Subscriptions off
Message notifications off
Comment subscriptions off
Not using CCK Notifications.
Getting this message when I:
- create a node (node/add/event, node/add/signup [cck signup])
- when these nodes are created
- deleting same node
Not getting this error message when I create page or story types.
When I switch messaging debug off still have same message.
----------------
line 612 is the last line here:
function notifications_event_enabled($key, $default = TRUE) {
$info = variable_get('notifications_event_enabled', array());
$status = isset($info[$key]) ? $info[$key] : $default;
----------------
This error message disappears in each node types when I switch off 'Subscription settings' / 'Allowed subscription types' / 'Thread' respectively.
Comment #27
bsandor commentedI also use 'CCK Signup 6.x-1.0-beta2' with its 'CCK Sign-up notifications 6.x-1.0-beta2'.
I cant enable 'Event Reminder' on Notifications settings / Events / Configure.
(
warning: Illegal offset type in isset or empty in sites/all/modules/notifications/notifications.module on line 612.
)
-----------------------
I also noticed that immediate sending interval doesn't work but all the rest is working fine!!