Skip to content

PHP warning when using parseContentShortcut(): Passing null to parameter #884

Discussion options

You must be logged in to vote

I checked the source code and think this is not a bug in the core. I suspect the calling code is wrong. For newer PHP versions null and strings are non-interchangeable types, there's no automatic type cast anymore, so I think the second argument in the calling code must be a string. Sometimes it is enough to manually replace null by "".

Can you use parseContentShortcut("blogtags", "", "inline") and check if this fixes the problem?

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@markseuffert
Comment options

Answer selected by annaesvensson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants