yii2mod / yii2-cashier

Yii2 Cashier provides an interface to Stripe's subscription billing services.
MIT License
46 stars 25 forks source link

Use of undefined constant DOMPDF_TEMP_DIR - assumed 'DOMPDF_TEMP_DIR' #2

Closed robov closed 7 years ago

robov commented 7 years ago

Any ideas?

ihorchepurnyi commented 7 years ago

Hi, I update composer.json, can you update this package and try again?

Before update, set in your composer.json dev-master as version for this package

robov commented 7 years ago
    "yii2mod/yii2-cashier": "dev-master",
    "dompdf/dompdf" : "*"

Class 'DOMPDF' not found

  1. in /home/mxcom05/public_html/digitalsentinel/pdfsentinel.com/dev/vendor/yii2mod/yii2-cashier/Invoice.php at line 268 25926026126226326426526626726826927027127227327427527627
ihorchepurnyi commented 7 years ago

dompdf/dompdf will be installed with cashier automatically https://github.com/yii2mod/yii2-cashier/blob/master/composer.json#L22

You don't need to use it in your composer.json

ihorchepurnyi commented 7 years ago

Can you paste here your code for reproduce this issue?

robov commented 7 years ago

I copied your code and pressed download then this error shows up

ihorchepurnyi commented 7 years ago

ok, I try to check it.

ihorchepurnyi commented 7 years ago

Try to update package. I fix this issue

robov commented 7 years ago

working now... brilliant