tschoffelen/php-pkpass

PKZipArchiver: unable to open archive_read - Unrecognized archive format when trying to download pkpass file

Closed this issue · 3 comments

Expected Behavior

  • When .pkpass file is downloaded, pass is added to wallet

Actual Behavior

Passbook attempts to open file and then PKZipArchiver fails with: PKZipArchiver: unable to open archive_read - Unrecognized archive format.

Steps to Reproduce the Problem

  1. I followed all the instructions, added the example.php with some modifications to my Wordpress plugin, installed on my wordpress, and attempted to utilzie the file output by the software.

I'm running on MacOS Venture (13.6.6) if that helps.

This may be outside the scope of an issue for the system but I've looked everywhere and can't find answers.

I also re-wrote my code to go directly to the example.php and got "Safari cannot download this file" so I ruled out any other items.

Following console, because I had a certain param, it required authToken. God I love PHP errors

Oh haha, I've definitely had that problem before in a different situation! I'm glad you were able to resolve it!