Hello there.

Pardon if this is a noob question... But i cant figure it out on my own and google knows nothing about it as well :(

I have installed Drupal with russian installation files no problem and the whole thing seemed like a paradise until i tried turning on some extra modules. When i done that the page its done from gone blank (nothing in browser window) and when i hit the "back" button in my browser i could read this set of lines for every module i tried to enable (i think):

warning: autolocale_form_alter() [function.autolocale-form-alter]: open_basedir restriction in effect. File(/autolocale.install) is not within the allowed path(s): (/var/... .../httpdocs:/tmp) in /var/... .../httpdocs/sites/all/modules/autolocale/autolocale.module on line 142.

There is a /tmp folder in home dir of Drupla installation and its chmod is 777.

Also when i go to logs of Drupla site from admin panel i see this kind of errors:

autolocale_form_alter() [function.include]: Failed opening 'autolocale.install' for inclusion (include_path='.:') in file /var/... .../httpdocs/sites/all/modules/autolocale/autolocale.module on line 142.

Also after this happened for the first time only way i can see something but a blank screen on modules enable/disable page is forbidding access to the autolocale folder.

Any ideas? Anyone?

Comments

MeHail’s picture

Complete set of errors after that blank screen to main page transition is as follows:

warning: autolocale_form_alter() [function.autolocale-form-alter]: open_basedir restriction in effect. File(/autolocale.install) is not within the allowed path(s): (/var/... .../httpdocs:/tmp) in /var/... .../httpdocs/sites/all/modules/autolocale/autolocale.module on line 142.

warning: autolocale_form_alter(autolocale.install) [function.autolocale-form-alter]: failed to open stream: Operation not permitted in /var/... .../httpdocs/sites/all/modules/autolocale/autolocale.module on line 142.

warning: autolocale_form_alter() [function.include]: Failed opening 'autolocale.install' for inclusion (include_path='.:') in /var/... .../httpdocs/sites/all/modules/autolocale/autolocale.module on line 142.

MeHail’s picture

Not sure if its a best one... But it seemed that due to some of my server settings open_basedir was interfering with autolocale module script. I had to replace the include call on line 142 as follows:

include_once 'autolocale.install';

with

include_once(drupal_get_path('module', 'autolocale') .'/autolocale.install');

Now everything seems to be working again. One question thats still open for me is: "Did i just mess something up and 've created a huge security hole or is it an OK solution and i shouldn't be worried about it"?