Warning
fulga - May 26, 2008 - 02:59
| Project: | Taxonomy VTN |
| Version: | 6.x-1.0-rc3 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I get this warning right after installing the module:
warning: Invalid argument supplied for foreach() in ....\includes\form.inc on line 1394.
Why is that? and what does it mean?
Thanks for any input.

#1
Hi,
Tell me about your configuration more.
You have some vocabularies? terms? nodes?
when this warning is showi?
you have Drupal 6.2? or early?
regards,
#2
Hello tomaszx
Yes, I have a vocabulary and terms and nodes. I actually have a multiple hierarchy vocab.
The warning appears right after I install the module and go direct to settings. It actually appears on the Taxonomy_VTN settings page on top:) I get another warning about 'locale':
Your server not support setlocale or you use old version of php (use >= 4.4.0 or >= 5.0.2).
This mean that sort index alphabetical with specific letters like ą ę ń can't be really sorted with your language.
This second one (warning) does not bother me too much because I use only English words.
I use a wamp server (on my local PC) with PHP Version 5.2.4., a very light site which is actually a library (my library) and I really think I need your module for indexing.
Problem is that I don't know how to get to show a hierarchical vocabulary of terms that also have terms, like: vocab/terms/terms/nodes. Perhaps your module is just for linear hierarchies?
Let's fix this, shall we?...hehehe...Thanks for replay!
#3
Forgot to mention: Drupal 6.2
So I have a vocab with term1, term2...term6 and each of these terms have children terms: term1 has children terms, term2 has children, so on. With your module I can only show the vocab index page, then terms page with ALL terms and children mixed up? I would like to show like this: vocab index page, terms index (without children) page , sub-terms of each term index page, nodes pages related to sub-terms.
How do I do that? I can't figure it out.
Cheers.
#4
Hello.
0. with 'foreach' You are first who have this problem. I don't know.
1. warning about locale is normal. Probably you use Windows then in Windows not exists 'locale' program.
This warning tell you that not is possible sorting with special chars like 'ą ę ń ó ł ż ź ć etc.....'
But if you not use special chars in terms names then this is not important.
2. 'vocab/terms/terms/nodes' is not possible jet ( and i dont know when i write some code about this feature )
waiting for patches?
I'm open for ideas but i cannot write all peoples things. If they write some code then no problem, i try and include to project if works.
True, this could be possible but i offer you make vocabulary with synonyms
(true is that many times, many terms are linked to the same content, like in book)
3. Linear? hm, maybe you are right. My idea was: Create a index page like in real book, with synonyms etc. In real book i don't saw any children terms, then i write what i saw. But if you have hierarchical vocabulary then should not be a problem to display all terms. I get all terms from terms tree with synonyms.
Ok, good idea is: should be possible to exclude some vocs or terms, but this is here: #262650: Ability to exclude a taxonomy from Vocabularies list
For you second post:
yes but some peoples could have many many sub-terms... this is not usable (for me)
#5
Hello again and thanks for replies
I am a designer not a programmer so I am afraid I cannot help you with my limited knowledge of PHP.
I don't know what is the cause for the warning (foreach) but the module seems to be working. I use it in a linear way to build my sections and subsections of the library. Too bad it's only v/t/n and not v/t/.../t/n but I understand it may be difficult to do this.
I will just try to adjust to what the module does for now...hehehe
Thanks again and consider the issue ...closed:)
Have a nice evening.
#6
I also get this error when I save the settings page with no changes to the defaults. This is usually indicative if a form element that has no items to select. It might be the "List of supported locale by server" for which I have none.
#7
Here is the error i get after installing and going to /admin/settings/taxonomy_vtn
* warning: Wrong parameter count for range() in /sites/all/modules/taxonomy_vtn/taxonomy_vtn.module on line 437.
* warning: Invalid argument supplied for foreach() in /includes/common.inc on line 1489.
i can access taxonomy_vtn/voc/1 and it works just fine, showing up the terms as i want them.
This is a great module and if i can provide any more info to help fix please let me know
all the best
#8
the range set for the drop down to select the number of nodes to display has too many parameters
i changed line 437 of taxonomy_vtn.module from
'#options' => drupal_map_assoc(range(10, 100,10)),
to
'#options' => drupal_map_assoc(range(100,10)),
and it cleared the errors and it plays nicely now.
#9
Hi.
I not saw that 3 parameters work only on php 5.0.0: http://pl.php.net/range
Thanks for info.
#10
fixed in rc6
#11
Automatically closed -- issue fixed for two weeks with no activity.