Fatal Error; Unsupported operand types in ....../includes/common.inc on line 1265
mmmweb - August 12, 2008 - 16:53
| Project: | Community Tags |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | dropcube |
| Status: | closed |
Description
HI there,
I was experiencing this error for Anonymous users when clicking on content titles or the read more link. As soon as the Community Tags module was disabled, the error went away. Discussed a bit in this thread: http://drupal.org/node/290915
Just wanted to mention this here so the developers are aware.
If you need more info on my installation, please let me know. I have loads of modules and 6.3 installed with PHP and SQL 4.
Thanks for a great module....would still like to use it once the bugs are worked out!
Peace!
Melanie

#1
I confirm this - have had the same problem and had to disable the module.
#2
This error unfortunatelly still persists with the -dev version. Only that common.inc complains in line 1275; I suppose because it's D6.4 in the meantime.
Would anybody be so nice to tell me how to debug this? Best would be a command line (print?) as I have done very little php.
Cheers.
#3
+1 confirming.
#4
I will fix the bug soon.
#5
+1, but it is SUCH a relief to figure out what's been causing those errors!
#6
confirming (or subscribing). Will see if I can figure out the problem.
#7
to fix, replace both instances of $destination with array('query' => $destination) on line 44 of community_tags.pages.inc
It was an issue with a change in api of the url function between d5 and 6.
#8
has this been rolled up?
#9
In addition to the adjustment in community_tags.pages.inc cited in #7, you also need to pass null arrays (reason unknown at the moment) to the two calls in community_tags.module (line 22 in my distro):
from (line breaks are mine for clarity):
return t('To set up community tagging, y... users can tag nodes.',array('@taxonomy' => url('admin/content/taxonomy'), '@workflow' => url('admin/content/types')));
to:
return t('To set up community tagging, y... users can tag nodes.',array('@taxonomy' => url('admin/content/taxonomy',array()), '@workflow' => url('admin/content/types',array())));
running cron.php triggered this facet of the bug for me.
#10
+1 for drupal 6.6
Hope it would be fixed.
#11
+1 I guess its said. I got this error today in a new drupal installation. I did the fixes listed above and the problem went away. Would be nice to have those fixes in the original file.
#12
The changes in #9 are not necessary. The default parameter is array() anyway.
#13
Patch for 6.x-1.x.
#14
I found the same bug today in common.inc (http://drupal.org/node/352344)
And I confirm that this patch is needed and works fine.
#15
Confirming the patch works with 6.x-1.0-beta1.
#16
Here's the fix, I think its the same thing:
http://drupal.org/node/362799
#17
Committed.
#18
Automatically closed -- issue fixed for 2 weeks with no activity.