Giter Site home page Giter Site logo

standard-edition's Introduction

Contao standard edition

Welcome to the Contao standard edition, a fully-functional Contao 4 application that you can use as the skeleton for your new applications.

What's inside?

The Contao standard edition is configured with the following defaults:

  • Twig as template engine;
  • Doctrine ORM/DBAL;
  • Swiftmailer;
  • Annotations enabled for everything.

It comes pre-configured with the following Symfony bundles:

  • FrameworkBundle - The core Symfony framework bundle
  • SecurityBundle - Adds security by integrating Symfony's security component
  • TwigBundle - Adds support for the Twig templating engine
  • MonologBundle - Adds support for Monolog, a logging library
  • SwiftmailerBundle - Adds support for Swiftmailer, a library for sending emails
  • DoctrineBundle - Adds support for the Doctrine ORM
  • KnpMenuBundle - Provides an integration of the KnpMenu library
  • KnpTimeBundle - Makes your dates look sensible and descriptive
  • LexikMaintenanceBundle - Allows you to put your website in maintenance mode
  • NelmioCorsBundle - Adds Cross-Origin Resource Sharing headers support
  • NelmioSecurityBundle - Adds extra security-related features
  • SensioFrameworkExtraBundle - Adds several enhancements, including template and routing annotation capability
  • DebugBundle (in dev/test env) - Adds Debug and VarDumper component integration
  • WebProfilerBundle (in dev/test env) - Adds profiling functionality and the web debug toolbar
  • SensioDistributionBundle (in dev/test env) - Adds functionality for configuring and working with Symfony distributions

It also comes pre-configured with the following Contao bundles:

  • ContaoCoreBundle - The Contao core bundle
  • ContaoCalendarBundle - Adds calendar functionality to Contao
  • ContaoCommentsBundle - Adds comments functionality to Contao
  • ContaoFaqBundle - Adds FAQ functionality to Contao
  • ContaoInstallationBundle - Required to install and update Contao
  • ContaoListingBundle - Allows to list arbitrary data in the front end
  • ContaoNewsBundle - Adds news functionality to Contao
  • ContaoNewsletterBundle - Adds newsletter functionality to Contao

Enjoy!

standard-edition's People

Contributors

aschempp avatar bytehead avatar discordier avatar leofeyer avatar toflar avatar tristanlins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

standard-edition's Issues

Breaking change in Symfony Filesystem

Symfony (probably unintendedly) introduced a breaking change to their Filesystem component two weeks ago.

This affects Contao's abilty to create symlinks correctly since the makePathRelative() method no longer works as expected.

I filed an issue over at Symfony, but we should probably track its progress here.

symfony/symfony#22328

Cron.php does not exsist

Hello,

Yesterday i installed the latest stable contao 4 release.

I want to run a cronjob with cron.php but the file does not exsist.
there is a cron.txt in directory "web/system/cron" but not a cron.php

I have changed de settings to run with cron.php

Much Thanks

Got `Failed to create symbolic link` error while installing standard-edition via composer on Windows

I was trying to run composer create-project contao/standard-edition contao4 4.0.0-beta1

Here is the full error message:

  [Symfony\Component\Filesystem\Exception\IOException]
  Failed to create symbolic link from "../../Q:\domains\contao4\vendor\contao\core-bundle\src/Resources/contao/themes\flexible" to "Q
  :\domains\contao4/system/themes/flexible".

contao:symlinks

Script Contao\CoreBundle\Composer\ScriptHandler::generateSymlinks handling the post-install-cmd event terminated with an exception

  [RuntimeException]
  An error occurred while executing the contao:symlinks command.

Save-Buttons don't work (Text Element)

I have installed contao4, latest dev.
If I create a new text element and want to save, nothing happens.

Output Browser Console:
contao?do=article&mode=2&pid=1&rt=_hOOHSsAJ_8ux4W-U4etTB8XPYTnw7BpJRxPsXPGJPA&ref=CgVGeoS2&table=tl…:1 An invalid form control with name='text' is not focusable.

Change /web to /public_html

Hello All,

I want to change the "/web" directory to "/public_html".

When i follow this link : symfony.com/override-the-web-directory

and do a composer update it looks fine. But when i go to install.php i get a error 500. in the log files i see this

[Thu Jan 19 21:06:15.625264 2017] [lsapi:error] [pid 234676] [client 82.75.164.96:0] [host t-me.nl] Backend fatal error: PHP Fatal error:  Uncaught InvalidArgumentException: The target directory "/home/debxxx/domains/t-me.nl/app/../web" does not exist. in /home/debxxx/domains/t-me.nl/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php:85\nStack trace:\n#0 /home/debxxx/domains/t-me.nl/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php(262): Symfony\\Bundle\\FrameworkBundle\\Command\\AssetsInstallCommand->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\BufferedOutput))\n#1 /home/debxxx/domains/t-me.nl/vendor/contao/installation-bundle/src/Controller/InstallationController.php(170): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\BufferedOutput))\n#2 /home/debxxx/domains/t-me.nl/vendor/contao/installation-bundle/src/Controller/InstallationController.php(133): Contao\\InstallationBundle\\Controller\\InstallationController->runCommand(Object(Symfon in /home/debxxx/domains/t-me.nl/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php on line 85\n

The reason i want to change it is because i cant change public_html to web directory as root folder.

Fatal Error after Installation

After Installation on WIndows via composer I have a Message under the "Installation not complete screen"

Fatal error: Uncaught exception 'RuntimeException' with message 
'Failed to start the session because headers have already been sent
by "D:\www\contao-4-test\www\app\bootstrap.php.cache" at line 1502.' 
in D:\www\contao-4-test\www\app\cache\prod\classes.php:114 

Stack trace:
#0 D:\www\contao-4-test\www\app\cache\prod\classes.php(188): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
#1 D:\www\contao-4-test\www\app\cache\prod\classes.php(561): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('contao_frontend')
#2 D:\www\contao-4-test\www\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Session.php(78): Symfony\Component\HttpFoundation\Session\Session->getBag('contao_frontend') 
#3 D:\www\contao-4-test\www\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Session.php(97): Contao\Session->__construct()
#4 [internal function]: Contao\Session::getInstance() 
#5 D:\www\contao-4-test\www\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Sy in D:\www\contao-4-test\www\app\bootstrap.php.cache on line 3188

News Article "Show From" Not working

Hi guys,

I've found that the "show from" mechanism is not working in 4.2.2. We have tried to delay publishing articles and the news list ignores our settings.

Cheers!

Fehler beim Aufruf der Install.php - 4.3.6

Ich konnte bisher erfolgreich die 4.3.4 / 4.3.5 als zip auf contao.org herunterladen, entpacken, die install.php aufrufen und durchführen. Abschließend dann Composer update (über ssh) ausgeführt.

Unter 4.3.6 kann ich die install.php nicht mehr aufrufen.

PHP 5.6.29 CGI

Catchable fatal error: Argument 1 passed to Contao\CoreBundle\Doctrine\Schema\DcaSchemaProvider::__construct() must be an instance of Contao\CoreBundle\Framework\ContaoFrameworkInterface, instance of Symfony\Component\DependencyInjection\ContainerBuilder given, called in /www/htdocs/xxxxxxxxx/webseiten/contao-4.3.6/vendor/contao/installation-bundle/src/DependencyInjection/ContainerFactory.php on line 174 and defined in /www/htdocs/xxxxxxxxx/webseiten/contao-4.3.6/vendor/contao/core-bundle/src/Doctrine/Schema/DcaSchemaProvider.php on line 43

PHP 7.1.1 CGI

Fatal error: Uncaught TypeError: Argument 1 passed to Contao\CoreBundle\Doctrine\Schema\DcaSchemaProvider::__construct() must be an instance of Contao\CoreBundle\Framework\ContaoFrameworkInterface, instance of Symfony\Component\DependencyInjection\ContainerBuilder given, called in /www/htdocs/xxxxxxxxx/webseiten/contao-4.3.6/vendor/contao/installation-bundle/src/DependencyInjection/ContainerFactory.php on line 174 and defined in /www/htdocs/xxxxxxxxx/webseiten/contao-4.3.6/vendor/contao/core-bundle/src/Doctrine/Schema/DcaSchemaProvider.php:43 Stack trace: #0 /www/htdocs/xxxxxxxxx/webseiten/contao-4.3.6/vendor/contao/installation-bundle/src/DependencyInjection/ContainerFactory.php(174): Contao\CoreBundle\Doctrine\Schema\DcaSchemaProvider->__construct(Object(Symfony\Component\DependencyInjection\ContainerBuilder)) #1 /www/htdocs/xxxxxxxxx/webseiten/contao-4.3.6/vendor/contao/installation-bundle/src/HttpKernel/InstallationKernel.php(109): Contao\InstallationBundle\DependencyInjection\ContainerFactory::create(Object(Contao\Instal in /www/htdocs/xxxxxxxxx/webseiten/contao-4.3.6/vendor/contao/core-bundle/src/Doctrine/Schema/DcaSchemaProvider.php on line 43`

Hosting ist bei all-inkl.com, Paket: Premium (mit ssh)

Unable to clone repo.

git clone [email protected]:contao/standard-edition.git contao
Cloning into 'contao'...
remote: Counting objects: 89907, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 89907 (delta 0), reused 0 (delta 0), pack-reused 89902
Receiving objects: 100% (89907/89907), 44.25 MiB | 412.00 KiB/s, done.
Resolving deltas: 100% (71180/71180), done.
Checking connectivity... done.
warning: remote HEAD refers to nonexistent ref, unable to checkout.

Leaves with with an empty contao directory.

Speichern und zurück funktioniert nicht mehr

Die Funktion "Speichern und zurück" im Backend funktioniert nicht wie erwartet, statt dessen wird "Speichern und schließen" ausgeführt.
Fehler ist aufgetreten in der Stylesheetbearbeitung.

Erwartete Funktionalität: Speichern und Rückkehr zur Übergeordneten Seite
Resultat: Änderungen werden gespeichert, Rückkehr zur vorherigen Seite

Contao Webinstaller

Steps to reproduce:

  1. Download 4.0.2 Zip
  2. Move to apache Folder
  3. call the page or installer:

( ! ) Fatal error: Uncaught exception 'InvalidArgumentException' with message 'The file "parameters.yml" does not exist (in: D:\www\contao-4.0.2\app/config).' in D:\www\contao-4.0.2\vendor\symfony\symfony\src\Symfony\Component\Config\Loader\FileLoader.php on line 130
( ! ) InvalidArgumentException: The file "parameters.yml" does not exist (in: D:\www\contao-4.0.2\app/config). in D:\www\contao-4.0.2\vendor\symfony\symfony\src\Symfony\Component\Config\FileLocator.php on line 69
Call Stack
#   Time    Memory  Function    Location
1   0.0004  130528  {main}( )   ..\app.php:0
2   0.0123  1167416 Symfony\Component\HttpKernel\Kernel->handle( )  ..\app.php:22
3   0.0123  1167592 Symfony\Component\HttpKernel\Kernel->boot( )    ..\bootstrap.php.cache:2442
4   0.0215  1301024 Symfony\Component\HttpKernel\Kernel->initializeContainer( ) ..\bootstrap.php.cache:2411
5   0.0216  1301624 Symfony\Component\HttpKernel\Kernel->buildContainer( )  ..\bootstrap.php.cache:2632
6   0.1285  3733696 AppKernel->registerContainerConfiguration( )    ..\bootstrap.php.cache:2680
7   0.1285  3733832 Symfony\Component\Config\Loader\DelegatingLoader->load( )   ..\AppKernel.php:52
8   0.1285  3734072 Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load( )    ..\DelegatingLoader.php:45
9   0.1357  3985368 Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseImports( )    ..\YamlFileLoader.php:53
10  0.1357  3985680 Symfony\Component\Config\Loader\FileLoader->import( )   ..\YamlFileLoader.php:103
11  0.1359  3986232 Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load( )    ..\FileLoader.php:112
12  0.1459  3997576 Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseImports( )    ..\YamlFileLoader.php:53
13  0.1459  3997640 Symfony\Component\Config\Loader\FileLoader->import( )   ..\YamlFileLoader.php:103
14  0.1459  3997672 Symfony\Component\HttpKernel\Config\FileLocator->locate( )  ..\FileLoader.php:95
15  0.1459  3997672 Symfony\Component\Config\FileLocator->locate( ) ..\FileLocator.php:54
( ! ) Symfony\Component\Config\Exception\FileLoaderLoadException: The file "parameters.yml" does not exist (in: D:\www\contao-4.0.2\app/config) in parameters.yml (which is being imported from "D:\www\contao-4.0.2\app/config\config.yml"). in D:\www\contao-4.0.2\vendor\symfony\symfony\src\Symfony\Component\Config\Loader\FileLoader.php on line 130
Call Stack
#   Time    Memory  Function    Location
1   0.0004  130528  {main}( )   ..\app.php:0
2   0.0123  1167416 Symfony\Component\HttpKernel\Kernel->handle( )  ..\app.php:22
3   0.0123  1167592 Symfony\Component\HttpKernel\Kernel->boot( )    ..\bootstrap.php.cache:2442
4   0.0215  1301024 Symfony\Component\HttpKernel\Kernel->initializeContainer( ) ..\bootstrap.php.cache:2411
5   0.0216  1301624 Symfony\Component\HttpKernel\Kernel->buildContainer( )  ..\bootstrap.php.cache:2632
6   0.1285  3733696 AppKernel->registerContainerConfiguration( )    ..\bootstrap.php.cache:2680
7   0.1285  3733832 Symfony\Component\Config\Loader\DelegatingLoader->load( )   ..\AppKernel.php:52
8   0.1285  3734072 Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load( )    ..\DelegatingLoader.php:45
9   0.1357  3985368 Symfony\Component\DependencyInjection\Loader\YamlFileLoader->parseImports( )    ..\YamlFileLoader.php:53
10  0.1357  3985680 Symfony\Component\Config\Loader\FileLoader->import( )   ..\YamlFileLoader.php:103

@import "partial.scss" fails when using externals stylesheets in layout settings

@import "bootstrap.scss" fails when using it as an externals stylesheets in the layout settings:
This is the error message in app/logs:
[2016-08-08 22:03:39] app.CRITICAL: An exception occurred. {"exception":"[object](Leafo\ScssPhp\Exception\CompilerException%28code: 0%29: Undefined variable $i: line: 48 at C:\xampp\htdocs\vendor\leafo\scssphp\src\Compiler.php:3301)"} []

The error occures when parsing this section in _grid_framework.scss on line 48:

@include make-col($i, $columns, $gutter);

Changelog shows "no changes"

Shouldn't this changelog list the information currently found in core-bundle/changelog ?
And also, shouldn't the changelog linked in the news entry for a new release of contao/standard-edition link to this changelog?

RC1 Release broken: No installation possible

Did test this on a local machine with Docker instances (php 5.4 and 5.9) and also to be sure it's not a faulty docker image on a clean LAMP Stack @ digitalocean

The install.php throws an error The installation has not been completed
You can see it here:
http://46.101.197.71/contao4-RC1/web/install.php
A 4.0.4 version works fine to that point:
http://46.101.197.71/contao4-404/web/install.php

Some infos about the system: http://46.101.197.71/info.php

Didn't dig into this yet, no time atm. 😞
Maybe tomorrow
Not sure which component is responsible so I'd put it here.

I saw @leofeyer did some commits on the release/4.1.0 branch but from the commit messages it didn't look related to this.

If someone likes I can add your ssh key to have access on that machine. Only did set up that machine for this purpose.

There is also a new dependency on league/uri 4.0.1 which requires at least php 5.9
We can work around this with:
composer create-project --ignore-platform-reqs contao/standard-edition <target> 4.1.0-RC1
but error is the same like php 5.9 when trying to start installation.
The dependency thing is more core-bundle related because it introduced the new dependency if I'm not wrong.

Compile Error for standard-edition on PHP 5.4.x

System:
OSX Yosemite
PHP 5.4.35

If i would edit the article, it comes to the following error message:

Compile Error: Can't use function return value in write context
in vendor/contao/core-bundle/src/Resources/contao/classes/FrontendTemplate.php at line 188

Expressions support for the empty function starts in PHP 5.5.

Greetings

Missing symlink for /files after installation

I installed 4.1.0 on

  • Linux Debian
  • Apache 2.0 Handler
  • PHP Version 5.6.16

After installation I tried to put this code

<link rel="stylesheet" href="files/test.css">

into Additional <head> tags in layout. But since there's no symlink for files the test.css can not be served by the server.

I installed by uploading the download package from contao.org via FTP.

File Manager does not work correct on Xampp (Win)

In use: Windows 8.1 with xampp and php 5.5

Reproduce File upload error:

  1. create a Folder in the file Manager
  2. save and Close
  3. upload a file and select the Folder which we have created
  4. Contao Message "A error occured" -> Log: Details: Folder "D:\www\standard-edition/files/test" was not mounted or is not a directory Function: Contao\DC_Folder::move

Reproduce File upload error in files Folder direct:

  1. upload file into files Folder
  2. upload files and go back
  3. Following Errors:
( ! ) Warning: mkdir(): Invalid argument in D:\www\standard-edition\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Files.php on line 87
Call Stack
# Time Memory Function Location
1 0.0003 138904 {main}( ) ..\app.php:0 
2 0.0144 1241592 Symfony\Component\HttpKernel\Kernel->handle( ) ..\app.php:22 
3 0.0599 4148872 Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle( ) ..\bootstrap.php.cache:2429 
4 0.0600 4149544 Symfony\Component\HttpKernel\HttpKernel->handle( ) ..\bootstrap.php.cache:3207 
5 0.0600 4150056 Symfony\Component\HttpKernel\HttpKernel->handleRaw( ) ..\bootstrap.php.cache:3056 
6 0.2443 8153128 call_user_func_array ( ) ..\bootstrap.php.cache:3094 
7 0.2443 8153272 Contao\CoreBundle\Controller\BackendController->mainAction( ) ..\bootstrap.php.cache:3094 
8 0.3448 8953960 Contao\BackendMain->run( ) ..\BackendController.php:51 
9 0.3480 9128104 Contao\Backend->getBackendModule( ) ..\BackendMain.php:130 
10 0.3662 10037904 Contao\DC_Folder->move( ) ..\Backend.php:626 
11 0.3707 10122480 Contao\FileUpload->uploadTo( ) ..\DC_Folder.php:943 
12 0.3782 10213408 Contao\FileUpload->resizeUploadedImage( ) ..\FileUpload.php:164 
13 0.3853 10465960 Contao\Image::resize( ) ..\FileUpload.php:332 
14 0.3853 10466128 Contao\Image::get( ) ..\Image.php:857 
15 0.3972 10776560 Contao\Image->executeResize( ) ..\Image.php:946 
16 0.3979 10778824 Contao\Image->executeResizeGd( ) ..\Image.php:510 
17 0.6311 22894464 Contao\GdImage->saveToFile( ) ..\Image.php:542 
18 0.6325 22958944 Contao\Folder->__construct( ) ..\GdImage.php:179 
19 0.6327 22959912 Contao\Files->mkdir( ) ..\Folder.php:111 
20 0.6327 22960032 mkdir ( ) ..\Files.php:87 

( ! ) Warning: mkdir(): Invalid argument in D:\www\standard-edition\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Files.php on line 87
Call Stack
# Time Memory Function Location
1 0.0003 138904 {main}( ) ..\app.php:0 
2 0.0144 1241592 Symfony\Component\HttpKernel\Kernel->handle( ) ..\app.php:22 
3 0.0599 4148872 Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle( ) ..\bootstrap.php.cache:2429 
4 0.0600 4149544 Symfony\Component\HttpKernel\HttpKernel->handle( ) ..\bootstrap.php.cache:3207 
5 0.0600 4150056 Symfony\Component\HttpKernel\HttpKernel->handleRaw( ) ..\bootstrap.php.cache:3056 
6 0.2443 8153128 call_user_func_array ( ) ..\bootstrap.php.cache:3094 
7 0.2443 8153272 Contao\CoreBundle\Controller\BackendController->mainAction( ) ..\bootstrap.php.cache:3094 
8 0.3448 8953960 Contao\BackendMain->run( ) ..\BackendController.php:51 
9 0.3480 9128104 Contao\Backend->getBackendModule( ) ..\BackendMain.php:130 
10 0.3662 10037904 Contao\DC_Folder->move( ) ..\Backend.php:626 
11 0.3707 10122480 Contao\FileUpload->uploadTo( ) ..\DC_Folder.php:943 
12 0.3782 10213408 Contao\FileUpload->resizeUploadedImage( ) ..\FileUpload.php:164 
13 0.3853 10465960 Contao\Image::resize( ) ..\FileUpload.php:332 
14 0.3853 10466128 Contao\Image::get( ) ..\Image.php:857 
15 0.3972 10776560 Contao\Image->executeResize( ) ..\Image.php:946 
16 0.3979 10778824 Contao\Image->executeResizeGd( ) ..\Image.php:510 
17 0.6311 22894464 Contao\GdImage->saveToFile( ) ..\Image.php:542 
18 0.6325 22958944 Contao\Folder->__construct( ) ..\GdImage.php:179 
19 0.6467 22960008 Contao\Files->mkdir( ) ..\Folder.php:111 
20 0.6468 22960136 mkdir ( ) ..\Files.php:87 

( ! ) Warning: mkdir(): Invalid argument in D:\www\standard-edition\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Files.php on line 87
Call Stack
# Time Memory Function Location
1 0.0003 138904 {main}( ) ..\app.php:0 
2 0.0144 1241592 Symfony\Component\HttpKernel\Kernel->handle( ) ..\app.php:22 
3 0.0599 4148872 Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle( ) ..\bootstrap.php.cache:2429 
4 0.0600 4149544 Symfony\Component\HttpKernel\HttpKernel->handle( ) ..\bootstrap.php.cache:3207 
5 0.0600 4150056 Symfony\Component\HttpKernel\HttpKernel->handleRaw( ) ..\bootstrap.php.cache:3056 
6 0.2443 8153128 call_user_func_array ( ) ..\bootstrap.php.cache:3094 
7 0.2443 8153272 Contao\CoreBundle\Controller\BackendController->mainAction( ) ..\bootstrap.php.cache:3094 
8 0.3448 8953960 Contao\BackendMain->run( ) ..\BackendController.php:51 
9 0.3480 9128104 Contao\Backend->getBackendModule( ) ..\BackendMain.php:130 
10 0.3662 10037904 Contao\DC_Folder->move( ) ..\Backend.php:626 
11 0.3707 10122480 Contao\FileUpload->uploadTo( ) ..\DC_Folder.php:943 
12 0.3782 10213408 Contao\FileUpload->resizeUploadedImage( ) ..\FileUpload.php:164 
13 0.3853 10465960 Contao\Image::resize( ) ..\FileUpload.php:332 
14 0.3853 10466128 Contao\Image::get( ) ..\Image.php:857 
15 0.3972 10776560 Contao\Image->executeResize( ) ..\Image.php:946 
16 0.3979 10778824 Contao\Image->executeResizeGd( ) ..\Image.php:510 
17 0.6311 22894464 Contao\GdImage->saveToFile( ) ..\Image.php:542 
18 0.6325 22958944 Contao\Folder->__construct( ) ..\GdImage.php:179 
19 0.6669 22960016 Contao\Files->mkdir( ) ..\Folder.php:111 
20 0.6735 22960152 mkdir ( ) ..\Files.php:87 

( ! ) Warning: mkdir(): Invalid argument in D:\www\standard-edition\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Files.php on line 87
Call Stack
# Time Memory Function Location
1 0.0003 138904 {main}( ) ..\app.php:0 
2 0.0144 1241592 Symfony\Component\HttpKernel\Kernel->handle( ) ..\app.php:22 
3 0.0599 4148872 Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle( ) ..\bootstrap.php.cache:2429 
4 0.0600 4149544 Symfony\Component\HttpKernel\HttpKernel->handle( ) ..\bootstrap.php.cache:3207 
5 0.0600 4150056 Symfony\Component\HttpKernel\HttpKernel->handleRaw( ) ..\bootstrap.php.cache:3056 
6 0.2443 8153128 call_user_func_array ( ) ..\bootstrap.php.cache:3094 
7 0.2443 8153272 Contao\CoreBundle\Controller\BackendController->mainAction( ) ..\bootstrap.php.cache:3094 
8 0.3448 8953960 Contao\BackendMain->run( ) ..\BackendController.php:51 
9 0.3480 9128104 Contao\Backend->getBackendModule( ) ..\BackendMain.php:130 
10 0.3662 10037904 Contao\DC_Folder->move( ) ..\Backend.php:626 
11 0.3707 10122480 Contao\FileUpload->uploadTo( ) ..\DC_Folder.php:943 
12 0.3782 10213408 Contao\FileUpload->resizeUploadedImage( ) ..\FileUpload.php:164 
13 0.3853 10465960 Contao\Image::resize( ) ..\FileUpload.php:332 
14 0.3853 10466128 Contao\Image::get( ) ..\Image.php:857 
15 0.3972 10776560 Contao\Image->executeResize( ) ..\Image.php:946 
16 0.3979 10778824 Contao\Image->executeResizeGd( ) ..\Image.php:510 
17 0.6311 22894464 Contao\GdImage->saveToFile( ) ..\Image.php:542 
18 0.6325 22958944 Contao\Folder->__construct( ) ..\GdImage.php:179 
19 0.7181 22960016 Contao\Files->mkdir( ) ..\Folder.php:111 
20 0.7182 22960152 mkdir ( ) ..\Files.php:87 

( ! ) Warning: imagejpeg(D:\www\standard-edition/assets/images/2/P1140966_back 4zu3-bdbd4402.jpg): failed to open stream: No such file or directory in D:\www\standard-edition\vendor\contao\core-bundle\src\Resources\contao\library\Contao\GdImage.php on line 193
Call Stack
# Time Memory Function Location
1 0.0003 138904 {main}( ) ..\app.php:0 
2 0.0144 1241592 Symfony\Component\HttpKernel\Kernel->handle( ) ..\app.php:22 
3 0.0599 4148872 Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle( ) ..\bootstrap.php.cache:2429 
4 0.0600 4149544 Symfony\Component\HttpKernel\HttpKernel->handle( ) ..\bootstrap.php.cache:3207 
5 0.0600 4150056 Symfony\Component\HttpKernel\HttpKernel->handleRaw( ) ..\bootstrap.php.cache:3056 
6 0.2443 8153128 call_user_func_array ( ) ..\bootstrap.php.cache:3094 
7 0.2443 8153272 Contao\CoreBundle\Controller\BackendController->mainAction( ) ..\bootstrap.php.cache:3094 
8 0.3448 8953960 Contao\BackendMain->run( ) ..\BackendController.php:51 
9 0.3480 9128104 Contao\Backend->getBackendModule( ) ..\BackendMain.php:130 
10 0.3662 10037904 Contao\DC_Folder->move( ) ..\Backend.php:626 
11 0.3707 10122480 Contao\FileUpload->uploadTo( ) ..\DC_Folder.php:943 
12 0.3782 10213408 Contao\FileUpload->resizeUploadedImage( ) ..\FileUpload.php:164 
13 0.3853 10465960 Contao\Image::resize( ) ..\FileUpload.php:332 
14 0.3853 10466128 Contao\Image::get( ) ..\Image.php:857 
15 0.3972 10776560 Contao\Image->executeResize( ) ..\Image.php:946 
16 0.3979 10778824 Contao\Image->executeResizeGd( ) ..\Image.php:510 
17 0.6311 22894464 Contao\GdImage->saveToFile( ) ..\Image.php:542 
18 0.7546 22958848 imagejpeg ( ) ..\GdImage.php:193 

( ! ) Warning: copy(D:\www\standard-edition/assets/images/2/P1140966_back 4zu3-bdbd4402.jpg): failed to open stream: No such file or directory in D:\www\standard-edition\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Files.php on line 233
Call Stack
# Time Memory Function Location
1 0.0003 138904 {main}( ) ..\app.php:0 
2 0.0144 1241592 Symfony\Component\HttpKernel\Kernel->handle( ) ..\app.php:22 
3 0.0599 4148872 Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle( ) ..\bootstrap.php.cache:2429 
4 0.0600 4149544 Symfony\Component\HttpKernel\HttpKernel->handle( ) ..\bootstrap.php.cache:3207 
5 0.0600 4150056 Symfony\Component\HttpKernel\HttpKernel->handleRaw( ) ..\bootstrap.php.cache:3056 
6 0.2443 8153128 call_user_func_array ( ) ..\bootstrap.php.cache:3094 
7 0.2443 8153272 Contao\CoreBundle\Controller\BackendController->mainAction( ) ..\bootstrap.php.cache:3094 
8 0.3448 8953960 Contao\BackendMain->run( ) ..\BackendController.php:51 
9 0.3480 9128104 Contao\Backend->getBackendModule( ) ..\BackendMain.php:130 
10 0.3662 10037904 Contao\DC_Folder->move( ) ..\Backend.php:626 
11 0.3707 10122480 Contao\FileUpload->uploadTo( ) ..\DC_Folder.php:943 
12 0.3782 10213408 Contao\FileUpload->resizeUploadedImage( ) ..\FileUpload.php:164 
13 0.3853 10465960 Contao\Image::resize( ) ..\FileUpload.php:332 
14 0.3853 10466128 Contao\Image::get( ) ..\Image.php:857 
15 0.3972 10776560 Contao\Image->executeResize( ) ..\Image.php:946 
16 0.8111 10898248 Contao\Files->copy( ) ..\Image.php:516 
17 0.8112 10898488 copy ( ) ..\Files.php:233 

4 . Navigate back -> The file is uploaded, now there is the error as described in contao/core#7847

( ! ) Warning: filesize(): stat failed for D:\www\standard-edition/D:\www\standard-edition/files/P1140966_back 4zu3.JPG in D:\www\standard-edition\vendor\contao\core-bundle\src\Resources\contao\library\Contao\File.php on line 175
Call Stack
# Time Memory Function Location
1 0.0005 134184 {main}( ) ..\app.php:0 
2 0.0139 1164728 Symfony\Component\HttpKernel\Kernel->handle( ) ..\app.php:22 
3 0.0501 4072048 Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle( ) ..\bootstrap.php.cache:2429 
4 0.0501 4072720 Symfony\Component\HttpKernel\HttpKernel->handle( ) ..\bootstrap.php.cache:3207 
5 0.0501 4073232 Symfony\Component\HttpKernel\HttpKernel->handleRaw( ) ..\bootstrap.php.cache:3056 
6 0.2026 8065880 call_user_func_array ( ) ..\bootstrap.php.cache:3094 
7 0.2026 8066024 Contao\CoreBundle\Controller\BackendController->mainAction( ) ..\bootstrap.php.cache:3094 
8 0.2877 8866664 Contao\BackendMain->run( ) ..\BackendController.php:51 
9 0.2914 9040696 Contao\Backend->getBackendModule( ) ..\BackendMain.php:130 
10 0.3102 9960160 Contao\DC_Folder->showAll( ) ..\Backend.php:626 
11 0.3113 10003528 Contao\DC_Folder->generateTree( ) ..\DC_Folder.php:320 
12 0.3187 10259608 Contao\File->__get( ) ..\DC_Folder.php:2477 
13 0.3187 10259760 filesize ( ) ..\File.php:175 

Call to a member function getParameter() on null in .../library/Contao/Config.php on line 125

Hello everyone,

I am having trouble getting the installation script of the Contao 4 standard edition to run on my server. It worked a couple of weeks ago but stopped recently.

Navigating to http://mywebsite.example.com/install.php (where mywebsite.example.com is the hostname of the webserver) shows the LGPL; accepting it leads to the following PHP error message:

Fatal error: Call to a member function getParameter() on null in /srv/http-mywebsite/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Config.php on line 125

My server's configuration:

(If there is any other information I can provide, please ask!)

Thanks in advance!

cannot be installed under PHP 5.4

Right now when trying to do

composer create-project contao/standard-edition <target>

under PHP 5.4, composer cannot install contao/standard-edition because some of the dependencies in the composer.lock file require PHP 5.5:

Installing contao/standard-edition (4.1.2)
  - Installing contao/standard-edition (4.1.2)
    Loading from cache

Created project in .
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for doctrine/cache v1.6.0 -> satisfiable by doctrine/cache[v1.6.0].
    - doctrine/cache v1.6.0 requires php ~5.5|~7.0 -> your PHP version (5.4.45) does not satisfy that requirement.
  Problem 2
    - Installation request for doctrine/common v2.6.1 -> satisfiable by doctrine/common[v2.6.1].
    - doctrine/common v2.6.1 requires php ~5.5|~7.0 -> your PHP version (5.4.45) does not satisfy that requirement.
  Problem 3
    - Installation request for league/uri 4.1.0 -> satisfiable by league/uri[4.1.0].
    - league/uri 4.1.0 requires php >=5.5.9 -> your PHP version (5.4.45) does not satisfy that requirement.
  Problem 4
    - doctrine/cache v1.6.0 requires php ~5.5|~7.0 -> your PHP version (5.4.45) does not satisfy that requirement.
    - doctrine/doctrine-cache-bundle 1.3.0 requires doctrine/cache ^1.4.2 -> satisfiable by doctrine/cache[v1.6.0].
    - Installation request for doctrine/doctrine-cache-bundle 1.3.0 -> satisfiable by doctrine/doctrine-cache-bundle[1.3.0].

Manger Bundle in composer.json

I was wondering what the reason is for having the contao/manager-bundle as dev dependency in the composer.json in the standard-edition?

   "require-dev": {
        "contao/manager-bundle": "^4.3"
    },

Sorry for abusing someones time if that's a stupid question but I cannot see why this was done.

Enable AppCache by default

As discussed on Mumble, we need to use the AppCache class by default and mark our routes as "not cacheable".

Do not ship a default .htaccess file

As reported at the Agenturtag 2017, the default .htaccess file of the standard/managed edition causes issues with some hosting companies. Here's what they had to comment to make it work:

-DirectoryIndex app.php
+#DirectoryIndex app.php

# Disabling MultiViews prevents unwanted negotiation, e.g. "/app" should not resolve
# to the front controller "/app.php" but be rewritten to "/app.php/app".
-<IfModule mod_negotiation.c>
-    Options -MultiViews
-</IfModule>
+#<IfModule mod_negotiation.c>
+#    Options -MultiViews
+#</IfModule>

-<IfModule mod_rewrite.c>
+#<IfModule mod_rewrite.c>
    RewriteEngine On

    # Determine the RewriteBase automatically and set it as environment variable.
    # If you are using Apache aliases to do mass virtual hosting or installed the
    # project in a subdirectory, the base path will be prepended to allow proper
    # resolution of the app.php file and to redirect to the correct URI. It will
    # work in environments without path prefix as well, providing a safe, one-size
    # fits all solution. But as you do not need it in this case, you can comment
    # the following 2 lines to eliminate the overhead.
    RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
    RewriteRule ^(.*) - [E=BASE:%1]

    # Sets the HTTP_AUTHORIZATION header removed by apache
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect to URI without front controller to prevent duplicate content
    # (with and without `/app.php`). Only do this redirect on the initial
    # rewrite by Apache and not on subsequent cycles. Otherwise we would get an
    # endless redirect loop (request -> rewrite to front controller ->
    # redirect -> request -> ...).
    # So in case you get a "too many redirects" error or you always get redirected
    # to the start page because your Apache does not expose the REDIRECT_STATUS
    # environment variable, you have 2 choices:
    # - disable this feature by commenting the following 2 lines or
    # - use Apache >= 2.3.9 and replace all L flags by END flags and remove the
    #   following RewriteCond (best solution)
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^app\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]

    # If the requested filename exists, simply serve it.
    # We only want to let Apache serve files and not directories.
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule .? - [L]

    # Rewrite all other queries to the front controller.
    RewriteRule .? %{ENV:BASE}/app.php [L]
-</IfModule>
+#</IfModule>

-<IfModule !mod_rewrite.c>
-    <IfModule mod_alias.c>
-        # When mod_rewrite is not available, we instruct a temporary redirect of
-        # the start page to the front controller explicitly so that the website
-        # and the generated links can still be used.
-        RedirectMatch 302 ^/$ /app.php/
-        # RedirectTemp cannot be used instead
-    </IfModule>
-</IfModule>
+#<IfModule !mod_rewrite.c>
+#    <IfModule mod_alias.c>
+#        # When mod_rewrite is not available, we instruct a temporary redirect of
+#        # the start page to the front controller explicitly so that the website
+#        # and the generated links can still be used.
+#        RedirectMatch 302 ^/$ /app.php/
+#        # RedirectTemp cannot be used instead
+#    </IfModule>
+#</IfModule>

# Allow access from all domains for webfonts (see contao/core-bundle#528)
<IfModule mod_headers.c>
  <FilesMatch "\.(ttf|ttc|otf|eot|woff2?|font\.css)$">
    Header set Access-Control-Allow-Origin "*"
  </FilesMatch>
</IfModule>

Although I consider this an unusual Apache configuration, as even the IfModule directive seems to be forbidden, we can easily prevent issues like this by only shipping an .htaccess.default file as we do in Contao 3.

@contao/developers Any objections?

An error is showing installing via composer

Installing via composer an error is showing (windows 10, XAMPP, Contao 4.1.0).

Contao\CoreBundle\Composer\ScriptHandler::generateSymlinks

[Symfony\Component\Filesystem\Exception\IOException]
Failed to create symbolic link from "C:\Users\user-pc\contoa/vendor/contao/core-bundle/src/Resources/contao/themes/flexible" to "C:\Users\user-pc\contoa/system/themes/flexible".

contao:symlinks

Script Contao\CoreBundle\Composer\ScriptHandler::generateSymlinks handling the post-install-cmd event terminated with an exception

[RuntimeException]
An error occurred while executing the "contao:symlinks" command.

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [] [] []

Composer should clear the Prod-Cache too

I recently updated Contao via composer update and since there were bigger changes, Contao wasn't working anymore. A hint by @aschempp clearing everything in /app/cache/ helped, but i think it's better when composer is clearing this cache too.

Unable to login when behind a SSL Proxy

Hi,

I installed the current version on a server behind a SSL proxy. For some reason I'm unable to login. It seems that the base URL is set to HTTP automatically, so the browser blocks some assets as you can see in the screenshot:

screenshot from 2017-02-15 14-07-35

Alias Generierung

Die automatische Alias-generierung von Seiten und Artikeln
wandelt Umlaute nicht mehr in 'ae, oe, ue' um und auch nicht 'ß' in 'ss', wie ich gerade festgestellt habe
in Contao 4.4.1.

Vielleicht ist das ja auch Absicht?

Incompatible with Symfony 3.2

Contao 4 can not be installed with the new symfony 3.2!!

Currently the contao/standard-edition can be installed with composer and the current composer.lock file included in the 4.3 package.

php composer create-project contao/standard-edition

The included composer.lock file require symfony/symfony ~2.8|~3.0 and result in installing symfony 3.1.7. The installation works.

But when you do the following:

composer update

Composer will then update to symfony 3.2. For the moment contao continue to work BUT once you call the install component https:://domain.tld/contao/install the var/bootstrap.php.cache will somehow be created and the total installation will crash with the following fatal error:

Warning: require(//cms/contao4-dev1/var/../../../../../vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php): failed to open stream: No such file or directory in //cms/contao4-dev1/var/bootstrap.php.cache on line 1792

Fatal error: require(): Failed opening required '//cms/contao4-dev1/var/../../../../../vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php' (include_path='.:/usr/local/lib/php') in //cms/contao4-dev1/var/bootstrap.php.cache on line 1792

This can be reverted when forcing to install Symfony 3.1.7 AND manually deleting var/cache/*.

It looks like the contao/installations-bundle is not working correctly with symfony 3.2..

Attempted to load class \"Config\" from the global namespace.

Just tried to update to Contao 4.4, even tried a fresh installation of the standard-edition.
In both cases I end up with the following exception:

app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\ClassNotFoundException(code: 0): Attempted to load class \"Config\" from the global namespace.\nDid you forget a \"use\" statement? at E:\\Programme\\UwAmp\\www\\ubm\\vendor\\contao\\core-bundle\\src\\Resources\\contao\\library\\Contao\\Environment.php:537)"} []

Some users in the forums have the same problem while the managed-edition seems to run fine.

Unification of contao parameters

Why do we have to set the url_suffix in the config.yml and the prepend_locale in the paramters.yml?
Both are related to the contao configuration.

In the config.yml the prepend_locale is taken from the parameter %prepend_locale% which is defined in the paramters.yml.

# Contao configuration
contao:
    prepend_locale: "%prepend_locale%"

I know the url_suffix is optional, but what if we generate this with the install tool like the prepend_locale parameter?

config.yml

# Contao configuration
contao:
    prepend_locale: "%prepend_locale%"
    url_suffix: "%url_suffix%"

parameters.yml

# This file is auto-generated during the composer install
parameters:
    secret: ...
    database_host: localhost
    database_port: 3306
    database_user: ...
    database_password: ...
    database_name: ...
    mailer_transport: mail
    mailer_host: 127.0.0.1
    mailer_user: null
    mailer_password: null
    mailer_port: 25
    mailer_encryption: null
    prepend_locale: false
    url_suffix: 'html'

Btw the url_suffix parameter is not documented.

Add basic security

I would like to add the NelmioSecurityBundle to our default configuration and configure it with the following basic settings:

# Security configuration
nelmio_security:
    clickjacking:
        paths:
            '^/.*': SAMEORIGIN
    content_type:
        nosniff: true
    referrer_policy:
        enabled: true
        policies:
            - 'origin-when-cross-origin'
    xss_protection:
        enabled: true
        mode_block: true

These basic settings should apply (and should be applied 😄) to every website.

@contao/developers Any objections?

[4.0.3] symlink on xampp (Windows)

Clean Installation.
Symlink creation works fine.
is_link does not work on windows. https://github.com/contao/core-bundle/blob/master/src/Util/SymlinkUtil.php#L71

I can only refer to contao-community-alliance/composer-plugin#34 which explains the whole Problem.

( ! ) Fatal error: Uncaught exception 'LogicException' with message 'The symlink target "system/themes/flexible" exists and is not a symlink.' in E:\webdev\www\contao-4.0.3\vendor\contao\core-bundle\src\Util\SymlinkUtil.php on line 72
( ! ) LogicException: The symlink target "system/themes/flexible" exists and is not a symlink. in E:\webdev\www\contao-4.0.3\vendor\contao\core-bundle\src\Util\SymlinkUtil.php on line 72
Call Stack
#   Time    Memory  Function    Location
1   0.0017  134128  {main}( )   ..\install.php:0
2   0.1608  3725120 Contao\InstallationBundle\Controller\InstallationController->indexAction( ) ..\install.php:46
3   0.1608  3725368 Contao\InstallationBundle\Controller\InstallationController->runPostInstallCommands( )  ..\InstallationController.php:50
4   0.2266  4204240 Symfony\Component\Console\Command\Command->run( )   ..\InstallationController.php:123
5   0.2267  4204568 Contao\CoreBundle\Command\AbstractLockedCommand->execute( ) ..\Command.php:259
6   0.2273  4205456 Contao\CoreBundle\Command\SymlinksCommand->executeLocked( ) ..\AbstractLockedCommand.php:38
7   0.2274  4205592 Contao\CoreBundle\Command\SymlinksCommand->generateSymlinks( )  ..\SymlinksCommand.php:57
8   0.2503  4644264 Contao\CoreBundle\Command\SymlinksCommand->symlinkThemes( ) ..\SymlinksCommand.php:77
9   0.2558  4691752 Contao\CoreBundle\Command\SymlinksCommand->symlink( )   ..\SymlinksCommand.php:128
10  0.2587  4702080 Contao\CoreBundle\Util\SymlinkUtil::symlink( )  ..\SymlinksCommand.php:158
11  0.2587  4702136 Contao\CoreBundle\Util\SymlinkUtil::validateSymlink( )  ..\SymlinkUtil.php:34

Installation broken via composer create-project

A few days ago i was able to install contao/standard-edition via php composer.phar create-project contao/standard-edition contao4 @dev. After upload_path was added to parameters.yml this doesn´t work anymore.

  [InvalidArgumentException]                                               
  The "/private/var/www/standard-edition/files" directory does not exist.

ConflictingHeadersException with AppCache

Since a few weeks we occasionally get the following exception:

Symfony\Component\HttpFoundation\Exception\ConflictingHeadersException
The request headers contain conflicting information regarding the origin of this request.

The request has both a trusted Forwarded header and a trusted Client IP header, conflicting with each other with regards to the originating IP addresses of the request. This is the result of a misconfiguration. You should either configure your proxy only to send one of these headers, or configure Symfony to distrust one of them.

The issue only appears on Opera Mini on some generic smartphones, but Opera version 4 until 18 all cause this. If this is really something to be configured in Symfony, I think it should be done in our standard edition (Symfony config or AppCache), because I'm probably not the only one affected.

Anyone have a clue what to do?

I got IOException for theme flexible on Windows while installing 4.1.0-beta1

> Contao\CoreBundle\Composer\ScriptHandler::generateSymlinks                                                               

  [Symfony\Component\Filesystem\Exception\IOException]                                                                     
  Failed to create symbolic link from "Q:\domains\contao4/vendor/contao/core-bundle/src/Resources/contao/themes/flexibl    
  e" to "Q:\domains\contao4/system/themes/flexible".                                                                       

contao:symlinks                                                                                                            

Script Contao\CoreBundle\Composer\ScriptHandler::generateSymlinks handling the post-install-cmd event terminated with an e 
xception                                                                                                                   

  [RuntimeException]                                                                                                       
  An error occurred while executing the "contao:symlinks" command.                                                         

Safari kann die Seite nicht öffnen, da die Netzwerkverbindung unterbrochen wurde

Hi there
I got an error with contao/standard-edition version 4.3.7

After installation v4.3.7 through composer (just contao and no other external plugins, etc.) I can visit the website by edge browser (windows) but not on mobile devices like iPad, iPhone (Safari browser).

Error message "Safari kann die Seite nicht öffnen, da die Netzwerkverbindung unterbrochen wurde". And before you ask, yes my wifi works. Same error on multiple devices (iPhones). We even try to get on the website at same time, with different devices in different places and networks. All devices shown the same error.

With version 4.2.0 everything works ok. Any clou why is this happening?

Readme

Insbesondere für neue Nutzer von Contao fehlt für die aktuelle Version leider eine Dokumentation zur Installation.

Es wäre daher sinnvoll zumindest in der README.md darauf hinzuweisen das DocumentRoot auf /web zu setzen und dann die /install.php auszuführen.

Add optional Config param upload_path to config.xml or use defaults

When using the standard editon the config.yml is missing at least one important optional parameter:
upload_path

The files folder is created via InstallCommand::addEmptyDirs() from the core bundle but it gets not symlinked in SymlinksCommand::symlinkFiles if the config param upload_path is missing.

So either the param should not be optional and being provided in the config.yml or a default / fallback value should be used in the SymlinksCommand::generateSymlinks() method of the core bundle where currently it is not:

$uploadPath = $this->getContainer()->getParameter('contao.upload_path');

// Remove the base folders in the document root
        $fs->remove($this->rootDir . '/web/' . $uploadPath);
        $fs->remove($this->rootDir . '/web/system/modules');
        $fs->remove($this->rootDir . '/web/vendor');

$this->symlinkFiles($uploadPath);

https://github.com/contao/core-bundle/blob/master/src/Command/SymlinksCommand.php#L68

I think this could also be considered a general bug (core-bundle related) if the upload_path is empty because for backend uploads still the files - folder is used as configured in the default.php
https://github.com/contao/core-bundle/blob/master/src/Resources/contao/config/default.php#L80

Wartungsmodus nicht möglich

Hi,

ich habe die Zip Datei Contao 4.3.4 über contao.org geladen, auf dem Hosting entpackt und die Installation gestartet. Alles lief bis zu diesem Zeitpunkt sauber durch.

Jedoch ließ sich der Wartungsmodus nicht aktivieren.

Warning: fopen(/www/htdocs/XXX/webseiten/test/contao-4.3.4/app/cache/lock): failed to open stream: No such file or directory in /www/htdocs/XXX/webseiten/test/contao-4.3.4/vendor/lexik/maintenance-bundle/Drivers/FileDriver.php on line 35

Hosting bei All-inkl.
PHP 7.1.1 über Fastcgi

Fehler nach Installation unter XAMPP

Fehler nach Installation unter Windows 10 und xampp beim Aufrufen von install.php:
contao/contao-standard und symphony 3.2.6

Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException' with message 'You have requested a non-existent service "event_dispatcher".' in C:\xampp\htdocs\contao\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\ContainerBuilder.php:795 Stack trace: #0 C:\xampp\htdocs\contao\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\ContainerBuilder.php(431): Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition('event_dispatche...') #1 C:\xampp\htdocs\contao\vendor\contao\installation-bundle\src\Controller\InstallationController.php(125): Symfony\Component\DependencyInjection\ContainerBuilder->get('event_dispatche...') #2 C:\xampp\htdocs\contao\vendor\contao\installation-bundle\src\Controller\InstallationController.php(63): Contao\InstallationBundle\Controller\InstallationController->initializeApplication() #3 C:\xampp\htdocs\contao\vendor\contao\installation-bundle\src\HttpKernel\InstallationKernel.php(89): Contao\InstallationBundle\Con in C:\xampp\htdocs\contao\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\ContainerBuilder.php on line 795

Redirect during instalation.

I'm trying install contao on localhost i put in adress bar localhost/contao/web/install.php i check box i agree with Contidion and i get redirection do localhost/contao/install and error 404

Symfony bekannter "src/" Ordner fehlt im Autoloader

Hallo Zusammen,

mir ist bei der Entwicklung von einem Contao 4 Bundle schmerzhaft aufgefallen, dass Bundles im von Symfony bekannten "src/" Ordner nicht geladen werden.

Grund dafür ist der fehlende autoloader Code in der composer.json

    "autoload": {
        "psr-4": { "": "src/" },
        "classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
    }

Ich gehe eigentlich davon aus, dass ihr das mit Absicht weggelassen habt, aber ich möchte nochmal nachbohren, weshalb?

Ich persönlich nutze den "src/" Ordner, wie man es eben aus Symfony kennt, zum entwickeln. Um herauszufinden, dass man dafür die composer.json anpassen muss, kostet so einiges an Zeit, was meiner Meinung nach den Entwicklern erspart werden könnte.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.