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

Call To Undefined Method getUserFactory() #18

Open
WillP-1 opened this issue Oct 4, 2023 · 3 comments
Open

Call To Undefined Method getUserFactory() #18

WillP-1 opened this issue Oct 4, 2023 · 3 comments

Comments

@WillP-1
Copy link

WillP-1 commented Oct 4, 2023

Hi there,

I have installed this fork on my MW server and got the following error:

[ZR2GJ1vfaLpntRMuxbsNNAAAAA4] /index.php?title=My_Page Error from line 120 of /var/www/XXX/XXX/XXX/web/extensions/PDFEmbed/PDFEmbed.hooks.php: Call to undefined method MediaWiki\MediaWikiServices::getUserFactory()

If I link a PDF and click show preview, I can see the PDF shown fine. If I click the submit button I get this error.

MediaWiki 1.34.0
PHP 7.2.34 (cgi-fcgi)
PDFEmbed | 3.0.1 (27cd011)

Is this a known issue or have I setup the extension incorrectly?

Thankyou,
Will.

@pa4080
Copy link
Contributor

pa4080 commented Oct 4, 2023

Hello, @WillP-1. MediaWiki 1.34 has been announced as "end of life" almost 3 years ago. The version 3.x of PDFEmbed have backward compatibility till MW 1.35 (I know that, because I've provided it). IMO, the actual issue is that the required version still continuous to be 1.29.

@WillP-1
Copy link
Author

WillP-1 commented Oct 5, 2023

Hi @pa4080, thanks so much for your response. Unfortunately, I'm not in control of the version of ME we use and we likely wouldn't update it at this time. Is there an older version of PDFEmbed we could use that would support version 1.34?

Thanks.

@pa4080
Copy link
Contributor

pa4080 commented Oct 5, 2023

Hi, @WillP-1, probably the owner of the repository @WolfgangFahl will now better, but I think you can try to checkout some of the commits before Nov 13, 2020.

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

No branches or pull requests

2 participants