Jump to content

Extension talk:PGFTikZ

About this board

Is it working with mediawiki 1.32 ?

3
Gdwikimeca (talkcontribs)

Hello,


I install this extension in my mediawiki and i have this error :

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/mw/extensions/PGFTikZ/PGFTikZ.hooks.php on line 23


Is there any solution, please ?


Thanks a lot for your work !


G Dumont


Thibaultmarin (talkcontribs)

Hi, unfortunately, I am not using this extension (or mediawiki) anymore. I am not sure this bit of code was ever needed (I think it was meant to let the main parser handle some text, but it seems to unused). Maybe simply removing (1) the whole function (onPGFTikZAfterTidy) and (2) line 48 of PGFTikZ.php (https://github.com/wikimedia/mediawiki-extensions-PGFTikZ/blob/master/PGFTikZ.php#L48) would work. But it's been so long now that I would expect other things to break down. Good luck, sorry for not being more helpful.

Janos.tapolcai (talkcontribs)

No warning if you replace the /var/www/html/mw/extensions/PGFTikZ/PGFTikZ.hooks.php on line 23 with

for ( $i = 0; $i < count( (array) $markerList ); $i++ ) {


Reply to "Is it working with mediawiki 1.32 ?"
AKlapper (WMF) (talkcontribs)
Thibaultmarin (talkcontribs)

I was assuming the talk page would a natural place to report bugs. Is there a better place?

Thanks for reporting the phabricator bugs, I'll look into them (I had not ported my account there).

AKlapper (WMF) (talkcontribs)
Reply to "Where to report bugs?"
There are no older topics