8000 Windows compatibility issue: plugin assumes existence of 'tmp' directory, fails if not present · Issue #21 · lepidus/fullJournalTransfer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Windows compatibility issue: plugin assumes existence of 'tmp' directory, fails if not present #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mschomm opened this issue Apr 25, 2025 · 1 comment

Comments

@mschomm
Copy link
mschomm commented Apr 25, 2025

The prior existence of a specific root level directory for temporary files is assumed by the code (/tmp for Linux-based systems). Running under Windows, if a (roughly equivalent) directory c:\tmp does not exist, export will fail with the following error message:

PHP Warning:  file_put_contents(/tmp/mda.xml): failed to open stream: No such file or directory in C:\Apache24\htdocs\mda\plugins\importexport\fullJournalTransfer\FullJournalImportExportPlugin.inc.php on line 249

A self-help quick fix for this is to create c:\tmp. But it might be generally preferrable to use sys_get_temp_dir() in line 223 of the above script instead of hard coding a path.

@diegoabadan
Copy link
Member

Thanks @mschomm!

We only use the sys_get_temp_dir() function when importing. We'll release a version addressing the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0