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 Link to comment https://forums.phpfreaks.com/topic/166296-help-with-error-message/ 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). Link to comment https://forums.phpfreaks.com/topic/166296-help-with-error-message/#findComment-876951 Share on other sites More sharing options...
Lassie Posted July 17, 2009 Author Share Posted July 17, 2009 Thanks. Must have a blind spot Link to comment https://forums.phpfreaks.com/topic/166296-help-with-error-message/#findComment-876972 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.