Undefined array key "HOME"
rabol opened this issue · comments
Steen Rabol commented
Hi
i got this on my test environment - a VPS:
Undefined array key "HOME"
/vendor/ncjoes/office-converter/src/OfficeConverter/OfficeConverter.php line 147
This is the code line in question:
$userInstallationDirectoryOption = "-env:UserInstallation=file://{$_SERVER['HOME']}/.config/libreoffice-profile{$randomNumber}";
Steen Rabol commented
maybe something like this:
ibreoffice -env:UserInstallation=file:///tmp/delete_me_{timestamp} \
--headless \
--convert-to pdf \
--outdir /tmp \
/path/to/my_file.doc
the advice itself was spotted in a long discussion to an issue on GitHub called "Parallel conversions and synchronization".
swapnilsekhande commented
Switch to version 1.0.5 it will resolve in new version this issue occures