1

Topic: creating list causes Fatal Error Uncaught ArgumentCountError...

Greetings.

If I try and create a list, I get the following response...


Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed and exactly 2 expected in C:\xampp\htdocs\punbb\include\parser.php:58 Stack trace: #0 [internal function]: {closure}(Array) #1 C:\xampp\htdocs\punbb\include\parser.php(60): preg_replace_callback('%\\[list(?:=([1a...', Object(Closure), '[list]test1\ntes...') #2 C:\xampp\htdocs\punbb\post.php(179): preparse_bbcode('[list]test1\ntes...', Array) #3 {main} thrown in C:\xampp\htdocs\punbb\include\parser.php on line 58

This is a fresh install on a Windows 7 VM using XAMPP 7.4.12 to provide the needed services.

So far it seems to be the only thing broken, other than having to fix:

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\xampp\htdocs\punbb\include\functions.php on line 1818

Deprecated: Function get_magic_quotes_gpc() is deprecated in C:\xampp\htdocs\punbb\include\common.php on line 18

by editing the respective files.
Any thoughts on what to look at and/or fix would be appreciated.

Thanks!

Re: creating list causes Fatal Error Uncaught ArgumentCountError...

https://punbb.informer.com/forums/post/158390/#p158390
This post and further on the topic

ForkBB
I speak only Russian  :P

3

Re: creating list causes Fatal Error Uncaught ArgumentCountError...

Ok, looks like I got it.
there's a coding error on line 58, based on what I saw from your modified parser.php file.