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 |
Jump to:
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
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
Fix committed on both branches.
#3
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
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
Ok , you're right, I deleted the links had been some errors and he returned to create, thanks.
#6