kartik-v / yii2-mpdf

A Yii2 wrapper component for the mPDF library which generates PDF files from UTF-8 encoded HTML.
http://demos.krajee.com/mpdf
Other
161 stars 150 forks source link

Mpdf Not working in php 7.1. #81

Closed rinjoy closed 5 years ago

rinjoy commented 6 years ago

Prerequisites

Steps to reproduce the issue

  1. php version 7.1.18 2.Yii 2.0

Expected behavior and actual behavior

When I follow those steps, I see...

I was expecting...

Environment

Browsers

Operating System

Libraries

Isolating the problem

mpdf is not working on php 7.1.18 while it is working on php 5.6

Nerpson commented 6 years ago

image

Indeed, this part of code does not work without throwing a warning in PHP 7.1, but it apparently does in PHP 7.08. A quick fix would be greatly appreciated. :smile:

rinjoy commented 6 years ago

ok thanks for updating

On Thu, Jul 12, 2018 at 5:13 PM, Nerpson notifications@github.com wrote:

[image: image] https://user-images.githubusercontent.com/9705025/42631126-83a610f4-85d9-11e8-9b10-dbe8288c1a7b.png

Indeed, this part of code does not work without throwing a warning in PHP 7.1, but it apparently does in PHP 7.08. A quick fix would be greatly appreciated. smile

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kartik-v/yii2-mpdf/issues/81#issuecomment-404484086, or mute the thread https://github.com/notifications/unsubscribe-auth/AgEUzqvGGz7ejC48GQWyVHw45a2oOyZtks5uFzZTgaJpZM4VJCJ- .

-- Rakesh Development Manager InjoyGlobal

razvanphp commented 5 years ago

Did you guys updated your mpdf? That code path does not even exist anymore:

 - Installing mpdf/mpdf (v7.1.4): Downloading (100%)
...
$ stat ./vendor/mpdf/mpdf/mpdf.php
stat: ./vendor/mpdf/mpdf/mpdf.php: stat: No such file or directory

Also, mpdf README says even PHP 7.2 is supported now.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.