Weblinks the URL is not saved

TheoRichel - October 7, 2006 - 18:39
Project:Web Links
Version:5.x-1.6
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:ideaoforder
Status:closed
Description

I have installed Weblinks and whenever I post a new link I get this error message:

'Invalid argument supplied for foreach() in /usr/local/psa/home/vhosts/baszeeland.org/httpdocs/modules/weblinks/weblinks.module op lijn 605.'

The weblink is however published, but in the content area, NOT as a block in the right bar as I defined.

Do I do something wrong?

#1

ednique - October 16, 2006 - 15:37

I have the same issue...
Link nodes are published, but the link itself is what generates the error...
The link itself is not saved because of teh error, but other data is...
they appear as published nodes, but no link is visible
it doesn't show up on /weblinks eigther
nor in the block...

further, a navigation item doesn't have text so you can't see it except for the bullet
in the source I see it should be linked to: /node/edit/weblinks

#2

abqaria - November 8, 2006 - 22:25
Title:Weblinks gives error messages and doesnt display blocks» Weblinks the URL is not saved

I get the same error
warning: Invalid argument supplied for foreach() in W:\www\directory\modules\weblinks\weblinks.module on line 619.

the URL is not saved

#3

lionheart8 - November 27, 2006 - 15:45

:( I am also getting the same problem, whenever a registered user, other than the admin. tries to add links.

No one to help? May have to consider giving up as user-submitted links are the aim of my adding this module.

#4

liquidcms - January 7, 2007 - 00:32

yup, i agree.. doesnt seem like this module is working at the moment

- URL is not saved (althoguh it was once; but not anymore and after edting the first one it is now busted as well)
- menu item shows bullet but no text

#5

ideaoforder - January 22, 2007 - 02:20

I'll look into this issue when I update the module for 5.0--but will look to get a fix/patch up for 4.7 as well. I had been recieving issues as e-mail, so I've not checked up on this in a while. Apologies to all for the inconvenience. I will post back soon with an ETA for a fix, or the fix itself.

Cheers.

#6

ideaoforder - February 14, 2007 - 18:27
Assigned to:Anonymous» ideaoforder

Are those of you who have updated to 5.0 having this problem? And are there still some of you using 4.7 that need this patched? Let me know!

#7

ideaoforder - February 14, 2007 - 18:40

On my test install, authenticated and anonymous users can all post links in 5.0 with no problem--as long as they have "create web links" and "edit own web links" checked in user access.

#8

TheoRichel - February 22, 2007 - 22:00

I posted this problem when I was working with 4.7. Am upgrading now to 5.1, will tell about experiences later.

#9

TheoRichel - February 24, 2007 - 16:11

Well in Drupal 5.1 I get no error messages anymore, but the display problem is still there. In my left column is the header 'Recent web links' but the content is displayed in the central column.

#10

TheoRichel - February 24, 2007 - 16:16

But I think I have misunderstood the use of this module. I was looking for a module that would allow me to post weblinks to other sites of related sites. But although I give in the right url of that related site, when I click it I am taken to a node within my own site, so I do not understand what the module is for or it doesnt work.

#11

ideaoforder - February 27, 2007 - 17:26

There is a settings for weblink display--you can choose whether weblinks lead to the target URL or to the node that contains the link info. I thought the default was to target URL, as you'd like. But check in the settings to make sure that the URLs don't point to nodes.

Let me know if that solves it.

Cheers.

#12

tknospdr - March 3, 2007 - 14:57

I'm having the same problem. I've installed a pristine Drupal 5.1 test site and the only thing I've done so far is ad the Weblinks mod. I got the invalid foreach error when I originally created my 1 test link. When I click the link it just goes to the node even though it's set to go to the URL in the admin page. Also, when I go to edit the link the URL field is blank.
A good working weblink mod is basically the only thing stopping me from upgrading my production site to R5.

Thanks,
David
www.FloridaPets.org
321.961.5281

#13

Chris Bray - March 7, 2007 - 15:00

I had this problem in 5.1 (couldn't save any links with the foreach error)

I found that it was because I didn't apply a taxonomy to my weblink, as soon as I applied one (or more) taxonom(y|ies) it worked fine.

#14

ideaoforder - March 8, 2007 - 19:25
Status:active» patch (code needs review)

Hey all, I've fixed this problem in 5.x.1.6. You can now create and edit uncategorized weblinks. I'm glad to have finally gotten to the bottom of this. Please download the latest release and let me know if that solves the problem. Cheers.

#15

tknospdr - March 9, 2007 - 16:19
Version:4.7.x-1.x-dev» 5.x-1.6

The new version doesn't show up in my list of modules to enable.

#16

tknospdr - March 9, 2007 - 16:30

I reverted back to 1.5, added taxonomy terms and still have the problem. Please see my test site at:

http://www.technospider.com/~david/drupal5/

I've enabled creating weblinks for anonymous users so you can try it out.

Thanks,
David
http://www.FloridaPets.org
321.961.5281

#17

morningbird - March 9, 2007 - 16:47

I have a fix for this, but I don't like it as it's just a bandaid. It seems that this works just fine if you have the "Multiple Select" box checked in your vocabulary for Weblinks. I have not found any other configuration that works. And, of course, this assumes you're using the Taxonomy system.

I just installed Weblinks last night and I re-installed this morning after I tried disabling multiple select and subsequently started having problems. I have this same issue. However, I am using taxonomies (I am not using the Categories module, it disturbs me). I was able to post several weblinks and then it just stopped working. The error I get looks like this:

warning: Invalid argument supplied for foreach() in /modules/weblinks/weblinks.module on line 631.

I have tried it with user IDs of different permissions. The URL is not stored and the listing does not show up on the weblinks page. It does show up in the "Recent Posts", however. It does not show up in the recent weblinks block.

#18

tknospdr - March 9, 2007 - 18:35

I already had multi-select enabled and it's never worked for me.

Thanks,
David
http://www.FloridaPets.org
321.961.5281

#19

ideaoforder - March 10, 2007 - 16:22

Somehow the weblinks.info file got deleted. You can either copy and paste the old one, or download 5.x.1.7. Apologies!

#20

tknospdr - March 15, 2007 - 01:10

With version 1.7 I finally have a working weblinks module for my r5 test site. Now I just have to get it looking the way I want it. I have two requests.

1. Add a click-thru counter, see the links page on the site in my sig for what I'm talking about.
2. Either auto-add http to submitted links, or make them work without it.

Thanks,
David
http://www.floridapets.org

#21

Ole Martin - June 16, 2007 - 12:23

Now I have read all informations here and I can't get this module to save my url. I use taxonomy (all of the module)
Are there someone who had this problem and work it out? I have been working whit this for long time now and started to bee tired of it

#22

rmiddle - July 1, 2008 - 04:29
Status:patch (code needs review)» fixed

This looks fixed in 1.7 and above. Marking the issue fixed. If you are still having problem please reopen the ticket.

Thanks
Robert

#23

Anonymous (not verified) - July 15, 2008 - 04:35
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.