1
vincem118
allow_url_fopen disabled and can't access to the website
  • 2007/12/20 1:09

  • vincem118

  • Just popping in

  • Posts: 17

  • Since: 2005/12/21


Recently my hosting company disabled allow_url_fopen and making my site not accessable. I received this error msgs:
Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/mysite/public_html/index.php on line 2

Warning: require_once(http://www.mysite.org/modules/wfchannel/) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/mysite/public_html/index.php on line 2

Fatal error: require_once() [function.require]: Failed opening required 'http://www.mysite.org/modules/wfchannel/' (include_path='.:/usr/local/lib/php') in /home/mysite/public_html/index.php on line 2

In http://www.mysite.org/index.php I have:
require_once('http://www.mysite.org/modules/wfchannel/');
?>

Any suggestions? Any help will be deeply appreciated.

Thanks

VM

2
Will_H
Re: allow_url_fopen disabled and can't access to the website
  • 2007/12/20 5:27

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


wfchannel set as you start page?

Try

yoursite.com/user.php <-- Login
yoursite.com/admin.php

disable wfchannel as your module start page. Tell us if the site works now.

Also, Xoops_version, Module _versions?

3
Catzwolf
Re: allow_url_fopen disabled and can't access to the website
  • 2007/12/20 8:32

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Why do you have that on line 2 of index.php? Have you modified your index file to include this file?

Not sure why WF-Channel should be throwing this error as the only fopen in this module is in the backendjs.php

More information please :)

4
vincem118
Re: allow_url_fopen disabled and can't access to the website
  • 2007/12/20 15:37

  • vincem118

  • Just popping in

  • Posts: 17

  • Since: 2005/12/21


Removed wfchannel as the starting page. Doesn't work. Same error messages.

Xoops core version 2.13
Wfchannel version 1.07

The site has been up and running for 2 years, until allow_url_fopen disabled last week. I really want to get it up again soon.

Thank you for helping!

5
Will_H
Re: allow_url_fopen disabled and can't access to the website
  • 2007/12/20 17:40

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


(include_path='.:/usr/local/lib/php') in....

Did they also upgrade the apache // php versions? The error text is talking about wrappers... I have never seen XOOPS say anything about wrappers. Which is why I believe its the server, not the software.

Although the include statement for wfchannel in index is really odd. Which is why I thought he had it set as his start page.

IDK, check with your host andd ask them if they did anything else.

6
vincem118
Re: allow_url_fopen disabled and can't access to the website
  • 2007/12/21 16:09

  • vincem118

  • Just popping in

  • Posts: 17

  • Since: 2005/12/21


No they didn't upgrade apache/php.

http://www.mysite.com/modules/wfchannel works fine. How should I change http://www.mysite.com/index.htm point to http://www.mysite.com/modules/wfchannel for a short term soltion, without using require_once()?

Thanks!

7
Quest
Re: allow_url_fopen disabled and can't access to the website
  • 2007/12/21 16:57

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


I don't know about the require once for sure but anytime I have used require once or seen it used it was like this and would look like this:

require_once XOOPS_ROOT_PATH.'/modules/wfchannel/index.php';

8
Will_H
Re: allow_url_fopen disabled and can't access to the website
  • 2007/12/21 17:29

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


I am still not sure why you are editing the XOOPS core. You can set the module as your home page without touching the core.

Frankly, I am not sure anyone here is going to be able to answer your question as it seems you have done something unusual, which may have worked at one time... Although, I am still not sure how or why it ever worked.

Why dont you try uploading a fresh copy of xoops, and pointing it at your db. Make sure you upload the same vers.

9
vincem118
Re: allow_url_fopen disabled and can't access to the website
  • 2007/12/21 22:57

  • vincem118

  • Just popping in

  • Posts: 17

  • Since: 2005/12/21


How to set the module as my home page? In other words, what is the usual way to do it?

Thanks,
VM
Quote:

Will_H wrote:
I am still not sure why you are editing the XOOPS core. You can set the module as your home page without touching the core.

10
script_fu
Re: allow_url_fopen disabled and can't access to the website

Admin >>> Preferences >>> General Settings

Then look down to "Module for your start page"

Toggle the drop down to the module you want...

Login

Who's Online

197 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 197


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits