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

Issue with PageImages #94

Open
PadawanAmy opened this issue Jan 20, 2023 · 6 comments
Open

Issue with PageImages #94

PadawanAmy opened this issue Jan 20, 2023 · 6 comments

Comments

@PadawanAmy
Copy link

when I try and use PageImages with PortableInfobox installed I get this error https://pastebin.com/xpMNZ8yD

both extensions work fine alone but with both together it gives the error

@Universal-Omega
Copy link
Owner

Are you using PHP 8 and also which MediaWiki version?

Also it seems this has to do with PageImages. This extension only has a single usage of array_flip(), which wouldn't likely be the cause here.

My guess is if your using PHP 8, it might be an issue with that.

Nonetheless, I'll look into possible causes with this extension.

@PadawanAmy
Copy link
Author

PHP 8.1, mediawiki 1.39, latest versions of both extensions

@Universal-Omega
Copy link
Owner

PHP 8.1, mediawiki 1.39, latest versions of both extensions

I assume it has to do with PHP 8.1.

I'll look into it sometime next week probably.

@PadawanAmy
Copy link
Author

PadawanAmy commented Jan 20, 2023 via email

@Universal-Omega
Copy link
Owner

Do you have $wgPageImagesNamespaces set to an array, and not an int? IE $wgPageImagesNamespaces = [ NS_MAIN ] instead of $wgPageImagesNamespaces = NS_MAIN?

@SlyAceZeta
Copy link

SlyAceZeta commented Jun 8, 2023

Almost every page on my wiki that has a PortableInfobox causes PageImages to never select any image from the page, leading to Popups/Page Previews failing to render. Would really appreciate some solution to this.

To answer the previous post, at least on my wiki, $wgPageImagesNamespaces is not even set, it's just the default. I can also confirm that setting $wgPortableInfoboxUseHeadings to false has no effect on this issue.

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

3 participants