WordPress.org

Support

Support » How-To and Troubleshooting » Error. Failed to open stream: No route to host

Error. Failed to open stream: No route to host

  • Warning: main(http://a.malificia.com/wordpress/blog10.php): failed to open stream: No route to host in /home/virtual/site45/fst/var/www/a./index.php on line 3

    Warning: main(http://a.malificia.com/wordpress/blog10.php): failed to open stream: No route to host in /home/virtual/site45/fst/var/www/a./index.php on line 3

    Warning: main(): Failed opening ‘http://a.malificia.com/wordpress/blog10.php’ for inclusion (include_path=’.:/php/includes:/usr/share/php’) in /home/virtual/site45/fst/var/www/a./index.php on line 3

    ———————————

    I don’t get it. Something is wrong, but I can’t seem to get what. It was all fine a few days ago and now it just… broken or something.
    I’ve searched the forums for people with the same problem, but they all had slightly different errors. Trouble with permission and such.
    I’m lost and I would be ever grateful to someone who could help me. And if I’m being stupid; sorry.
    Thanks for reading.

Viewing 5 replies - 1 through 5 (of 5 total)
  • When it says it can’t open the file, it means that it can’t find it. Try replacing the file (so that it can find it) that it’s looking for in line 3 and see if that helps.

    Umm, are you include()ing http://a.malificia.com/wordpress/blog10.php into your index.php or something? Please post the code of your index.php here or at PasteBin if it’s more then a few lines.

    <? include(‘header3.inc’); ?>
    <p align=”justify”>
    <?php include(“http://a.malificia.com/wordpress/blog10.php”); ?>

    <? include(‘footer.inc’); ?>

    When it says it can’t open the file, it means that it can’t find it. Try replacing the file (so that it can find it) that it’s looking for in line 3 and see if that helps.

    ———-

    Thanks to both of you. It’s working now. :).

    Don’t use a Internet path to include a local file. It means it has to go out onto the web to find the file, plus, it can only include the HTML and not the actual file contents.

    Use like <?php include('wordpress/blog10.php'); ?>.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error. Failed to open stream: No route to host’ is closed to new replies.