When initially setting up Solr, I tend to get on the screen on /admin adn on the settings page errors like :
warning: fsockopen() [function.fsockopen]: unable to connect to localhost:80 (Connection refused) in /sites/all/modules/apachesolr/SolrPhpClient/Apache/Solr/Service.php on line 537.
Is there any reason not to just suppress those errors in hook_requirements? A message is already displayed if the connection fails.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | hide-requirements-error-327784-1.patch | 1.06 KB | pwolanin |
Comments
Comment #1
pwolanin commentedwe could suppress just with @ like so.
Comment #2
robertdouglass commentedThanks. Need backporting to D5.
Comment #3
JacobSingh commentedIt's not too important, but wouldn't trapping them be a better solution with a try...catch?
Comment #4
pwolanin commentedI think this is aready inside a
try {} catch {}block, so I guess the catch doesn't catch the errror message (as opposed to the exception).Comment #5
robertdouglass commentedcommitted in both branches.