Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am now getting the following error:
warning: Invalid argument supplied for foreach() in /home/.juliette/f4jmkkf4/date.intrepidstreet.com/sites/all/modules/tokenize/tokenize.module on line 94.
I have gotten the error a few times in different places. The one I just got was when bringing up a blog content type. To the best of my knowledge, this module is not being evoked for this content type.
Comments
Comment #1
brucealdridge CreditAttribution: brucealdridge commentedi also get this error, on line 81 & 94
-bruce
Comment #2
rsantiag CreditAttribution: rsantiag commentedI´ve put foreach inside of a If ($fields != NULL) and all works fine.
Regards.
Ricardo
Comment #3
fsucliff CreditAttribution: fsucliff commentedThis worked for me, thanks...
Comment #4
doc2@drupalfr.org CreditAttribution: doc2@drupalfr.org commentedAfter applying both issue remedies from http://drupal.org/node/234600 I still get the error message, now on line 85, within the famous "If ($fields != NULL)".
Couldn't figure out how it worked despite of this...
Comment #5
Amyoung67 CreditAttribution: Amyoung67 commentedI am not a programmer, and trying to understand where/how to input fix described in post #2 above? Unfortunately the statement "I've put foreach inside of a If ($fields !=NULL)" doesn't help me much, since I am not sure where to input this code and it sounds like it needs to be enclosed in brackets of some kind? I'm sure it's simple, and want to learn, but not currently within my experience.
Can you please post the exact text of line 94 and or lines 93/95 to make the fix?
Thanks!
Comment #6
gregglesI believe that this has been fixed in the CVS HEAD version of the code, but obviously not in the 5.x-1.0 release. I would like to create a 5.x-1.x-dev release so that people can more easily use that code, but I don't feel it's appropriate to do that until my #272988: status of module (and offer to co-maintain) request for co-maintainership has been answered (or 2 weeks pass). Until then you'll have to check it out of CVS (docs on doing so).