Guest User

Untitled

a guest
Jan 13th, 2018
55
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [QUOTE=essecosi;101112]Clean install on new domain[/QUOTE]
  2. Ok, well, but how exactly did you do that? Did you install Contao via
  3. [LIST]
  4. [*]ZIP achive from [FONT=Courier New]contao.org[/FONT],
  5. [*]Contao Manager, or
  6. [*]SSH console?
  7. [/LIST]
  8.  
  9.  
  10. [QUOTE=essecosi;101112]
  11. .htaccess:
  12. RewriteRule ^(/)?$ web/app.php
  13. [/QUOTE]
  14. Can't you just set the DocumentRoot in the domain settings? The DocumentRoot should point to the [FONT=Courier New]web/[/FONT] subfolder of your Contao installation.
  15.  
  16.  
  17. [QUOTE=essecosi;101112]
  18. [CODE]Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError:
  19. Type error: Return value of Contao\CoreBundle\Translation\Translator::getFromGlobals() must be of the type string or null, array returned in /home/username/public_html/vendor/contao/core-bundle/src/Translation/Translator.php:117
  20. Stack trace:
  21. #0 /home/username/public_html/vendor/contao/core-bundle/src/Translation/Translator.php(57): Contao\CoreBundle\Translation\Translator->getFromGlobals('XPT.error')
  22. #1 /home/username/public_html/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Extension/TranslationExtension.php(97): Contao\CoreBundle\Translation\Translator->trans('XPT.error', Array, 'contao_exceptio...', NULL)
  23. #2 /home/username/public_html/var/cache/prod/twig/ba/ba4f6e1e5a061ed5ca0578c94faa10e7e5ca4558e289c81657dc2ccde4ad8125.php(35): Symfony\Bridge\Twig\Extension\TranslationExtension->trans('XPT.error', Array, 'contao_exceptio...')
  24. #3 /home/username/public_html/vendor/twig/twig/lib/Twig/Template.php(188): __TwigTemplate_17cd1622f7268560779aa in /home/username/public_html/vendor/contao/core-bundle/src/Translation/Translator.php on line 117
  25.  
  26. log file content:
  27. [2018-01-13 10:49:55] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction","_route":"contao_backend"},"request_uri":"http://www.xtalk.shop/contao","method":"HEAD"} []
  28. [2018-01-13 10:49:55] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction","_route":"contao_backend"},"request_uri":"http://www.xtalk.shop/contao","method":"GET"} []
  29. [2018-01-13 10:49:55] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Type error: Return value of Contao\\CoreBundle\\Translation\\Translator::getFromGlobals() must be of the type string or null, array returned at /home/username/public_html/vendor/contao/core-bundle/src/Translation/Translator.php:117)"} [][/CODE][/QUOTE]
  30. What is the first (preferred) language in your browser?
RAW Paste Data