Keyword

Warning: get_headers() [function.get-headers]: URL file-access is disabled

  • buster
  • buster's Avatar Topic Author
  • Offline
  • New Member
More
14 years 8 months ago #31676 by buster
Hi all,
After installing the module on a live site, I'm getting the following error above the feed:
Warning: get_headers() [function.get-headers]: URL file-access is disabled in the server configuration in ######.com/web/modules/mod_jw_srfr/helper.php on line 347

Warning: get_headers() [function.get-headers]: This function may only be used against URLs. in #######.com/web/modules/mod_jw_srfr/helper.php on line 347

A quick search suggest that what causes this error is the fact that

the server has upgraded from PHP 4 to a newer version. As a result, the allow_url_fopen is set to OFF, which is responsible for disallowing include files to use absolute file paths.


Does the module need allow_url_fopen to be set to on? If so, is there a workaround, as this seems to be a security risk...

Or am I barking up the wrong tree? :)

Any help would be appreciated.

Please Log in or Create an account to join the conversation.

  • buster
  • buster's Avatar Topic Author
  • Offline
  • New Member
More
14 years 8 months ago #31677 by buster
Update:

I have added the following lines to my .htaccess:
php_flag display_errors "0"
php_flag html_errors "0"
php_flag display_startup_errors "0"
php_flag log_errors "1"
php_flag allow_url_fopen "0"

Still no luck...
Does anyone have any ideas or suggestions?
Thanks in advance

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #31678 by brergo
I am having a similar issue. The module works fine on my homepage in any position but on any other page prior to listing the articles in the feed I get 8 instances of the following:

Warning: get_headers() [function.get-headers]: Filename cannot be empty in /home/clarks8/public_html/modules/mod_jw_srfr/helper.php on line 347

I am running PHP v 5.2.9 and allow_url_fopen is set to 'on'

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #31679 by Katia
brergo, please take a look here:
forum.joomlaworks.net/index.php?topic=10192.0

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #31680 by brergo

brergo, please take a look here:
forum.joomlaworks.net/index.php?topic=10192.0


The last line in my post says that I checked that setting and that it is not the problem. Anyone have any other ideas here?

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #31681 by reddove
I just installed the program, and I am getting the exact same error. Has anyone figured out how to get around this?

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #31682 by RCheesley
I have this happen if I turn on SEF for my Kunena forum - not sure why, am just trouble shooting.  Try turning off SEF and see what happens?

Ruth

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum