Jump to content


Photo

getaddress and inclusion errors


  • Please log in to reply
1 reply to this topic

#1 Madame Guillotine

Madame Guillotine
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 25 March 2006 - 04:03 PM

On my sites, I get random errors. Okay, let me explain this a bit better. All along my many websites, randomly, scripts just spit out errors. I can refresh once sometimes and they go back to normal, or sometimes I can refresh 20 times and they still don't fox themselves. And it's never the same script, they just error randomly. If's always a guessing game to see which one, but it's always one. My company says it's something with my files. But, I'm not doing anything differently from others who have sites working fine. I just want to understand what the errors are related to so that I can see about fixing them (or moving hosting companies).

These are some of the errors that crop up, just a sample of two of the scripts that mess up. The others are generally the same with a few differences.

Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 39

Warning: main(http://www.morbid-romantic.net/calendar/calendar.php): failed to open stream: Permission denied in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 39

Warning: main(): Failed opening 'http://www.morbid-romantic.net/calendar/calendar.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 39

Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 40

Warning: main(http://www.morbid-romantic.net/calendar/list.php): failed to open stream: Permission denied in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 40

Warning: main(): Failed opening 'http://www.morbid-romantic.net/calendar/list.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 40

Warning: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/morbid/public_html/blog/wp-content/themes/default/header.php on line 88

Warning: file(http://www.baptism-of-blood.net/random.txt): failed to open stream: Permission denied in /home/morbid/public_html/blog/wp-content/themes/default/header.php on line 88


#2 Gast

Gast
  • Members
  • PipPipPip
  • Advanced Member
  • 131 posts
  • LocationSouth East England

Posted 25 March 2006 - 06:31 PM

[!--quoteo(post=358238:date=Mar 25 2006, 04:03 PM:name=madame guillotine)--][div class=\'quotetop\']QUOTE(madame guillotine @ Mar 25 2006, 04:03 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
On my sites, I get random errors. Okay, let me explain this a bit better. All along my many websites, randomly, scripts just spit out errors. I can refresh once sometimes and they go back to normal, or sometimes I can refresh 20 times and they still don't fox themselves. And it's never the same script, they just error randomly. If's always a guessing game to see which one, but it's always one. My company says it's something with my files. But, I'm not doing anything differently from others who have sites working fine. I just want to understand what the errors are related to so that I can see about fixing them (or moving hosting companies).

These are some of the errors that crop up, just a sample of two of the scripts that mess up. The others are generally the same with a few differences.

Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 39

Warning: main(http://www.morbid-romantic.net/calendar/calendar.php): failed to open stream: Permission denied in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 39

Warning: main(): Failed opening 'http://www.morbid-romantic.net/calendar/calendar.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 39

Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 40

Warning: main(http://www.morbid-romantic.net/calendar/list.php): failed to open stream: Permission denied in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 40

Warning: main(): Failed opening 'http://www.morbid-romantic.net/calendar/list.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 40

Warning: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/morbid/public_html/blog/wp-content/themes/default/header.php on line 88

Warning: file(http://www.baptism-of-blood.net/random.txt): failed to open stream: Permission denied in /home/morbid/public_html/blog/wp-content/themes/default/header.php on line 88
[/quote]


The file() error will probably be because the folder or file used has not got chmod settings of 777. You should also set error_reporting to 0 at the top of the page to stop these errors appearing when visitors are online.
OS and Internet Specs:
Windows XP (with SP2), 1680x1050, PHP 4, MySQL 3, Internet Explorer 6 &7 /FireFox 2.0/Opera 9.2

Tutorials:
Simple Introduction to AJAX and XMLHttpRequest
Creating Live Data with AJAX Making a Google Suggest like application




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users