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

Argument must be of type string, null given, called in HtmlElement.php #111

Closed
benbjurstrom opened this issue Dec 23, 2024 · 0 comments · Fixed by #117
Closed

Argument must be of type string, null given, called in HtmlElement.php #111

benbjurstrom opened this issue Dec 23, 2024 · 0 comments · Fixed by #117

Comments

@benbjurstrom
Copy link
Owner

benbjurstrom commented Dec 23, 2024

You may encounter the following error after upgrading to the latest version:

League\CommonMark\Util\Xml::escape(): Argument #1 ($string) must be of type string, null given, called in /Volumes/code/prezet-web/vendor/league/commonmark/src/Util/HtmlElement.php on line 130

To fix update your config file to the latest version or add the image.zoomable property to your current config.

prezet/config/prezet.php

Lines 92 to 101 in fdf0d20

'image' => [
'widths' => [
480, 640, 768, 960, 1536,
],
'sizes' => '92vw, (max-width: 1024px) 92vw, 768px',
'zoomable' => true,
],

@benbjurstrom benbjurstrom linked a pull request Jan 15, 2025 that will close 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

Successfully merging a pull request may close this issue.

1 participant