Installation problem - Contao 3
Hi, I need a help - I'm not able to install Contao 3 on my server...
I have several web pages with Contao 2.x.x, and there were no problems.
With Contao check, everything seems ok, I can install version 2 completely. But when I install Contao 3.0.3 (3.0.1 and 3.0.2), download to server is ok, then I change installation password, enter the database connection and then it falls down:
Code:
Warning: Invalid argument supplied for foreach() in /www/doc/www.mydomain.eu/www/system/modules/core/library/Contao/Controller.php on line 114
#0 /www/doc/www.mydomain.eu/www/system/modules/core/library/Contao/Controller.php(114): __error(2, 'Invalid argumen...', '/www/doc/www.kl...', 114, Array)
#1 /www/doc/www.mydomain.eu/www/system/modules/newsletter/dca/tl_newsletter.php(203): Contao\Controller::getTemplateGroup('mail_')
#2 /www/doc/www.mydomain.eu/www/system/modules/core/library/Contao/Controller.php(2394): include('/www/doc/www.kl...')
#3 /www/doc/www.mydomain.eu/www/system/modules/core/library/Contao/DcaExtractor.php(280): Contao\Controller->loadDataContainer('tl_newsletter')
#4 /www/doc/www.mydomain.eu/www/system/modules/core/library/Contao/DcaExtractor.php(109): Contao\DcaExtractor->createExtract()
#5 /www/doc/www.mydomain.eu/www/system/modules/core/library/Contao/DcaExtractor.php(459): Contao\DcaExtractor->__construct('tl_newsletter')
#6 /www/doc/www.mydomain.eu/www/system/modules/core/library/Contao/Database/Installer.php(258): Contao\DcaExtractor::createAllExtracts()
#7 /www/doc/www.mydomain.eu/www/system/modules/core/library/Contao/Database/Installer.php(106): Contao\Database\Installer->getFromDca()
#8 /www/doc/www.mydomain.eu/www/system/modules/core/library/Contao/Database/Installer.php(38): Contao\Database\Installer->compileCommands()
#9 /www/doc/www.mydomain.eu/www/contao/install.php(227): Contao\Database\Installer->generateSqlForm()
#10 /www/doc/www.mydomain.eu/www/contao/install.php(936): InstallTool->run()
#11 {main}
Warning: Cannot modify header information - headers already sent by (output started at /www/doc/www.mydomain.eu/www/system/helper/functions.php:69) in /www/doc/www.mydomain.eu/www/system/modules/core/library/Contao/Template.php on line 277
#0 [internal function]: __error(2, 'Cannot modify h...', '/www/doc/www.kl...', 277, Array)
#1 /www/doc/www.mydomain.eu/www/system/modules/core/library/Contao/Template.php(277): header('Vary: User-Agen...', false)
#2 /www/doc/www.mydomain.eu/www/system/modules/core/classes/BackendTemplate.php(156): Contao\Template->output()
#3 /www/doc/www.mydomain.eu/www/contao/install.php(747): Contao\BackendTemplate->output()
#4 /www/doc/www.mydomain.eu/www/contao/install.php(250): InstallTool->outputAndExit()
#5 /www/doc/www.mydomain.eu/www/contao/install.php(936): InstallTool->run()
#6 {main}
Warning: Cannot modify header information - headers already sent by (output started at /www/doc/www.mydomain.eu/www/system/helper/functions.php:69) in /www/doc/www.mydomain.eu/www/system/modules/core/library/Contao/Template.php on line 278
#0 [internal function]: __error(2, 'Cannot modify h...', '/www/doc/www.kl...', 278, Array)
#1 /www/doc/www.mydomain.eu/www/system/modules/core/library/Contao/Template.php(278): header('Content-Type: t...')
#2 /www/doc/www.mydomain.eu/www/system/modules/core/classes/BackendTemplate.php(156): Contao\Template->output()
#3 /www/doc/www.mydomain.eu/www/contao/install.php(747): Contao\BackendTemplate->output()
#4 /www/doc/www.mydomain.eu/www/contao/install.php(250): InstallTool->outputAndExit()
#5 /www/doc/www.mydomain.eu/www/contao/install.php(936): InstallTool->run()
#6 {main}
Behind those errors continues "installation page", but without graphic. Database seems connected. But every button goes to mydomain.eu/contao/contao/install.php instead of mydomain.eu/contao/install.php, so error – page not found…
Can you anybody help? Thanks Jakub
Re: Installation problem - Contao 3
Now I can install version 3.0.4 OK - first problem solved
But after login there are no CSS and every link goes to mydomain.eu/contao/contao/.. instead of mydomain.eu/contao/..., so error again – page not found…
Thanx for your help...
Re: Installation problem - Contao 3
Add in system\config\localconfig after the last line
### INSTALL SCRIPT STOP ###
these two lines:
unset($_SERVER['HTTP_X_FORWARDED_FOR']);
unset($_SERVER['HTTP_X_FORWARDED_HOST']);
Installation OK, backend error
Hi, I can install all versions Contao 3.x.x OK, but after login to backend there are no CSS and every link goes to mydomain.eu/contao/contao/.. instead of mydomain.eu/contao/..., so error again – page not found…
I tried different languages, and Klaus tip, but still the same...
Re: Installation problem - Contao 3
Delete "system/config/pathconfig.php" and run the Contao install tool again. This will set all the path variables automatically.
Re: Installation problem - Contao 3
Thanx xchs, but that isn't solution.
In that file is
Code:
<?php // Relative path to the installation return '';
any when I delete it - nothing changes.
Here is screenshot - the URLs still goes to contao/contao
Than you for your time!
Jakub
Re: Installation problem - Contao 3
Did you run the Contao install tool afterwards? Also, did you set or change the RewriteBase in your ".htaccess"?
Re: Installation problem - Contao 3
Install tool generates exactly the same config file. And I didn't even touch .htaccess
I install Contao thru "CHECK utility". Now I tried install 2.11.11 and it's OK.
I had some (different) problem with czech language pack, so I tried different languages, bud no solution.
Re: Installation problem - Contao 3
Hmm, strange. You already wrote (in the OP) that when running the Contao check everything seems to be fine, but did you perform also the last step, i.e. "Validate an existing Contao installation"? Any corrupt or missing files there?
Please also check the WebsitePath in your "system/config/localconfig.php". There should be an entry like this
Code:
$GLOBALS['TL_CONFIG']['websitePath'] = '';
(if you set up your Contao installation in the vhosts "root" directory)
Re: Installation problem - Contao 3
It's absolutly strange! :-)
Check tool validation of installation is OK.
Code you wrote wasn't there, so I tried to add it, but no change.
I installed contao to directory "www", which is made by provider for websites - there are 3 more direcories, but they aren't accessible from the web (it's "tmp" and "log" ... directory).
I tried to install contao to different hosting, and everything is OK, but I can't find the problem.
And now - the fancy! - When I login, its still the same picture (no CSS, no icons, bad URLs). Only one URL at the top is OK: "user jklimes". When I click on it, I can change my personal data and everything is OK! From here I can do everything, work normaly, and it works. Only one URL is bad: "home".
So I am happy that I can work, bud it's a little bit clumsy...
Re: Installation problem - Contao 3
Quote:
Originally Posted by jklimes
Code you wrote wasn't there
Hmm, there should be already an entry $GLOBALS['TL_CONFIG']['websitePath'] = ... in your "localconfig.php"!
Maybe a problem with write permissions? Try to enable the option "Display error messages" in the back end module "Settings" > "Security settings". If Contao is allowed to edit the local configuration file, then there should be an additional entry now:
Code:
$GLOBALS['TL_CONFIG']['displayErrors'] = true;
Is that the case with you?