e107help.org Q&A
0 like 0 dislike
See title. The errormessage I get is (since update)

Fatal error: Uncaught ArgumentCountError: Too few arguments to function e_parse::simpleParse(), 1 passed in /customers/3/0/6/phspeed.com/httpd.www/e107_plugins/log/stats.php on line 1568 and at least 2 expected in /customers/3/0/6/phspeed.com/httpd.www/e107_handlers/e_parse_class.php:916 Stack trace: #0 /customers/3/0/6/phspeed.com/httpd.www/e107_plugins/log/stats.php(1568): e_parse->simpleParse('renderRefers(Array) #2 /customers/3/0/6/phspeed.com/httpd.www/index.php(69): include_once('/customers/3/0/...') #3 {main} thrown in /customers/3/0/6/phspeed.com/httpd.www/e107_handlers/e_parse_class.php on line 916

Anyone experiencing the same issue (I'll report it to bugs then)
e107 version 2.1.9
in Plugins by (219 points) 4 10 17
What's your PHP version?
7.2

I can confirm it does not generate an error under 7.1, although the page is completely blank.

Albert
This sounds like a PHP 7.x compatibility issue. Please report it to Github.

1 Answer

0 like 0 dislike

Hi, no, but I don't use latest version with this plugin.   And on e107.sk I have just message No statistics available.  But your problem is on line 1568

}

        //before: $var = array('TOTAL' => $total,

        $var = array('TOTAL' => number_format($total)); 

        $text .= $tp->simpleParse($template['end'], $var);

}

Try to check what value is in $total (var_dump), and in $template['end'] . one of those params is missing.  I am not able to test this (on localhost I haven't data yet).

And for sure create issue on github. And write your php version. 

 

by (1.7k points) 8 35 46
Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
842 questions
1,240 answers
2,154 comments
5,546 users