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

www.book-of-light.com

#1

MiaMia - August 13, 2008 - 00:06

I confirm this - have had the same problem and had to disable the module.

#2

thomas23@drupal.org - September 14, 2008 - 15:19
Version:6.x-1.0-beta1» 6.x-1.x-dev

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

matt2000 - September 28, 2008 - 11:14

+1 confirming.

#4

dropcube - October 3, 2008 - 02:07
Assigned to:Anonymous» dropcube

I will fix the bug soon.

#5

prophetsearcher - October 6, 2008 - 07:56

+1, but it is SUCH a relief to figure out what's been causing those errors!

#6

will_in_wi - October 16, 2008 - 18:59

confirming (or subscribing). Will see if I can figure out the problem.

#7

will_in_wi - October 16, 2008 - 19:13

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

zilla - October 26, 2008 - 03:18

has this been rolled up?

#9

equalspeterd - November 18, 2008 - 22:10

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

dawnsong - December 11, 2008 - 10:10

+1 for drupal 6.6
Hope it would be fixed.

#11

mateomiguel - December 13, 2008 - 14:56

+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

Dave Reid - December 28, 2008 - 04:35

The changes in #9 are not necessary. The default parameter is array() anyway.

#13

Dave Reid - December 28, 2008 - 04:51
Status:active» needs review

Patch for 6.x-1.x.

AttachmentSize
294397-communitytags-D6.patch 1.05 KB

#14

jcmarco - January 22, 2009 - 20:00
Status:needs review» reviewed & tested by the community

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

khawaja - February 1, 2009 - 12:14

Confirming the patch works with 6.x-1.0-beta1.

#16

interfaced - February 24, 2009 - 00:23

Here's the fix, I think its the same thing:
http://drupal.org/node/362799

#17

Omar - March 8, 2009 - 10:33
Status:reviewed & tested by the community» fixed

Committed.

#18

System Message - March 22, 2009 - 10:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.