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

"deprecated" errors (Sanatizer.php & Parser.php) #248

Open
OfficialCRUGG opened this issue Dec 5, 2023 · 4 comments
Open

"deprecated" errors (Sanatizer.php & Parser.php) #248

OfficialCRUGG opened this issue Dec 5, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@OfficialCRUGG
Copy link

DynamicPageList3 version: 3.5.1
MediaWiki version: 1.40.0
PHP version: 8.1.23 (apache2handler)

List of steps to reproduce (step by step, including full links if applicable):

  • Insert the following on a page (not sure if this issue only occurs if there are actually pages in the category or if it doesn't matter)
<dpl>
category=Stubs
</dpl>

What happens?:
I get the following output at the top of my page:

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/includes/parser/Sanitizer.php on line 839

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/includes/parser/Sanitizer.php on line 839

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/includes/parser/Sanitizer.php on line 839

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/includes/parser/Sanitizer.php on line 839

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/html/extensions/DynamicPageList3/includes/Parse.php on line 634

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/html/extensions/DynamicPageList3/includes/Parse.php on line 634

What should have happened instead?:
The content should render without any problems

Browser information, screenshots and other applicable information:
Firefox 120.0.1

image
image

@OfficialCRUGG OfficialCRUGG added the bug Something isn't working label Dec 5, 2023
@OfficialCRUGG
Copy link
Author

OfficialCRUGG commented Dec 5, 2023

I am not sure if this is related, but since it has something to do with rendering/parsing: I have the following in my LocalSettings.php because PortableInfobox doesn't work correctly otherwise:

$wgTidyConfig = [
        'driver' => 'RemexHtml',
        'pwrap' => false,
];

@paladox
Copy link
Contributor

paladox commented Dec 15, 2023

Fixed with 6f2834a and 811467f

@OfficialCRUGG
Copy link
Author

Fixed with 6f2834a and 811467f

Great! How does your release schedule work? When can we expect this in an official release?

@Universal-Omega
Copy link
Owner

I will do an official release in the next week or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants