tschoffelen / php-pkpass

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

Code has generated pass.pkpass with Zero bytes #60

Closed agravatfemina closed 7 years ago

agravatfemina commented 7 years ago

Please help me to resolve this.

  1. I've Set the path to my Pass Certificate
  2. I've Set password for certificate 3.I've Set the path to my WWDR Intermediate certificate 4.I've set my passTypeIdentifier 5.I've set my teamIdentifier

What is the point of issue?

screen shot 2017-02-07 at 11 36 21 am

tschoffelen commented 7 years ago

Have a look at the comments on #54, which contain some suggestions.

agravatfemina commented 7 years ago

Yes, i've tired that but that not works for me. ButI got the solution from here: https://github.com/tschoffelen/PHP-PKPass/issues/53 . I've just added "echo $file" before the return statement in the create() function.

That's work for me!

But is this the correct way to resolve this issue?

tschoffelen commented 7 years ago

I've updated the class. Can you test if it resolves your issue?

agravatfemina commented 7 years ago

Yes, that works for me! Thank you, buddy 👍 . I've gone through the code , So this would be only change replace readfile($paths['pkpass']); with echo $file; . Right ?

tschoffelen commented 7 years ago

I also changed some stuff around file names, but that's probably not necessary for it to work correctly.

agravatfemina commented 7 years ago

Ok. Right now this is work correctly. Thank you for your prompt reply & support.You saved my day.I am closing this issue

lock[bot] commented 6 years ago

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.