- Posts: 3
COMMUNITY FORUM
- Forum
- Free Joomla Extensions & Templates
- Simple RSS Feed Reader
- Warning: get_headers() [function.get-headers]: URL file-access is disabled
Warning: get_headers() [function.get-headers]: URL file-access is disabled
- buster
- Topic Author
- Offline
- New Member
Less
More
14 years 8 months ago #31676
by buster
Warning: get_headers() [function.get-headers]: URL file-access is disabled was created by buster
Hi all,
After installing the module on a live site, I'm getting the following error above the feed:
A quick search suggest that what causes this error is the fact that
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.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
14 years 8 months ago #31677
by buster
Replied by buster on topic Re: Warning: get_headers() [function.get-headers]: URL file-access is disabled
Update:
I have added the following lines to my .htaccess:
Still no luck...
Does anyone have any ideas or suggestions?
Thanks in advance
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.
- brergo
- Offline
- Junior Member
Less
More
- Posts: 24
14 years 7 months ago #31678
by brergo
Replied by brergo on topic Re: Warning: get_headers() [function.get-headers]: URL file-access is disabled
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'
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.
- Katia
- Offline
- Platinum Member
Less
More
- Posts: 4696
14 years 7 months ago #31679
by Katia
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Katia on topic Re: Warning: get_headers() [function.get-headers]: URL file-access is disabled
brergo, please take a look here:
forum.joomlaworks.net/index.php?topic=10192.0
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.
- brergo
- Offline
- Junior Member
Less
More
- Posts: 24
14 years 7 months ago #31680
by brergo
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?
Replied by brergo on topic Re: Warning: get_headers() [function.get-headers]: URL file-access is disabled
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.
- reddove
- Offline
- New Member
Less
More
- Posts: 1
14 years 2 months ago #31681
by reddove
Replied by reddove on topic Re: Warning: get_headers() [function.get-headers]: URL file-access is disabled
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.
- RCheesley
- Offline
- New Member
Less
More
- Posts: 5
14 years 2 months ago #31682
by RCheesley
Replied by RCheesley on topic Re: Warning: get_headers() [function.get-headers]: URL file-access is disabled
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
Ruth
Please Log in or Create an account to join the conversation.
- Forum
- Free Joomla Extensions & Templates
- Simple RSS Feed Reader
- Warning: get_headers() [function.get-headers]: URL file-access is disabled