Liplex/li_crm — Issue #21: Error message with the module "Invoice list"
Author: lionel-m
Created: 2012-01-09 18:55:17+00:00
State: open

I added the module "Invoice list" into an article and I have no invoice at this time.

There is this error message that appears...

```plaintext
Warning: array_key_exists() expects parameter 2 to be array, null given in /Applications/MAMP/htdocs/contao-2.10.0/system/modules/li_crm/ModuleInvoiceList.php on line 57

#0 [internal function]: __error(2, 'array_key_exist...', '/Applications/M...', 57, Array)
#1 /Applications/MAMP/htdocs/contao-2.10.0/system/modules/li_crm/ModuleInvoiceList.php(57): array_key_exists('details-dune-fa...', NULL)
#2 /Applications/MAMP/htdocs/contao-2.10.0/system/modules/frontend/Module.php(140): ModuleInvoiceList->compile()
#3 /Applications/MAMP/htdocs/contao-2.10.0/system/modules/li_crm/ModuleInvoiceList.php(41): Module->generate()
#4 /Applications/MAMP/htdocs/contao-2.10.0/system/modules/frontend/ContentModule.php(72): ModuleInvoiceList->generate()
#5 /Applications/MAMP/htdocs/contao-2.10.0/system/libraries/Controller.php(489): ContentModule->generate()
#6 /Applications/MAMP/htdocs/contao-2.10.0/system/modules/frontend/ModuleArticle.php(193): Controller->getContentElement('99')
#7 /Applications/MAMP/htdocs/contao-2.10.0/system/modules/frontend/Module.php(140): ModuleArticle->compile()
#8 /Applications/MAMP/htdocs/contao-2.10.0/system/modules/frontend/ModuleArticle.php(71): Module->generate()
#9 /Applications/MAMP/htdocs/contao-2.10.0/system/libraries/Controller.php(421): ModuleArticle->generate(false)
#10 /Applications/MAMP/htdocs/contao-2.10.0/system/libraries/Controller.php(294): Controller->getArticle('34', false, false, 'main')
#11 /Applications/MAMP/htdocs/contao-2.10.0/system/modules/frontend/PageRegular.php(100): Controller->getFrontendModule('0', 'main')
#12 /Applications/MAMP/htdocs/contao-2.10.0/index.php(200): PageRegular->generate(Object(DB_Mysqli_Result))
#13 /Applications/MAMP/htdocs/contao-2.10.0/index.php(319): Index->run()
#14 {main}

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/contao-2.10.0/system/functions.php:164) in /Applications/MAMP/htdocs/contao-2.10.0/system/libraries/Template.php on line 286

#0 [internal function]: __error(2, 'Cannot modify h...', '/Applications/M...', 286, Array)
#1 /Applications/MAMP/htdocs/contao-2.10.0/system/libraries/Template.php(286): header('Vary: User-Agen...', false)
#2 /Applications/MAMP/htdocs/contao-2.10.0/system/modules/frontend/FrontendTemplate.php(208): Template->output()
#3 /Applications/MAMP/htdocs/contao-2.10.0/system/modules/frontend/PageRegular.php(168): FrontendTemplate->output()
#4 /Applications/MAMP/htdocs/contao-2.10.0/index.php(200): PageRegular->generate(Object(DB_Mysqli_Result))
#5 /Applications/MAMP/htdocs/contao-2.10.0/index.php(319): Index->run()
#6 {main}

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/contao-2.10.0/system/functions.php:164) in /Applications/MAMP/htdocs/contao-2.10.0/system/libraries/Template.php on line 287

#0 [internal function]: __error(2, 'Cannot modify h...', '/Applications/M...', 287, Array)
#1 /Applications/MAMP/htdocs/contao-2.10.0/system/libraries/Template.php(287): header('Content-Type: t...')
#2 /Applications/MAMP/htdocs/contao-2.10.0/system/modules/frontend/FrontendTemplate.php(208): Template->output()
#3 /Applications/MAMP/htdocs/contao-2.10.0/system/modules/frontend/PageRegular.php(168): FrontendTemplate->output()
#4 /Applications/MAMP/htdocs/contao-2.10.0/index.php(200): PageRegular->generate(Object(DB_Mysqli_Result))
#5 /Applications/MAMP/htdocs/contao-2.10.0/index.php(319): Index->run()
#6 {main}
```