Hallo zusammen,
ich hoffe ihr könnt mir weiterhelfen :-)
Ich habe eine Erweiterung geschrieben, die auf meinem Testsystem wunderbar funktioniert. Nun will ich die Erweiterung auf das Produktivsystem umziehen, kann mich jedoch nicht mehr im Backen einloggen. Die Loginmaske erscheint, danach kommt eine weiße Seite. Das Frontend funktioniert wunderbar. Beide Systeme verwenden die aktuelle Contao Version.
Wenn ich die install.php aufrufe kommt folgende Fehlermeldung:
Code:
Warning: Cannot modify header information - headers already sent by (output started at /system/modules/chamaeleon/config/config.php:1) in /system/libraries/Template.php on line 285
#0 [internal function]: __error(2, 'Cannot modify h...', '/homepages/21/d...', 285, Array)
#1 /system/libraries/Template.php(285): header('Vary: User-Agen...', false)
#2 /system/modules/backend/BackendTemplate.php(161): Template->output()
#3 /contao/install.php(904): BackendTemplate->output()
#4 /contao/install.php(262): InstallTool->outputAndExit()
#5 /contao/install.php(914): InstallTool->run()
#6 {main}
Warning: Cannot modify header information - headers already sent by (output started at /system/modules/chamaeleon/config/config.php:1) in /system/libraries/Template.php on line 286
#0 [internal function]: __error(2, 'Cannot modify h...', '/homepages/21/d...', 286, Array)
#1 /system/libraries/Template.php(286): header('Content-Type: t...')
#2 /system/modules/backend/BackendTemplate.php(161): Template->output()
#3 /contao/install.php(904): BackendTemplate->output()
#4 /contao/install.php(262): InstallTool->outputAndExit()
#5 /contao/install.php(914): InstallTool->run()
#6 {main}
Die config.php der Erweiterung sieht wie folgt aus:
PHP-Code:
<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
/**
* -------------------------------------------------------------------------
* BACK END MODULES
* -------------------------------------------------------------------------
*
* Back end modules are stored in a global array called "BE_MOD". Each module
* has certain properties like an icon, an optional callback function and one
* or more tables. Each module belongs to a particular group.
*/
$GLOBALS['BE_MOD']['Chamaeleon'] = array
(
'Reisen' => array
(
'tables' => array('tl_ch_tours'),
'icon' => 'system/modules/chamaeleon/html/reisen.gif'
),
'Reisecodes' => array
(
'tables' => array('tl_ch_codes'),
'icon' => 'system/modules/chamaeleon/html/codes.png'
)
);
/**
* -------------------------------------------------------------------------
* CONTENT ELEMENTS
* -------------------------------------------------------------------------
*
* List all content elements and their class names.
*/
$GLOBALS['TL_CTE']['includes'] = array
(
'Chamaeleonreise' => 'ch_ce_tour'
);
/**
* Cron jobs
*/
$GLOBALS['TL_CRON']['daily']['Reisecodes'] = array('ch_codes', 'refreshcodes');
$GLOBALS['TL_CRON']['daily']['Chamaeleonreisen'] = array('ch_tours', 'cronJob');
?>
Was machte ich falsch, habe ich übersehen? Wie gesagt, auf meiner Testinstallation (Kopie des Produktivsystems) läuft alles wunderbar. Produktiv liegt bei 1und1, Test ist ein vServer bei Hosteurope. Kann es damit was zu tun haben?
VG
Hannes
Lesezeichen