-
Notifications
You must be signed in to change notification settings - Fork 78
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
Convertion Failure! Contact Server Admin #29
Comments
I believe it is because the command fail to execute. Try go to You can try to debug that command output in your terminal. |
I got same issue. that execute command is Can you guide us on where we need to add exe path in laravel project? |
The issue is cause by the constructor default bin value: public function __construct($filename, $tempPath = null, $bin = 'libreoffice', $prefixExecWithExportHome = true) Try change it to the path where libreoffice located in your system: $bin = '/Applications/LibreOffice.app/Contents/MacOS/soffice';
$converter = new OfficeConverter('test-file.docx', 'path-to-outdir', $bin);
|
In Ubuntu 22.04 I solved it by giving permission to the /var/www directory for the user www-data |
in Ubuntu 20 , It worked for me too, thanks @gtcesar |
Hello, Im using laravel 8. I already install libre office 7.0.5 in centos 7.
I also already update
public function __construct($filename, $tempPath = null, $bin = ' ', $prefixExecWithExportHome = true)
{
if ($this->open($filename)) {
$this->setup($tempPath, $bin, $prefixExecWithExportHome);
}
}
and
protected function makeCommand($outputDirectory, $outputExtension)
{
$oriFile = escapeshellarg($this->file);
$outputDirectory = escapeshellarg($outputDirectory);
but it still return the Convertion failure. Contact Admin
The text was updated successfully, but these errors were encountered: