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

Patrick Nelson’s picture

kayfish,

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.

Renirtor’s picture

I 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! :-)

Patrick Nelson’s picture

OK, I have the subscriptions module installed too. What about you, kayfish?

dziemecki’s picture

I'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?

michelle’s picture

I have this error and subscriptions installed. Haven't had a chance to try and isolate it, yet.

Michelle

Renirtor’s picture

Version: » 4.6.x-1.x-dev

I 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.

Patrick Nelson’s picture

Renirtor's fix works for me.

jmiccolis’s picture

Version: 4.6.x-1.x-dev » master

Renirtor 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.

jmiccolis’s picture

It 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

dziemecki’s picture

Assigned: Unassigned » dziemecki
Status: Active » Fixed

Thanks for the detective work. I've applied the suggested fix to 4.6. 4.7, and cvs.

Anonymous’s picture

Status: Fixed » Closed (fixed)