Bekomme beim Versuch zu Drucken immer folgende Fehlermeldung.
1.0.0-rc1_build-1283
Contao 2.11.4 (bei 2.11.3 trat der Fehler auch auf)
Server PHP Version 5.2.4-2ubuntu5.6 - CGI/FastCGI - Suhosin
Code:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in .../system/libraries/System.php on line 170
#0 .../system/libraries/System.php(170): __error(2, 'in_array() [import('getInstance', NULL)
#2 .../system/libraries/System.php(170): ebm_print_order->__construct(Array, 'ODT')
#3 .../system/modules/ebm_order/ebm_invoice.php(97): System->import()
#4 .../system/modules/backend/Backend.php(246): ebm_invoice->invoicePrint('ebm_print_order')
#5 .../contao/main.php(120): Backend->getBackendModule(Object(DC_Table), 'tl_es_invoice', Array)
#6 .../contao/main.php(230): Main->run('tl_es_invoice')
#7 {main}
Fatal error: Class name must be a valid object or a string in .../system/libraries/System.php on line 170
Der zugehörige code aus der system.php
Code:
/**
* Import a library and make it accessible by its name or an optional key
* @param string
* @param string
* @param boolean
*/
protected function import($strClass, $strKey=null, $blnForce=false)
{
$strKey = ($strKey != '') ? $strKey : $strClass;
if ($blnForce || !is_object($this->$strKey))
{
->170 $this->$strKey = (in_array('getInstance', get_class_methods($strClass))) ? call_user_func(array($strClass, 'getInstance')) : new $strClass();
}
}