Hi!

I'm testing Drupal (4.6.5) on local server (Apache/WinXP). It works all right, but I need import content by XML through Import-export module (4.6.0).

Problems:
1) warning: rename(/tmp\php366.tmp,/tmp\php366.tmp.txt): No such file or directory in q:\home\drupal.loc\www\includes\file.inc on line 159.
2) Nothing imports, module messages: "No XML nodes" or "Skip node"

I've found out a lot of topics about file.inc bugs, but couldn't solve my problem.

Help please!

Comments

dman’s picture

Check phpinfo (see elsewhere here) and check your TEMP environment variable (and/or upload-tmp-dir) is set to something appropriate to your machine. /tmp is obviously NOT right for XP (although you can just create q:\tmp\ as a quick fix)

This can be fixed either in your Global environment,
Apache httpd.conf,
http://httpd.apache.org/docs/1.3/mod/mod_env.html#setenv
or php.ini.
http://www.php.net/manual/en/ini.core.php#ini.upload-tmp-dir

Each is good.

http://www.coders.co.nz/

zzia’s picture

Unfortunatelly, it is not WinXP temp directory problem.
I checked php.ini and php scripts write data to temp dir now.

I tryed to check this module on provider's Unix server, but result was the same.

Situation:
Drupal (4.6.5) works
Module import-export works for CSV, but when I upload file after "Export according node ids / Import from XML file" link - warning notice:
" warning: rename(/var/tmp/php33N202,/var/tmp/php33N202.txt): No such file or directory in /hsphere/local/home/rusrec/drup.rusrec.ru/includes/file.inc on line 159.
"
File uploads, but nothing imports: " No XML nodes "

I tryed to do it on local server (Apache/WinXP) and on provider's Unix server too, but result was the same.