Oh no, I hoped there wasn't any SAFE MODE dependencies in the latest drupal. But in the process of importing a language file I got these dreaded errors:

warning: rename(): SAFE MODE Restriction in effect. The script whose uid/gid is 2797/80 is not allowed to access /var/tmp owned by uid/gid 0/0 in /usr/home/web/web34197/drupaltest/includes/file.inc on line 160.
warning: fopen(): Unable to access /var/tmp/phpFgVSfu.txt in /usr/home/web/web34197/drupaltest/includes/locale.inc on line 298.
warning: fopen(/var/tmp/phpFgVSfu.txt): failed to open stream: Unknown error: 0 in /usr/home/web/web34197/drupaltest/includes/locale.inc on line 298.
The translation import failed, because the file da.po.txt could not be read.
The translation file da.po.txt appears to contain errors and could not be read.
The translation import of da.po.txt failed.

May I add, that the the files and tmp settings seems to be correctly set, and both folders are 777. I can upload attachments nicely. For server details see http://oldrup.dk/drupaltest/phpinfo.php

Best regards
Bjarne

Comments

netbjarne’s picture

Title: SAFE MODE restriction in effect at .po import... » SAFE MODE restriction not reproduceable...
Priority: Critical » Normal
Status: Active » Closed (fixed)

I have uploaded a fresh copy of beta 2, and I have since been unable to reproduce the SAFE MODE restriction in effect error.

I have still problems importing complete sets of translation, but thats a completely other issue.

I'm sorry if I wasted anyones time.

Regards
Bjarne

hperantunes’s picture

Title: SAFE MODE restriction not reproduceable... » SAFE MODE restriction still occurs to me
Status: Closed (fixed) » Active

I had this problem too.

So, I downloaded the package half hour ago, and replaced the system files, but the problem remained:

warning: rename() [function.rename]: SAFE MODE Restriction in effect. The script whose uid is 33 is not allowed to access /tmp owned by uid 0 in /blah/blah/blah/blah/drupal/includes/file.inc on line 160.
warning: fopen() [function.fopen]: Unable to access /tmp/phpj0vXgr.txt in /blah/blah/blah/blah/drupal/includes/locale.inc on line 298.
warning: fopen(/tmp/phpj0vXgr.txt) [function.fopen]: failed to open stream: Success in /blah/blah/blah/blah/drupal/includes/locale.inc on line 298.
The translation import failed, because the file pt-br.po.txt could not be read.
The translation file pt-br.po.txt appears to contain errors and could not be read.
The translation import of pt-br.po.txt failed.

Localization module is supposed to function even with SAFE_MODE ON?

Thanks

killes@www.drop.org’s picture

hperantunes: chose another directory as temporary directory, do to admin/settings.

hperantunes’s picture

It did'nt functioned.

First I changed the /tmp/ directory, after I changed the entire /files/ directory at admin->settings.

killes@www.drop.org’s picture

Version: 4.7.0-beta2 » 4.7.0
Status: Active » Fixed

I think this was fixed later.

Anonymous’s picture

Status: Fixed » Closed (fixed)
robertgarrigos’s picture

Version: 4.7.0 » 4.6.6
Status: Closed (fixed) » Active

I'm opening this bug again for drupal 4.6.x, although it was initially opened for drupal 4.7. this might be fixed with 4.7 but is still active with 4.6.x

I have a problem with a host which doesn't allow me to read its tmp file. Locale doesn't use the tmp file I set in admin>settings.

robertgarrigos’s picture

Status: Active » Closed (fixed)

closed it again, as it looks like this is a problem related to my client's host. It doesn't allow any temp directory inside the htmldocs dir but its own tmp dir. So change to it in admin>settings and worked ok.