Lassie Posted July 17, 2009 Share Posted July 17, 2009 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 Quote Link to comment Share on other sites More sharing options...
trq Posted July 17, 2009 Share Posted July 17, 2009 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). Quote Link to comment Share on other sites More sharing options...
Lassie Posted July 17, 2009 Author Share Posted July 17, 2009 Thanks. Must have a blind spot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.