getting error while uploading on server

非 Y 不嫁゛ 提交于 2019-12-13 05:27:43

问题


I am developing opencart application , i installed in on localhost ,and customize it but now i am trying to upload it to server but it get error

Warning: require_once() [function.require-once]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/content/29/9716229/html/johndhan/telhemboradz/index.php on line 17

Warning: require_once(http://249development.us/johndhan/telhemboradz/system/startup.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/content/29/9716229/html/johndhan/telhemboradz/index.php on line 17

Fatal error: require_once() [function.require]: Failed opening required 'http://249development.us/johndhan/telhemboradz/system/startup.php' (include_path='.:/usr/local/php5_3/lib/php') in /home/content/29/9716229/html/johndhan/telhemboradz/index.php on line 17


回答1:


You need to use paths for your files not HTTP url's. Open your config.php file and admin/config.php file and change

http://249development.us/

to

/home/content/29/9716229/html/

for all of the paths except for those that start HTTP_ or HTTPS_ in the define's




回答2:


It seems that you are trying to include a remote file via HTTP. If this is intentionally the case, then you need to enable the http:// wrapper - as suggested by the warning you are getting. If this is not the case, then consider removing the URL http://249development.us/ from the require_once statements.



来源:https://stackoverflow.com/questions/14855552/getting-error-while-uploading-on-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!