Closed (fixed)
Project:
Lexicon
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2011 at 12:25 UTC
Updated:
1 May 2012 at 09:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
marty2081 commentedHi Tim,
Can you supply some more details about the settings that you use so I can reproduce the error?
Do you have the same problem with the 7.x-1.x-dev version?
Comment #2
marty2081 commentedComment #3
Barfly commentedHello, i had the same problem:
Version:7.x-1.x-dev
When i go to the lexicon page:
Fatal error:[] operator not supported for strings in \includes\common.inc on line 2313
It happened when "superscript" or "icon term" indicator is activated.
The error disapear when i select "icon+term" or abbr , acronym , cite dfn.
With "superscript" or "icon term" activated the error disapear when the "show only the single term" is selected instead of "advance the whole lexicon to the term"
Voila ^^
hope it will help you
Comment #4
marty2081 commentedHi Romain,
Thanks for the info. That helped a lot! I found the problem. If there is a description for a vocabulary, the module will print that on the Lexicon page. To permit the safe use of HTML I ran the check_markup() function that resulted in the mentioned error. Since the description is a plain text field I've changed the check_markup() into the filter_xss() function.
The changes are in 7.x-1.x-dev and will be in 7.x-1.5.
Comment #5
Barfly commentedGlad to be helpfull
Btw congrats for your module it's awesome!
Comment #7
glennnz commentedI'm using 7.8, and this problem exists for me too, exactly as described in #3
Comment #8
Anonymous (not verified) commentedI'm using 7x 1.8 and experiencing the same issue as #3.
I disabled the "Show lexicon term descriptions." option and the error went away.
This is a site with internationalization. Upgrading to dev version did not fix the error.
Comment #9
xadag commentedHi,
I found the same problem when i try to use this version of lexicon.
I solve the problem with this patch, the problem is in the l function in the .module file, it expect attributes parameters class to be an array and not a single string (when we look at the source code of l)
This patch solve the problem.
Comment #10
marty2081 commentedApplied patch in dev branch. Thanks!