Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mpdf Not working in php 7.1. #81

Closed
1 of 14 tasks
rinjoy opened this issue Jul 10, 2018 · 4 comments
Closed
1 of 14 tasks

Mpdf Not working in php 7.1. #81

rinjoy opened this issue Jul 10, 2018 · 4 comments
Labels

Comments

@rinjoy
Copy link

rinjoy commented Jul 10, 2018

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • The issue still exists against the latest master branch of yii2-mpdf.
  • This is not an usage question. I confirm having gone through and read the documentation.
  • This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
  • I have attempted to find the simplest possible steps to reproduce the issue.
  • I have included a failing test as a pull request (Optional).

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

  • Google Chrome
  • Mozilla Firefox
  • Internet Explorer
  • Safari

Operating System

  • Windows
  • Mac OS X
  • Linux
  • Mobile

Libraries

  • jQuery version:
  • yii2-mpdf version:

Isolating the problem

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

@Nerpson
Copy link

Nerpson commented Jul 12, 2018

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. 😄

@rinjoy
Copy link
Author

rinjoy commented Jul 12, 2018 via email

@razvanphp
Copy link
Contributor

razvanphp commented Aug 13, 2018

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
Copy link

stale bot commented May 26, 2019

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.

@stale stale bot added the wontfix label May 26, 2019
@stale stale bot closed this as completed Jun 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants