Error "Your site lacks software required to run the link validity checker."

JoergSchneider@... - August 21, 2008 - 09:18
Project:Web Links
Version:6.x-1.0-rc2
Component:Code
Category:bug report
Priority:normal
Assigned:NancyDru
Status:closed
Description

I receive this error message after opening admin/settings/weblinks/checker.

It looks like the line 681 in weblinks.module is responsible for this error message:

if (ini_get('allow_url_fopen') && function_exists('stream_get_meta_data')) {

I only have very little knowledge of php, but it seems like some providers disable allow_url_fopen for security reasons.

After googling I found a hint for solving this problem by using drupal_http_request:
http://drupal.org/node/136132

Maybe these informations could help too:
http://www.norio.be/blog/2008/06/filegetcontents-vs-drupalhttprequest
http://drupal.org/node/284538

#1

NancyDru - August 21, 2008 - 13:37

Actually, we did change to drupal_http_request but forgot to remove that code. You may delete:

  if (ini_get('allow_url_fopen') && function_exists('stream_get_meta_data')) {
    $form['ok'] = array('#value' => '<p>'. t('Your environment is okay.') .'</p>');
  }
  else {
    $msg = t('Your site lacks software required to run the link validity checker.');
    drupal_set_message($msg, 'error');
    $form['fail'] = array('#value' => '<p>'. $msg .'</p>');
    return $form;
  }

#2

NancyDru - August 21, 2008 - 13:39
Assigned to:Anonymous» NancyDru
Status:active» fixed

Fix committed on both branches.

#3

k74 - August 22, 2008 - 18:06
Version:5.x-2.0-rc2» 6.x-1.0-rc2

I deleted that code and it works, I can already see the options checker, I turned off but still appears "As of 22/08/2008 - 19:48, this link is reporting errors." next to the links that once had some errors, as is done so they do not show?

thanks

#4

rmiddle - August 22, 2008 - 18:38

k74 this isn't the same issue. The checker only checks published links. If the link is unpublished it wont check it a again until it is published and once published it will follow the standard flow of checking.

#5

k74 - August 22, 2008 - 18:54

Ok , you're right, I deleted the links had been some errors and he returned to create, thanks.

#6

NancyDru - September 2, 2008 - 03:41
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.