I receive the following error when I try to create a web link: warning: Invalid argument supplied for foreach() in D:\drupal5\modules\weblinks\weblinks.module on line 642
This looks like the same error that was happening in previous versions, but I received it with 5.x-1.4. The description is saved, but the URL is not.
Thanks.
Matthew
Comments
Comment #1
giorgoskI get this error too
it only happens when the Weblinks category (taxonomy) is not associated with weblinks
(in the admin/content/taxonomy edit the vocabulary "Web Links" and uncheck its association with "Web Links" type, it should give you this error)
The module should check if the WebLinks category is associated with it or not ?
Personally I don't see a reason for even creating a special category for weblinks, even a begginer user knows how to create a category and associate with any type that he/she wants.
so maybe you should consider not having this strong association with the "Web Links" category
Comment #2
ideaoforder commentedHmm...interesting suggestion. I suppose there could be a looser relationship. How are you able to choose a non-Web Link category? In the category menu, you should only be able to select from Web Link categories--is this not the case?. I have patched this so that if you don't choose a category (i.e. select "") you won't get the above error. Just replace weblinks.module with the attached revision (after removing the .txt extension).
I'll work on creating the potential for looser category relations for the next revision.
Let me know if the patch helps.
Cheers.
Comment #3
giorgoskSorry were is the attached version ?
Comment #4
unitec commentedI get the same error "modules/weblinks/weblinks.module on line 628."
At admin/content/weblinks I created a category but no category was listed.
I could add a new Web link but the URL was not taken.
Also no Container/Vocabulary was created.
I manually created a category "Web link" and assigned the "content type" Web link to it.
I also assigned the new created container web link to "Category - allowed containers" in "content type" Web link.
I reinstalled weblinks 2 times but without success.
I run the category module, may be that this cause the error.
Comment #5
ideaoforder commentedHey all, I've fixed this problem in 5.x.1.6. You can now create and edit uncategorized weblinks. Please download the latest release and let me know if that solves the problem. As for using the category module--I thought that was supposed to be backwards compatible with the taxonomy module. If this fix works for everyone else but not for you unitec, then it is possibly an issue with the category module. Please keep me posted either way. Thanks for the help!
Comment #6
unitec commentedI installed the new version.
When I add a new category or weblink at admin/content/weblinks it does not appears in the category listing of this page but on page admin/settings/weblinks.
The category also don't appear under containers.
There is also no category available on page node/add/weblinks
Comment #7
rmiddle commentedThe Category Module breaks everything else I will add note on the front page that the category module in incompatible with this module.
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.