I choose the GEDCOM Statistics template,It shows errors:
ERROR8:Arraytostringconversion0Erroroccurredonline216offileclass_stats.phpinfunctiongetTags1calledfromline121offileblock_htmlplus.phpinfunctionprint_htmlplus_block2calledfromline1offileindex.php(283):eval()'d code in function eval3 called from line 283 of file index.phpNotice: Array to string conversion in /home/wwwroot/jiapu/includes/classes/class_stats.php on line 216ERROR 8: Undefined property: stats_compat::$Array0 Error occurred on line 216 of file class_stats.php in function getTags1 called from line 121 of file block_htmlplus.php in function print_htmlplus_block2 called from line 1 of file index.php(283) : eval()'dcodeinfunctioneval3calledfromline283offileindex.phpNotice:Undefinedproperty:stats_compat::$Arrayin/home/wwwroot/jiapu/includes/classes/class_stats.phponline216Fatalerror:UncaughtError:Functionnamemustbeastringin/home/wwwroot/jiapu/includes/classes/class_stats.php:216Stacktrace:#0/home/wwwroot/jiapu/blocks/block_htmlplus.php(121):stats->getTags('\xE7\x9D\xA2\xE5\xAE\x81\xE7\x8E\x8B\xE6\xB0\x8F\xE4\xB8\x96...')#1/home/wwwroot/jiapu/index.php(283):eval()'d code(1): print_htmlplus_block(false, Array, 'main', 0) #2 /home/wwwroot/jiapu/index.php(283): eval() #3 {main} thrown in /home/wwwroot/jiapu/includes/classes/class_stats.php on line 216
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I choose the GEDCOM Statistics template,It shows errors:
Please post the text of your Advanced HTML block here.
I choose to use a template or enter the following, the same error will occur.
Advanced HTML block text:
#totalRecords#Please try the attached file class_stats.php.
This file replaces file /includes/classes/class_stats.php . It also contains the fixes identified earlier concerning age-related statistics.
Please let me know whether this fixes your problem.
edit: Attached file was replaced with the copy from SVN 7210 . No code changes from the previously posted attachment.
Last edit: Gerry Kroll 2018-10-02
Thank you very much, it is very useful.
Now it works very well.