Hi,

I upgraded to 7.x-3.0-alpha2 on Drupal 7.15 and enabled "Local tribune" and "Tribune" modules. After that I posted a new tribune node, and I got the following error message when I try to open this new node:

Fatal error: [] operator not supported for strings in /home/site/public_html/includes/common.inc on line 2358

If I change the node status from published to unpublished, I can open the new tribune node as administrator without any issue, but if I . Please advice.

Thanks,
otto

Comments

SeeSchloss’s picture

Assigned: Unassigned » SeeSchloss

Are you sure this only happens on tribune nodes?

As far as I know this function (l(), apparently called somewhere with the option 'class' => 'some string' when 'class' should be an array of strings) is not used from the tribune module, so I believe this could come from another active module on your installation (and the incompatibility might be the tribune module's fault, too).

Can you tell me which non-core modules are enabled on your site so I can check this?

ottos’s picture

Hi,

I have enabled the following core and additional modules. My first guess is Pathauto 7.x-1.2, but you are the expert:

Core modules:
-------------------

Block 7.15
Blog 7.15
Color 7.15
Comment 7.15
Contextual links 7.15
Dashboard 7.15
Database logging 7.15
Field 7.15
Field SQL storage 7.15
Field UI 7.15
File 7.15
Filter 7.15
Image 7.15
List 7.15
Locale 7.15
Menu 7.15
Node 7.15
Number 7.15
Options 7.15
Overlay 7.15
Path 7.15
Poll 7.15
Search 7.15
Shortcut 7.15
System 7.15
Taxonomy 7.15
Text 7.15
Toolbar 7.15
Tracker 7.15
Update manager 7.15
User 7.15

Additional modules:
-------------------------

Chaos tools 7.x-1.2

Display Suite 7.x-2.0-beta2

Feeds 7.x-2.0-alpha5
Feeds Admin UI 7.x-2.0-alpha5
Feeds Comment Processor 7.x-1.x-dev
Feeds XPath Parser 7.x-1.0-beta3

Gallery Formatter 7.x-1.2

File (Field) Paths 7.x-1.0-beta3
File Field Sources 7.x-1.4
FileField Sources Plupload 7.x-1.x-dev

Plupload integration module 7.x-1.0
Video 7.x-2.7
Video UI 7.x-2.7
Video.js 7.x-2.2
Zencoder API 7.x-2.7

Backup and Migrate 7.x-2.4
Colorbox 7.x-1.3
Image Matrix 7.x-1.x-dev
Job Scheduler 7.x-2.0-alpha3
Libraries 7.x-2.0
Pathauto 7.x-1.2
Persistent Login 7.x-1.0-beta1
Plupload widget 7.x-1.0-alpha1
Redirect 403 to User Login 7.x-1.5
Token 7.x-1.2
Transliteration 7.x-3.1

Printer, email and PDF versions
Printer-friendly pages 7.x-1.1

Local tribune 7.x-3.0-alpha2
Tribune 7.x-3.0-alpha2

Menu Views 7.x-1.3
Views 7.x-3.5
Views Galleriffic 7.x-1.1
Views Slideshow 7.x-3.0
Views Slideshow: Cycle 7.x-3.0
Views UI 7.x-3.5

SeeSchloss’s picture

Would you happen to be using the Marinelli theme, by chance?

I see that it seems to have this bug in node--teaser.tpl.php, though I can't test it right now myself.

In case you are using Marinelli, could you try replacing on line 41:
'class' => t('node-readmore-link')
with:
'class' => array(t('node-readmore-link'))
and tell me if it fixed your problem?

SeeSchloss’s picture

Oh well, I just found this bug on the marinelli project:
#1237020: Fatal error: [] operator not supported for strings in example.com\includes\common.inc on line 2319

Although if you're not using this theme, it might still be another module's fault.

ottos’s picture

Yes, you are on the right way, but I have Antsin - BlogBuzz II 7.x-1.0-rc2 theme on my site. I tested it, and if I switch to the core Bartik 7.15 theme, my tribune is working fine!

SeeSchloss’s picture

Project: Tribune » BlogBuzz
Version: 7.x-3.0-alpha2 » 7.x-1.0-rc2

OK, I looked at their code and it seems they have the exact same bug, in node.tpl.php.

From http://drupalcode.org/project/blogbuzz.git/blob/refs/heads/7.x-1.x:/temp...
I can tell you to replace
'class' => t('node-readmore-link')
with:
'class' => array(t('node-readmore-link'))
on line 46 of node.tpl.php

Please tell me if it solves the error (though I'm pretty sure this is it, so I'm changing the project of this issue to BlogBuzz).

ottos’s picture

Yes, it solved the issue! Thank you for your help!

SeeSchloss’s picture

Assigned: SeeSchloss » Unassigned
Status: Active » Reviewed & tested by the community

You're welcome, I like it when the bug doesn't come from my module ;-)

chandra.drupal’s picture

oh grt its working dude for both marinelli and blog buzz

lakimy2k’s picture

Project: BlogBuzz » Drupal Commons
Version: 7.x-1.0-rc2 » 7.x-3.2

I face thesame issue on my website that whenever i click on login, or signup link it throws the error : Fatal error: [] operator not supported for strings in common.inc on line 2426. Pls i need help

Devin Carlson’s picture

Project: Drupal Commons » BlogBuzz
Version: 7.x-3.2 » 7.x-1.0-rc2

common.inc is the name of a file included with Drupal core. It isn't related to Drupal Commons. ;)

Devin Carlson’s picture

harsh111’s picture

Thank you This worked for me.