Closed (fixed)
Project:
Flexinode
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
7 Apr 2006 at 17:58 UTC
Updated:
30 Apr 2006 at 21:15 UTC
I recently upgraded from V4.7-beta 6 to the head versions of drupal, flexinode, and event.
I now receive the following warning whenever I view any event.
warning: Illegal offset type in /home/www/home/modules/flexinode/flexinode.module on line 452.
I'm not sure if this is an issue with flexinode or with event.
Thanks
Comments
Comment #1
Patrick Nelson commentedkayfish,
I have the same issue - appears on certain pages affected by or related to flexinode types.
We need a few more people with the same problem so we can pin it down. I have a different line number to you.
Can you also tell me what code is on your line 452? Again, just so we can compare.
Comment #2
Renirtor commentedI have the same error(same line), but I discovered that disabling the "subscriptions" module it does not show up anymore.
I'm using Drupal version 4.7RC1 and on line 452 of flexinode.module (v 1.68) I have:
return $types[$type]['name'];
Hope this info will be useful, ciao! :-)
Comment #3
Patrick Nelson commentedOK, I have the subscriptions module installed too. What about you, kayfish?
Comment #4
dziemecki commentedI'm not using flexinode, but I'll install it and see if I can dupe the bug. Can one of you tell me the fastest way to make this error happen?
Comment #5
michelleI have this error and subscriptions installed. Haven't had a chance to try and isolate it, yet.
Michelle
Comment #6
Renirtor commentedI found that the solution suggested in this topic:
http://drupal.org/node/50422
works for this issue as well.
So on line 452 of flexinode.module (v 1.68) I had:
return $types[$type]['name'];
after changing it to:
return $types[(string)$type]['name'];
the warning disappeared.
I'm sorry if I'm not providing a patch, but I'm still new and really don't have time to learn how to create one right now.
Comment #7
Patrick Nelson commentedRenirtor's fix works for me.
Comment #8
jmiccolis commentedRenirtor did you mean to set this issue to 4.6? I'm having this same issue on 4.7, and it looks like that is what it was originally tagged with, so I'm setting it to 'cvs'
Also, I can see why casting the $type variable as a string would fix the error - however it seems to me that this is probably really an issue of something calling flexinode_node_name() incorrectly, as opposed to a missing string cast.
Comment #9
jmiccolis commentedIt seems like this isn't a problem with flexinode, and like some of the folks who posted above - I've tracked my problem down to the subscriptions module, and was able to fix it there. http://drupal.org/node/57844
Comment #10
dziemecki commentedThanks for the detective work. I've applied the suggested fix to 4.6. 4.7, and cvs.
Comment #11
(not verified) commented