Skip to content
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

Invoices export error #341

Closed
isolin opened this issue Oct 4, 2018 · 5 comments
Closed

Invoices export error #341

isolin opened this issue Oct 4, 2018 · 5 comments

Comments

@isolin
Copy link

isolin commented Oct 4, 2018

I just upgraded kimai to 0.5. Btw there was no local.yaml I could edit. I wanted to test the new feature of generating invoices as ODS or CSV files. However, for both it fails at:

https://mykimaiserver.com/en/invoice/print

Oops! An error occured.
500: Internal Server Error
An unexpected error occured, please try again. You may have found a bug, so please contact your administrator if the problem doesn't go away after you tried it again.

I see the entries on the webpage and selecting the pdf timesheet works fine for the very same selection. I looked at /var/log/ but there are no entries from today. Is there any other location to see a log? How can I obtain more info about the issue to report it properly?

My system is a container variant of Ubuntu Bionic minimal. Maybe some packages are missing? I needed to install php7.2-gd and php7.2-zip during first step of 0.5 upgrade (composer install).

@isolin
Copy link
Author

isolin commented Oct 4, 2018

Update! I found the prod.log file with the following log:

[2018-10-04 15:34:37] php.CRITICAL: Class 'ZipArchive' not found {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Class 'ZipArchive' not found at /home/ubuntu/kimai2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods.php:47)"} []
[2018-10-04 15:34:37] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\ClassNotFoundException: "Attempted to load class "ZipArchive" from the global namespace. Did you forget a "use" statement for "PhpOffice\PhpWord\Shared\ZipArchive"?" at /home/ubuntu/kimai2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods.php line 47 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\ClassNotFoundException(code: 0): Attempted to load class \"ZipArchive\" from the global namespace.\nDid you forget a \"use\" statement for \"PhpOffice\\PhpWord\\Shared\\ZipArchive\"? at /home/ubuntu/kimai2/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods.php:47)"} []

@isolin
Copy link
Author

isolin commented Oct 4, 2018

Never mind, I forgot to restart Apache after installing the php-zip extension.

@isolin isolin closed this as completed Oct 4, 2018
@kevinpapst
Copy link
Member

I'll reopen the ticket and check if the requirement is noted somewhere.
Thanks for the feedback

@kevinpapst
Copy link
Member

Just for reference, the zip extension is now documented in composer.json and here:
https://github.com/kevinpapst/kimai2/blob/master/README.md

@lock
Copy link

lock bot commented Dec 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.

@lock lock bot locked and limited conversation to collaborators Dec 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants