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

Comments

nancydru’s picture

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;
  }
nancydru’s picture

Assigned: Unassigned » nancydru
Status: Active » Fixed

Fix committed on both branches.

k74’s picture

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

rmiddle’s picture

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.

k74’s picture

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

nancydru’s picture

Status: Fixed » Closed (fixed)