ZugferdKositValidator->setBaseDirectory #194
Closed
MarkKnochen
announced in
Announcements
Replies: 1 comment
-
Hi @MarkKnochen, I would choose a separate directory. Please also check the permissions.
This means what it says: One or more files have been checked with errors. Please use the documentation. To get the errors from the validation output use
to see details what went wrong. See also this example Kind regards |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
i changed in the example file "KositValidator.php" the BaseDirectory to the current directory
$kositValidator->setBaseDirectory(dirname(FILE));
Downloading the file works fine in this directory, but unzipping failed because unzipping the validator.zip tries to access the system directory
Failed to open ZIP archive /var/folders/v_/83vs26114zqfm9fslvltpfch0000gn/T/kositvalidator-dda5755356cf6d7cfd897b4447847b1b/validator.zip
Or do I have to set the setBaseDirectory somewhere else?
I set the path manual in the function() resolveBaseDirectory with:
$this->baseDirectory = "myPath";
then the download und unpack works.
The function runValidationApplication() returns now:
"Validation error. One ore more files were rejected"
What does that mean? Was the JAVA app able to run - or does Java generally have to be present?
Or is it correct and it is an "validation error" - but can i see, what for errors there are?
Or is it correct:
examples/invoice_1.pdf -> Valid XML with XsdValidator.php
examples/invoice_1.pdf -> Invalid width KositValidator.php
Thank you
Beta Was this translation helpful? Give feedback.
All reactions