Closed (fixed)
Project:
Hierarchical Select
Version:
5.x-3.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
12 May 2008 at 13:27 UTC
Updated:
26 Jun 2008 at 01:01 UTC
[Mon May 12 17:22:29 2008] [error] [client 77.51.4.188] PHP Fatal error: Unsupported operand types in /var/www/vhosts/osimag.ru/httpdocs/sites/all/modules/hierarchical_select/hierarchical_select.module on line 1315, referer: http://osimag.ru/node/2215
i got this error with latest dev release
there wasn't this error in release from 4 may
Comments
Comment #1
wim leersEither upgrade to the latest CVS version and report the new line number, or tell me the the version number listed at the top of the file.
Comment #2
artem.pankov commented/ $Id: hierarchical_select.module,v 1.63 2008/05/10 19:33:23 wimleers Exp $
and for .info
; $Id: hierarchical_select.info,v 1.9 2008/04/28 17:54:57 wimleers Exp $
name = Hierarchical Select
description = Simplifies the selection of one or multiple items in a hierarchical tree.
dependencies = jquery_update
package = Form Elements
; Information added by drupal.org packaging script on 2008-05-11
version = "5.x-3.x-dev"
project = "hierarchical_select"
datestamp = "1210464427"
Comment #3
wim leersI can't reproduce this. I think you need to tell me what your exact settings are… The easiest way to do that, is by looking at the variable table and sending me the value of the
hierarchical_select_config_taxonomy-1entry.Comment #4
artem.pankov commentedit's a PHP fatal error, not JS.
where can i get the variable table for it?
Comment #5
wim leersUhm yes, I'm talking about the "variable" table in your MySQL database.
Comment #6
wim leersBump! Got more information?
Comment #7
jeff h commentedI get this error too:
My hs_config_taxonomy-1 =
a:5:{s:9:"config_id";s:10:"taxonomy-1";s:12:"save_lineage";i:0;s:15:"enforce_deepest";i:0;s:12:"level_labels";a:2:{s:6:"status";i:0;s:6:"labels";a:0:{}}s:7:"dropbox";a:3:{s:6:"status";i:0;s:5:"title";i:0;s:5:"limit";i:0;}}Comment #8
jeff h commentedMarked critical because, in my case at least, this is enough to break my site pretty badly.
Comment #9
jeff h commentedOK, in discussion with dgtlmoon, thinking about your code at 1339:
$hierarchy->levels[0] = array('none' => '<'. t('none') .'>') + $hierarchy->levels[0];we believe the above should be replaced with:
$hierarchy->levels[0][] = array('none' => '<'. t('none') .'>');This array appendage is done several times in your code; not sure if they all should be modified to the above syntax. Thoughts?
Comment #10
jeff h commentedIt seems I got the above error due to a code conflict from vocabselect.module. Still not sure if the above code is potentially problematic though; please close this issue if you wish.
Comment #11
wim leersJeff: the code you mention in #9 is correct, it is to *prepend* the "<none>" option before all other options. Similarly for all other times that I use that syntax.
I'll try to reproduce the problem with the vocabselect module.
Comment #12
jeff h commentedAh yes of course. Sorry :(
Comment #13
wim leersDo you still have this problem after updating to the newest version of HS?
If yes, please send me your config *again*, but use http://wimleers.local/hs3/admin/settings/hierarchical_select/configs this time to export your config.
Comment #14
wim leersI very strongly suspect this has been solved indirectly in my patching spree of the past 2 days. Feel free to reactivate if it turns out that this is not fixed. Cleaning up the issue queue :)