When using ZipArchive to compress files in different directories, I found that the compression could not be successful, including that the zip file generated by packaging and the file to be compressed were not in the same directory and could not be compressed. It was so strange. The error message was still 'No error'. I was also drunk.
You can try single file compression.
Or upload a screenshot, text cannot tell where the problem is.