After the last upgrade if I try to edit or create a new link it is stopped by the following error: This link is returning an error code of -1002 (missing schema).

Comments

nancydru’s picture

I can add links with no problem. You are required to have the "http://" on the front. I can't go back and check to see if you got away with that before, but you definitely can't now. See #575512: Checker Allowing Duplicates

BTW, on the settings page there is a field set called "Field defaults". I always set the "Default for URL" to "http://" to remind people that it is needed.

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)
scotese’s picture

Thanks for getting to this so quickly. The reason that links could be added was that I turned checking off. When I turned it back on, the exact same problem is there. It does have http:// on the front - so I am pretty flummoxed.

nancydru’s picture

Can I see the site? If you want me to view it privately, use my contact tab.

Starminder’s picture

NancyDru - same here:
"This link is returning an error code of -1002 (missing schema)."

http://www.hoslotracer.com

Thanks!

scotese’s picture

The site is www.awaytoteach.net - I appreciate your help here.

nancydru’s picture

Perhaps I wasn't clear. I need to see one (or more) of those links that are failing. I did not see any on either site.

scotese’s picture

It is probably I that wasn't clear. The links fail upon entering them - in other words - they cannot be published because of the error. If I turn the error checking on entry off - they are published fine (I suppose this is a work-around - as there are no further error checking problems once they are published - but there has to be something wrong in the checking that goes on when they are initially entered.

nancydru’s picture

Can you give me an example, please? I have added many links since the checker code was changed.

Starminder’s picture

I rolled back to the previous version for now. I'm happy to put 2.3 back so you can experience it, but as stated in #8, when anyone tries to add any link, the error as stated in #5 appears. This is for any link added by any user. The error prevents the link from being added.

nancydru’s picture

I appreciate your experience and would still like an example of a failing link. As I said, I have added links with no problem - I cannot reproduce this in order to fix it.

nancydru’s picture

Ahh, browsing through the code, I spotted it.

On line 183 of weblinks_checker.module

$response = drupal_http_request($url, array(), 'HEAD', NULL, 0);

change it to:

$response = drupal_http_request($new, array(), 'HEAD', NULL, 0);

I have committed the fix to 6.x-2.x-dev.

nancydru’s picture

Status: Postponed (maintainer needs more info) » Fixed
AlpineExplorer’s picture

Thanks for this quick hack (#12). It helps on my site.

Status: Fixed » Closed (fixed)

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

miguel_angel’s picture

I confirm that patch at #12 solves this issue.

Thanks