Topic: Fatal error when clicking on add news

Hi, everything is working fine but when I click to add news I get this error:

Fatal error: Uncaught ArgumentCountError: Too few arguments to function cn_bc_add(), 1 passed in C:\xampp\htdocs\web\News\core\modules\add_news.php on line 12 and exactly 2 expected in C:\xampp\htdocs\web\News\core\core.php:3877 Stack trace: #0 C:\xampp\htdocs\web\News\core\modules\add_news.php(12): cn_bc_add('Add new') #1 C:\xampp\htdocs\web\News\core\core.php(1333): add_news_invoke('addnews') #2 C:\xampp\htdocs\web\News\index.php(18): hook('index/invoke_mo...', Array) #3 {main} thrown in C:\xampp\htdocs\web\News\core\core.php on line 3877

what can be this?

Re: Fatal error when clicking on add news

Dear l2eclipse,

To deal with the error, please, change the line

function cn_bc_add($name, $url)


function cn_bc_add($name, $url = '')

in the file 'core/core.php'.

Best regards,
CN Support team