tschoffelen / php-pkpass

💳 PHP class for creating passes for Wallet on iOS.
https://includable.com
MIT License
916 stars 186 forks source link

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

Closed kvieira90 closed 7 months ago

kvieira90 commented 7 months ago

Expected Behavior

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.

kvieira90 commented 7 months ago

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.

kvieira90 commented 7 months ago

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

tschoffelen commented 7 months ago

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