You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError from line 61 of "ImageCaption.php": Argument 3 passed to SMW\ImageCaption\ImageCaption::modifyCaption() must be of the type string, null given
#9
Open
kghbln opened this issue
Aug 23, 2020
· 3 comments
MediaWiki | 1.35.0-rc.2 (37ef236)17:21, 22 August 2020
PHP | 7.2.24-0ubuntu0.18.04.6 (apache2handler)
MariaDB | 10.1.44-MariaDB-0ubuntu0.18.04.1
Semantic MediaWiki | 3.2.0-alpha (127a703) 14:33, 22 August 2020
Semantic Image Caption | 1.0.0-alpha (e0ea278) 15:27, 9 August 2020
Title Icon | 4.1.1 (2e9ce16) 08:11, 11 July 2020
Issue
[1c6686c5076d115b475b6a2d] /wiki/Cat%C3%A9gorie:Title_Icon_example TypeError from line 61 of /../w/extensions/SemanticImageCaption/src/ImageCaption.php: Argument 3 passed to SMW\ImageCaption\ImageCaption::modifyCaption() must be of the type string, null given, called in /../w/extensions/SemanticImageCaption/src/Hooks.php on line 98
This was not caused by the recent update to MW 1.35.x. It just happens that I only now had a look at the logs and reported it.
The argument that is null is $frameParams['caption']. TitleIcon does not set a caption on the linked images it puts in the title bar. I'm not familiar with SemanticImageCaption, but it seems that it should check for the existence of the caption frame parameter before setting it at https://github.com/SemanticMediaWiki/SemanticImageCaption/blob/master/src/Hooks.php#L98.
Setup and configuration
Issue
This was not caused by the recent update to MW 1.35.x. It just happens that I only now had a look at the logs and reported it.
Backtrace
Steps to reproduce the observation (recommendation is to use the sandbox):
See Category:Title Icon example
The text was updated successfully, but these errors were encountered: