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
Comment #1
netbjarne commentedI 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
Comment #2
hperantunes commentedI 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
Comment #3
killes@www.drop.org commentedhperantunes: chose another directory as temporary directory, do to admin/settings.
Comment #4
hperantunes commentedIt did'nt functioned.
First I changed the /tmp/ directory, after I changed the entire /files/ directory at admin->settings.
Comment #5
killes@www.drop.org commentedI think this was fixed later.
Comment #6
(not verified) commentedComment #7
robertgarrigos commentedI'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.
Comment #8
robertgarrigos commentedclosed 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.