Hello,
When I have TSS enabled and I click on preview I get an PHP error:
Warning: Invalid argument supplied for foreach() in /var/www/web/html/site.tld/modules/taxonomy/taxonomy.module on line 70
Kind regards,
nocte
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | taxonomy_super_select-DRUPAL-6--1_preview_fix2.patch | 1.5 KB | dboulet |
| #8 | taxonomy_super_select-371291.patch | 1.1 KB | Gekiboy |
Comments
Comment #1
fourteen40 commentedI'm getting the same error on a fresh install. Thanks
Comment #2
acb commentedAdd me as well; not on node-save, but node preview.
Comment #3
neerjasoftwares commentedI'm also getting this error with drupal 6.9, i'm getting this error when click on preview node button so please help us to resolve this error.
Please do this on urgent basis.
Comment #4
neerjasoftwares commentedI have used "theme_node_preview" into my theme template.php file and change some code in it and this error resolved.
Please use this code if it will solve your problem.
-----------------------
Please remember to remove site cache.
Comment #5
Annakan commentedI can confirm the error on a completely fresh install.
Thanks for the previous hack but I hate to reproduce the whole preview logic just to add such specific code.
And I have a hard time understanding the CAUSE of the problem your hack solve.
It seems to lie in the way freetagings terms are not object in previews but my vocabulary as NO freetaging.
Is it possible to solve the problem at the MODULE level ?
And maybe give an explanation of the problem analysis "neerjasoftwares" did that would help somebody correct the problem at the MODULE level ?
why
if($tid < 1) continue;for example ? what's special about negative tid or the zero one ?thanks a lot for you time.
Comment #6
eresanto commentedTry this http://drupal.org/node/326614#comment-1431404
Cheers
Comment #7
thelostboy commentedsubscribe
Comment #8
Gekiboy commentedI had the same issue. Here's a patch I made to fix it for the 6-1 branch
Comment #9
dboulet commentedHere's an alternative patch, taken from http://drupal.org/node/326614#comment-1866476.
Comment #10
chrisfromredfinI don't know if one person counts as "the community" (so not changing status), but patch in #9 seems to work for me.
Comment #11
eli-tPatch in #9 works for me too.
Comment #12
keva commentedalso confirming that patch in #9 works
Comment #13
Ivanhoe123 commentedThank you, this worked for me. I'm using taxonomy super select with drupal 6.19
I'd rather use a theme-based patch than to change module files.
This way it will stay on the website even when you update the TSS module.
Comment #14
jcisio commentedRTBC #9
Comment #15
jcisio commentedComment #16
jcisio commented