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

Error: Class "Mpdf\Mpdf" not found #496

Closed
Juergen-aus-Zuendorf opened this issue Sep 15, 2023 · 6 comments · Fixed by #495
Closed

Error: Class "Mpdf\Mpdf" not found #496

Juergen-aus-Zuendorf opened this issue Sep 15, 2023 · 6 comments · Fixed by #495

Comments

@Juergen-aus-Zuendorf
Copy link
Contributor

Hi together,

since the update of the dw2pdf plugin yesterday I get the following error message when I want to export a pdf file:
Error: Class "Mpdf\Mpdf" not found
Does anyone have an idea to solve this?

Best regards
Juergen

@Klap-in Klap-in linked a pull request Sep 15, 2023 that will close this issue
@spricer
Copy link

spricer commented Oct 4, 2023

In what release this was fixed?
I am using splitbrain-dokuwiki-plugin-dw2pdf-2023-09-15-0-ge731542.tar.gz and still getting this error...
ENV:
Ubuntu 22.04.3 LTS (kernel 5.15.0-78)
PHP: 8.1.2-1ubuntu2.14

@spricer
Copy link

spricer commented Oct 4, 2023

Downloading plugin from git directly fixed issue.
From dokuwiki plugin page only
splitbrain-dokuwiki-plugin-dw2pdf-2023-09-15-0-ge731542.tar.gz
is available..

@Klap-in
Copy link
Collaborator

Klap-in commented Oct 4, 2023

It is for me still unclear how you can find a link pointing to 'splitbrain-dokuwiki-plugin-dw2pdf-2023-09-15-0-ge731542.tar.gz', as the wiki pages points to https://github.com/splitbrain/dokuwiki-plugin-dw2pdf/tarball/master, which should retrieve the latest code on GitHub.

@spricer
Copy link

spricer commented Oct 4, 2023

Have you tried clicking on above link and seeing actual file downloaded ?
This is maybe GIT bug :)

@Klap-in
Copy link
Collaborator

Klap-in commented Oct 4, 2023

Have you tried clicking on above link and seeing actual file downloaded ?

I did not indeed. I see now what you mean (splitbrain-dokuwiki-plugin-dw2pdf-2023-09-15-0-ge731542.tar.gz as well). But, looking in the tar.gz I can find the needed fix...
This the fix for this issue:
d97a751

If I download via https://github.com/splitbrain/dokuwiki-plugin-dw2pdf/archive/refs/heads/master.zip I get the same code.
However, there is one difference, the tar uses an extra folder. Not tested if that makes a difference for the extension manager.

@spricer
Copy link

spricer commented Oct 4, 2023

I have to install plugins manually as setup is in closed env. Copying splitbrain-dokuwiki-plugin-dw2pdf-2023-09-15-0-ge731542.tar.gz over existing plugin for some reason did not work. Direct github download package worked fine. Did not go into details. Folder were copied 1:1 (not folder within folder).
I see that many other plugins downloaded from dokuwiki plugin page have master in their downloaded file name while dw2pdf does not.
Anyway I might been isolated case and I am good now. Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants