Jump to content

Help with error message


Lassie

Recommended Posts

I have an error message an am unsure how to reslove the issue.

The code i am using works fine on one local machine but not on my server (self hosted)

Any pointers on where to look to fix this is very welcome.

The error is

Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in W:\www\wordpress\wp-content\themes\custom1\author.php on line 64

 

Warning: require_once(http://localhost/wordpress/wp-content/themes/custom1/mysql_connect2.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in W:\www\wordpress\wp-content\themes\custom1\author.php on line 64

 

Fatal error: require_once() [function.require]: Failed opening required 'http://localhost/wordpress/wp-content/themes/custom1/mysql_connect2.php' (include_path='.;/usr/local/PHP/includes;/usr/local/PHP/pear;/home/admin/www/plugins/pear/PEAR') in W:\www\wordpress\wp-content\themes\custom1\author.php on line 64

Link to comment
Share on other sites

Your configuration will not allow you to include file via a url, you will need to pass include the actual filesystem path to the file you wish to include (which is how you should be doing it anyway).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.