file_get_contents() error upon home post-edit casued by server settings

Will Kirchheimer - February 13, 2008 - 19:19
Project:Home (Real Estate)
Version:5.x-1.x-dev
Component:Miscellaneous
Category:bug report
Priority:minor
Assigned:Unassigned
Status:by design
Description

Sorry to post this here, but wanted to make note of it somehow.

My home module site began throwing errors the other day (february 2008), such as:

warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /edited_out.com/html/sites/all/modules/home/home.module on line 1326.

This was on a site hosting by media temple.

Well, it turns out the a recent server change discussed here:
http://kb.mediatemple.net/article.php?id=793

Had disabled the gmaps address information system, because the recovery process uses a remote file get (I think that is how it works).

I used the php.ini solution (outlined on the linked page, and posted below) for the present to restore service.

temp solution:

added this to my php.ini file:

allow_url_fopen = On

(fyi, I am using the module from the original home site, pre drupal site publishing, so my page lines may vary, also have a number of custom weight control modifications, and some other stuff)

Will Kirchheimer

#1

Michael M - February 14, 2008 - 04:58
Status:active» by design

The only call to file_get_contents is when the module retrieves the address in an XML format from Google's map geocoding service.

 
 

Drupal is a registered trademark of Dries Buytaert.