SEO ~ Web Design ~ Internet Marketing

failed to open stream: no suitable wrapper could be found in - error

I recently upgraded a site to PHP 5.x. The installation went fine, but I had several ugly errors on the website. Upon further review, I found that the php.ini file needed some updating. If you are running into this error, start by changing your php.ini file to reflect the following.

allow_url_include = On

If the above does not exist, just add the entire line.

You will most likely also be getting this error:

Warning: include() [function.include]: URL file-access is disabled in the server configuration in

Find and edit this line in your php.ini file. If it does not exist, just add it.

allow_url_fopen = On

After making those changes, your site should not be broken anymore. If you are on shared hosting, you may run into some problems and have to find another way to include those files. Contact your server administrators first though.



5 Responses to “failed to open stream: no suitable wrapper could be found in - error”

  1. Guyz,
    I am very thankful to you for sharing valuable information.
    That’s very impressive.

  2. Hopefully this provides a solution to the errors I have been getting recently. I will let you know if this fixes my problem.

  3. Luka C. says:

    It works. Thank You for sharing this info with us!

  4. M.G. says:

    It’s great when something works first try.
    Thanks

  5. Most of the web developers forget this simple step when they update their system from PHP4 to PHP5 :) Actually there are couple of ways to do it. You can edit the php.ini file or you can edit the .htaccess file globaly. But extra care should be taken while editing .htacesss..
    .-= Alan@Tulsa Real Estate´s last blog ..Protecting your Tulsa Property from Flood Damage =-.

Leave a Reply

Recent Posts