I have been using RC3 quite successfully and went today to upgrade to RC5. I now get a whitescreen when viewing any node. If I go to the edit url (node/1234/edit) of the node everything works as expected including HS. If I disable the HS for Taxonomy module everything works but then for my purposes I might as well not have HS installed. I changed the theme to Garland in case something weird was happening in a block or the theme itself but still whitescreen on node view. If I rollback to RC3 all is well.
I spent some time turning on/off any other module that I thought might be conflicting but so far the only way I can cause/remedy the problem is to flip between RC3 and RC5.
My particulars are Drupal 5.10, PHP 5.2.6 and MySQL 4.1.22
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | 317836_token-support_18.patch | 3.12 KB | wim leers |
| #15 | 317836_token-support.patch | 2.63 KB | wim leers |
Comments
Comment #1
bennos commentedSame problem. edit does not work anymore. just viewing the page does not work also, what makes me a little bit confused, because there is no HS on the published node.
Error Log entry:
2008-10-07 03:50:23: (mod_fastcgi.c.2610) FastCGI-stderr: PHP Fatal error: Cannot use object of type stdClass as array in /var/www/.../httpdocs/sites/all/modules/hierarchical_select/hierarchical_select.module on line 1845
Comment #2
bennos commentedforgotten. changing priority to critical.
Comment #3
wim leersI suspect this is the same bug as http://drupal.org/node/317765. (Also caused by Token crappiness.)
Please try the dev tarball, in which this has been fixed.
Comment #4
rokrSame problem here. And doesn't work with 5.x-3.x-dev (2008-Oct-07)
Same error message at WSOD when viewing/editing the node:
Fatal error: Cannot use object of type stdClass as array in /www/htdocs/sites/all/modules/hierarchical_select/hierarchical_select.module on line 1845Comment #5
wim leersTry commenting out all "token" functions for a minute, to see if that fixes the problem.
Comment #6
grahamba commentedJust tried dev (2008-Oct-07) and still a bust. I tried RC4 and that seems to be where the problem starts for me. Whitescreen on node view and if I do edit a node and hit submit these errors show up in the log
* warning: Invalid argument supplied for foreach() in D:\apache\htdocs\mediadev\sites\all\modules\hierarchical_select\hierarchical_select.module on line 1841.
* warning: Invalid argument supplied for foreach() in D:\apache\htdocs\mediadev\sites\all\modules\hierarchical_select\hierarchical_select.module on line 1916.
* warning: Invalid argument supplied for foreach() in D:\apache\htdocs\mediadev\sites\all\modules\hierarchical_select\modules\hs_taxonomy.module on line 415.
With RC3 all is well.
Comment #7
grahamba commentedOk I nuked all the token stuff from the hs_taxonomy.module (the latest dev) and all is well. So for me at least the problem seems to be there.
Comment #8
nath commentedCronjobs fail with that message as well. Will try the dev version.
Comment #9
nath commentedThe dev version (at least the one linked from the modules page) doesn't fix this.
Comment #10
wim leersnath: please try to do the same as grahamba. That'd confirm my suspicion.
Comment #11
nath commentedI'm not sure what I should comment out. Could you give me a hint?
Comment #12
wim leersThese two functions:
function hs_taxonomy_token_list() { … }
function hs_taxonomy_token_values() { … }
Comment #13
nath commentedThanks, this seems to have worked. At least, the cron run finishes.
Comment #14
wim leersSo … Token is an even weirder beast than I thought :( I'll have to add better detection.
Comment #15
wim leersOk, undo your manual changes to hs_taxonomy.module and apply this patch instead. (How to apply a patch: http://drupal.org/patch/apply.)
Comment #16
nath commentedSeems to work.
Comment #17
grahamba commentedAfter patching I no longer get a whitescreen on node view but I get these errors after editing a node
* warning: Invalid argument supplied for foreach() in D:\apache\htdocs\mediadev\sites\all\modules\hierarchical_select\modules\hs_taxonomy.module on line 433.
* warning: Invalid argument supplied for foreach() in D:\apache\htdocs\mediadev\sites\all\modules\hierarchical_select\hierarchical_select.module on line 1843.
* warning: Invalid argument supplied for foreach() in D:\apache\htdocs\mediadev\sites\all\modules\hierarchical_select\hierarchical_select.module on line 1918.
* warning: Invalid argument supplied for foreach() in D:\apache\htdocs\mediadev\sites\all\modules\hierarchical_select\modules\hs_taxonomy.module on line 452.
Comment #18
wim leersReroll, with extra failproof detection that hopefully cover your problems, grahamba.
Comment #19
grahamba commentedPatch applied to dev and seems to have done the trick. HS works as usual and no whitescreen on node view and no errors on node edit or node creation. Yay! Again, thanks for an awesome module and taking care of the token wackiness.
Comment #20
wim leersAwesome! :) Committed!
Comment #21
rokrI've just tested rc6 and everything works for me now. Thanks!
Comment #22
wim leersGreat :)
Comment #23
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.