Giter Site home page Giter Site logo

managed-edition's Introduction

Contao Managed Edition

Contao is an Open Source PHP Content Management System for people who want a professional website that is easy to maintain. Visit the project website for more information.

System Requirements

  • Web server
  • PHP 8.1+ with GDlib and DOM
  • MySQL 5.5.7+
  • InnoDB with innodb_large_prefix enabled

InnoDB Large Prefix

MySQL versions prior to 5.7.7 do not have the innodb_large_prefix option enabled by default. To enable it in one of these versions, add the following to your my.cnf file:

innodb_large_prefix = 1
innodb_file_format = Barracuda
innodb_file_per_table = 1

If the option cannot be enabled on your server, please configure a different database engine and character set in your config/config.yml file:

doctrine:
    dbal:
        connections:
            default:
                default_table_options:
                    charset: utf8
                    collate: utf8_unicode_ci
                    engine: MyISAM

MySQL Strict Mode

It is recommended to run MySQL in "strict mode" to prevent corrupt or truncated data and to guarantee data integrity. As of Contao 4.12, the install tool shows a warning if the database server is not running in strict mode. To enable it, add the following to your my.cnf file or make sure that the setting is adjusted accordingly:

[mysqld]
…
sql_mode="TRADITIONAL"
…

If the setting cannot be enabled on your server, please configure the connection options in your config/config.yml file:

doctrine:
    dbal:
        connections:
            default:
                options:
                    # Depending on the DB driver, the option key is either 1002 (pdo_mysql) or 3 (mysqli)
                    1002: "SET SESSION sql_mode=(SELECT CONCAT(@@sql_mode, ',TRADITIONAL'))"

Browser Compatibility

Chrome, Firefox, Safari 12+, Edge 17+, Opera, Chrome for Android, Safari for iOS 11.3+, Samsung Internet 8.2+

Installation

See the installation chapter of the user's manual.

Documentation

License

Contao is licensed under the terms of the LGPLv3.

Getting Support

Visit the support page to learn about the available support options.

managed-edition's People

Contributors

aschempp avatar ausi avatar fritzmg avatar leofeyer avatar m-vo avatar mynyx avatar toflar avatar xchs avatar

Stargazers

 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

managed-edition's Issues

Installation of 4.3.7 ME at All-Inkl not possible

My system:

Provider: All- Inkl Premium
PHP: 5.6.29-nmm1 (cli)

I made the following steps at All-Inkl:

  1. Created a subdomain: contao4.domain.de

  2. Installed Composer in the root directory with:

curl -sS https://getcomposer.org/installer | php

  1. Installed Contao 4.3.7 with:

php composer.phar create-project contao/managed-edition contao

  1. Changed the DocumentRoot to /contao/web:

bildschirmfoto 2017-04-19 um 15 13 32

The install.php is not reachable under sub.domain.de/install.php and the following error message appears:

Fatal error: Uncaught exception 'Symfony\Component\Filesystem\Exception\IOException' with message 'Using the Contao\ClassLoader class has been deprecated and will no longer work in Contao 5.0. Use the Composer autoloader instead.' in /www/htdocs/w016bce8/contao/vendor/symfony/symfony/src/Symfony/Component/Filesystem/LockHandler.php:86 Stack trace: #0 /www/htdocs/w016bce8/contao/vendor/contao/core-bundle/src/Command/AbstractLockedCommand.php(32): Symfony\Component\Filesystem\LockHandler->lock() #1 /www/htdocs/w016bce8/contao/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php(265): Contao\CoreBundle\Command\AbstractLockedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\BufferedOutput)) #2 /www/htdocs/w016bce8/contao/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\BufferedOutp in /www/htdocs/w016bce8/contao/vendor/symfony/symfony/src/Symfony/Component/Filesystem/LockHandler.php on line 86

you have requested a non-existent service "event_dispatcher"

When downloading the contao/managed-edition from contao.org, you currently receive the following error message when accessing /install.php.

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

Tested under

  • Windows 10
  • XAMPP
  • PHP 5.6.21 and 7.1.1

In C 4.3.9 Modul Sitemap fehlerhafte Darstellung

In dem Modul Sitemap werden Seiten dargestellt, die als "In der Sitemap zeigen" -> "Nie anzeigen" deklariert sind. Angewählt bei der Seiteneinstellung ist auch "Menü verstecken" und "Seite veröffentlichen".

Indicate bundles without manager plugin

(Not exactly sure if this is the right spot here – the issue applies to the Contao Manager as well. Please advise on moving the issue.)

Considering that extension bundles require a "manager plugin" to work out-of-the-box when installed through the Contao Manager, the managed edition should somehow indicate if a bundle does not contain the required manager plugin (i.e. if the admin needs to perform manual steps to get an extension to work). This should both be handled in the Contao Manager and composer directly (if possible) as well as any other Contao-specific installation method.

If on the other hand the Contao Manager only lists bundles that contain the required manager plugin, this issue is nil.

add default config.yml & services.yml to skeleton

I think it would make sense if the skeleton of the Contao Managed Edition also provides the following files:

# config/config.yml
imports:
    - { resource: services.yml }
# config/services.yml
services:
    _defaults:
        autowire: true
        autoconfigure: true
        public: true

    App\:
        resource: '../src/*'
        exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Resources,Kernel.php}'

    App\Controller\:
        resource: '../src/Controller'
        tags: ['controller.service_arguments']

Since the Contao Managed edition already has the appropriate autoloading configuration in its composer.json for the App\ namespace, this would allow every user to quickly write hooks & callbacks, especially now that we have support for annotations, by simply creating one file, without having to do any additional configuration.

I am not sure if the config.yml is actually needed in Contao 4.8+ (in Symfony Flex, all the config files in /config are loaded automatically; may be we can even provide a default routes.yml for annotated routes?).

Failed to create symbolic link

Usually symlinks work fine with my windows composer but for this one it fails and I don't know how to resolve it.

I'm running powershell with administrator privileges:

[Symfony\Component\Filesystem\Exception\IOException]
  Failed to create symbolic link from "C:\xampp\htdocs\project\dev\vendor\contao\core-bundle\src\Resources\contao\config\tcpdf.php" to "C:\xampp\htdocs\project\dev\system\config\tcpdf.php".
Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception


  [RuntimeException]
  An error occurred while executing the "contao:install" command: 07:35:39 ERROR     [console] Error thrown while running command "--ansi contao:install --env=prod". Message: "Failed to create symbolic link from "C:\x
  ampp\htdocs\project\dev\vendor\contao\core-bundle\src\Resources\contao\config\tcpdf.php" to "C:\xampp\htdocs\project\dev\system\config\tcpdf.php"." ["error" => Symfony\Comp
  onent\Filesystem\Exception\IOException { …},"command" => "--ansi contao:install --env=prod","message" => "Failed to
   create symbolic link from "C:\xampp\htdocs\project\dev\vendor\contao\core-bundle\src\Resources\contao\config\tcpdf.php" to "C:\xampp\htdocs\project\dev\system\config\tcpdf.php"."] []

    [Symfony\Component\Filesystem\Exception\IOException]
    Failed to create symbolic link from "C:\xampp\htdocs\project\dev\vendor\contao\core-bundle\src\Resources\contao\config\tcpdf.php" to "C:\xampp\htdocs\project\dev\system\config\tcpdf.php".

full log:

PS C:\xampp\htdocs\project\dev> composer create-project contao/managed-edition .
Installing contao/managed-edition (4.4.8)
  - Installing contao/managed-edition (4.4.8) Loading from cache
Created project in .
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 106 installs, 0 updates, 0 removals
  - Installing contao-components/installer (1.2.5) Loading from cache
  - Installing contao-components/ace (1.2.8) Loading from cache
  - Installing contao-components/chosen (1.1.10) Loading from cache
  - Installing contao-components/colorbox (1.6.4) Loading from cache
  - Installing contao-components/colorpicker (1.4.0.2) Loading from cache
  - Installing contao-components/compass (0.12.2.1) Loading from cache
  - Installing contao-components/contao (7.1.3) Loading from cache
  - Installing contao-components/datepicker (2.2.0.4) Loading from cache
  - Installing contao-components/dropzone (4.3.0) Loading from cache
  - Installing contao-components/highlight (8.9.1) Loading from cache
  - Installing contao-components/html5shiv (3.7.3) Loading from cache
  - Installing contao-components/jquery (1.12.4) Loading from cache
  - Installing contao-components/jquery-ui (1.12.1.1) Loading from cache
  - Installing contao-components/mediabox (1.5.4.2) Loading from cache
  - Installing contao-components/mediaelement (4.2.6) Loading from cache
  - Installing contao-components/mootools (1.6.0.5) Loading from cache
  - Installing contao-components/respimage (1.4.2) Loading from cache
  - Installing contao-components/simplemodal (2.0.7) Loading from cache
  - Installing contao-components/swipe (2.0.6.2) Loading from cache
  - Installing contao-components/tablesort (3.4.9) Loading from cache
  - Installing contao-components/tablesorter (2.0.5.6) Loading from cache
  - Installing contao-components/tinymce4 (4.6.7.2) Loading from cache
  - Installing twig/twig (v1.35.0) Loading from cache
  - Installing symfony/polyfill-util (v1.6.0) Loading from cache
  - Installing paragonie/random_compat (v2.0.11) Loading from cache
  - Installing symfony/polyfill-php70 (v1.6.0) Loading from cache
  - Installing symfony/polyfill-php56 (v1.6.0) Loading from cache
  - Installing symfony/polyfill-mbstring (v1.6.0) Loading from cache
  - Installing symfony/symfony (v3.3.12) Loading from cache
  - Installing symfony/polyfill-intl-icu (v1.6.0) Loading from cache
  - Installing symfony/polyfill-apcu (v1.6.0) Loading from cache
  - Installing psr/simple-cache (1.0.0) Loading from cache
  - Installing psr/log (1.0.2) Loading from cache
  - Installing psr/link (1.0.0) Loading from cache
  - Installing psr/container (1.0.0) Loading from cache
  - Installing psr/cache (1.0.1) Loading from cache
  - Installing fig/link-util (1.0.0) Loading from cache
  - Installing doctrine/lexer (v1.0.1) Loading from cache
  - Installing doctrine/inflector (v1.1.0) Loading from cache
  - Installing doctrine/collections (v1.4.0) Loading from cache
  - Installing doctrine/cache (v1.6.2) Loading from cache
  - Installing doctrine/annotations (v1.4.0) Loading from cache
  - Installing doctrine/common (v2.7.3) Loading from cache
  - Installing webmozart/assert (1.2.0) Loading from cache
  - Installing webmozart/path-util (2.3.0) Loading from cache
  - Installing true/punycode (v2.1.1) Loading from cache
  - Installing psr/http-message (1.0.1) Loading from cache
  - Installing php-http/message-factory (v1.0.2) Loading from cache
  - Installing clue/stream-filter (v1.4.0) Loading from cache
  - Installing php-http/message (1.6.0) Loading from cache
  - Installing php-http/discovery (1.3.0) Loading from cache
  - Installing php-http/promise (v1.0.0) Loading from cache
  - Installing php-http/httplug (v1.1.0) Loading from cache
  - Installing guzzlehttp/psr7 (1.4.2) Loading from cache
  - Installing guzzlehttp/promises (v1.3.1) Loading from cache
  - Installing guzzlehttp/guzzle (6.3.0) Loading from cache
  - Installing php-http/guzzle6-adapter (v1.1.1) Loading from cache
  - Installing php-http/client-common (v1.6.0) Loading from cache
  - Installing friendsofsymfony/http-cache (2.0.2) Loading from cache
  - Installing friendsofsymfony/http-cache-bundle (2.1.1) Loading from cache
  - Installing terminal42/header-replay-bundle (1.3.0) Loading from cache
  - Installing tecnickcom/tcpdf (6.2.13) Loading from cache
  - Installing swiftmailer/swiftmailer (v5.4.8) Loading from cache
  - Installing symfony/swiftmailer-bundle (v2.6.7) Loading from cache
  - Installing simplepie/simplepie (1.5.1) Loading from cache
  - Installing sensio/framework-extra-bundle (v3.0.28) Loading from cache
  - Installing phpunit/php-token-stream (1.4.11) Loading from cache
  - Installing phpspec/php-diff (v1.1.0) Loading from cache
  - Installing patchwork/utf8 (v1.3.1) Loading from cache
  - Installing oyejorge/less.php (v1.7.0.14) Loading from cache
  - Installing nelmio/cors-bundle (1.5.3) Loading from cache
  - Installing michelf/php-markdown (1.7.0) Loading from cache
  - Installing matthiasmullie/path-converter (1.1.0) Loading from cache
  - Installing matthiasmullie/minify (1.3.55) Loading from cache
  - Installing jeremykendall/php-domain-parser (3.0.0) Loading from cache
  - Installing league/uri (4.2.2) Loading from cache
  - Installing leafo/scssphp (v0.6.7) Loading from cache
  - Installing knplabs/knp-time-bundle (1.7.5) Loading from cache
  - Installing knplabs/knp-menu (2.2.0) Loading from cache
  - Installing knplabs/knp-menu-bundle (2.1.3) Loading from cache
  - Installing imagine/imagine (v0.6.3) Loading from cache
  - Installing doctrine/doctrine-cache-bundle (1.3.2) Loading from cache
  - Installing jdorn/sql-formatter (v1.2.17) Loading from cache
  - Installing doctrine/dbal (v2.5.13) Loading from cache
  - Installing doctrine/doctrine-bundle (1.8.0) Loading from cache
  - Installing contao/imagine-svg (0.1.5) Loading from cache
  - Installing contao/image (0.3.4) Loading from cache
  - Installing contao/core-bundle (4.4.8) Loading from cache
  - Installing contao/calendar-bundle (4.4.8) Loading from cache
  - Installing contao/comments-bundle (4.4.8) Loading from cache
  - Installing contao/faq-bundle (4.4.8) Loading from cache
  - Installing contao/listing-bundle (4.4.8) Loading from cache
  - Installing monolog/monolog (1.23.0) Loading from cache
  - Installing symfony/monolog-bundle (v2.12.1) Loading from cache
  - Installing ua-parser/uap-php (v3.4.7) Loading from cache
  - Installing nelmio/security-bundle (2.4.0) Loading from cache
  - Installing lexik/maintenance-bundle (v2.1.1) Loading from cache
  - Installing contao/manager-plugin (2.1.0) Loading from cache
  - Installing sensiolabs/ansi-to-html (v1.1.3) Loading from cache
  - Installing composer/ca-bundle (1.0.9) Loading from cache
  - Installing sensiolabs/security-checker (v4.1.6) Loading from cache
  - Installing sensio/distribution-bundle (v5.0.21) Loading from cache
  - Installing contao/installation-bundle (4.4.8) Loading from cache
  - Installing contao/manager-bundle (4.4.8) Loading from cache
  - Installing contao/news-bundle (4.4.8) Loading from cache
  - Installing contao/newsletter-bundle (4.4.8) Loading from cache
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
php-http/message suggests installing slim/slim (Used with Slim Framework PSR-7 implementation)
php-http/message suggests installing zendframework/zend-diactoros (Used with Diactoros Factories)
php-http/discovery suggests installing puli/composer-plugin (Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details.)
php-http/client-common suggests installing php-http/cache-plugin (PSR-6 Cache plugin)
php-http/client-common suggests installing php-http/logger-plugin (PSR-3 Logger plugin)
php-http/client-common suggests installing php-http/stopwatch-plugin (Symfony Stopwatch plugin)
simplepie/simplepie suggests installing mf2/mf2 (Microformat module that allows for parsing HTML for microformats)
sensio/framework-extra-bundle suggests installing symfony/psr-http-message-bridge (To use the PSR-7 converters)
patchwork/utf8 suggests installing ext-wfio (Use WFIO for UTF-8 filesystem access on Windows)
knplabs/knp-menu suggests installing pimple/pimple (for the built-in implementations of the menu provider and renderer provider)
knplabs/knp-menu suggests installing silex/silex (for the integration with your silex application)
imagine/imagine suggests installing ext-gmagick (to use the Gmagick implementation)
imagine/imagine suggests installing ext-imagick (to use the Imagick implementation)
doctrine/doctrine-cache-bundle suggests installing symfony/security-acl (For using this bundle to cache ACLs)
doctrine/doctrine-bundle suggests installing doctrine/orm (The Doctrine ORM integration is optional in the bundle.)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
Generating autoload files
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication

 Added/updated the web/.htaccess file.
 Added/updated the web/app.php file.
 Added/updated the web/app_dev.php file.

 // Clearing the cache for the prod environment with debug false


 [OK] Cache for the "prod" environment (debug=false) was successfully cleared.



 // Warming up the cache for the prod environment with debug false


 [OK] Cache for the "prod" environment (debug=false) was successfully warmed.



 Trying to install assets as relative symbolic links.

 --------- ------------------------ ----------------
            Bundle                   Method / Error
 --------- ------------------------ ----------------
  WARNING   ContaoCoreBundle         copy
  WARNING   ContaoCalendarBundle     copy
  WARNING   ContaoCommentsBundle     copy
  WARNING   ContaoFaqBundle          copy
  WARNING   ContaoNewsBundle         copy
  WARNING   ContaoNewsletterBundle   copy
 --------- ------------------------ ----------------

 ! [NOTE] Some assets were installed via copy. If you make changes to these assets you have to run this command again.


 [OK] All assets were successfully installed.



 * system
 * system/config
 * templates
 * web/system
 * files
 * assets/css
 * assets/js
 * system/cache
 * system/modules
 * system/themes
 * system/tmp
 * web/share
 * C:\xampp\htdocs\project\dev\assets\images

 Added/updated the system/initialize.php file.

07:35:39 ERROR     [console] Error thrown while running command "--ansi contao:install --env=prod". Message: "Failed to create symbolic link from "C:\xampp\htdocs\project\dev\vendor\contao\core-bundle\src\Resources\contao\config\tcpdf.php" to "C:\xampp\htdocs\project\dev\system\config\tcpdf.php"." ["error" => Symfony\Component\Filesystem\Exception\IOException { …},"command" => "--ansi contao:install --env=prod","message" => "Failed to create symbolic link from "C:\xampp\htdocs\project\dev\vendor\contao\core-bundle\src\Resources\contao\config\tcpdf.php" to "C:\xampp\htdocs\project\dev\system\config\tcpdf.php"."] []


  [Symfony\Component\Filesystem\Exception\IOException]
  Failed to create symbolic link from "C:\xampp\htdocs\project\dev\vendor\contao\core-bundle\src\Resources\contao\config\tcpdf.php" to "C:\xampp\htdocs\project\dev\system\config\tcpdf.php".


contao:install [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<target>]

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


  [RuntimeException]
  An error occurred while executing the "contao:install" command: 07:35:39 ERROR     [console] Error thrown while running command "--ansi contao:install --env=prod". Message: "Failed to create symbolic link from "C:\x
  ampp\htdocs\project\dev\vendor\contao\core-bundle\src\Resources\contao\config\tcpdf.php" to "C:\xampp\htdocs\project\dev\system\config\tcpdf.php"." ["error" => Symfony\Comp
  onent\Filesystem\Exception\IOException { …},"command" => "--ansi contao:install --env=prod","message" => "Failed to
   create symbolic link from "C:\xampp\htdocs\project\dev\vendor\contao\core-bundle\src\Resources\contao\config\tcpdf.php" to "C:\xampp\htdocs\project\dev\system\config\tcpdf.php"."] []

    [Symfony\Component\Filesystem\Exception\IOException]
    Failed to create symbolic link from "C:\xampp\htdocs\project\dev\vendor\contao\core-bundle\src\Resources\contao\config\tcpdf.php" to "C:\xampp\htdocs\project\dev\system\config\tcpdf.php".

  contao:install [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<target>]


create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]

problem with installation on Domain Factory

In the Managed Edition, the database credentials are created by the Contao Install Tool. This leads to a problem on Domain Factory if you are using the Contao Manager for installation (presumably) or composer create-project during the post-install/update-cmds:

> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication

  [Doctrine\DBAL\Exception\DriverException]
  An exception occured in driver: SQLSTATE[HY000] [2054] Connecting to 3.22,
  3.23 & 4.0 servers is not supported

  [Doctrine\DBAL\Driver\PDOException]
  SQLSTATE[HY000] [2054] Connecting to 3.22, 3.23 & 4.0 servers is not supported

  [PDOException]
  SQLSTATE[HY000] [2054] Connecting to 3.22, 3.23 & 4.0 servers is not supported

  [PDOException]
  PDO::__construct(): Connecting to 3.22, 3.23 & 4.0  is not supported. Server is 3.23.58-log


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


  [RuntimeException]
  An error occurred while executing the "contao:install-web-dir" command:

    [Doctrine\DBAL\Exception\DriverException]
    An exception occured in driver: SQLSTATE[HY000] [2054] Connecting to 3.22, 3.23 & 4.0 servers is not supported

    [Doctrine\DBAL\Driver\PDOException]
    SQLSTATE[HY000] [2054] Connecting to 3.22, 3.23 & 4.0 servers is not supported

    [PDOException]
    SQLSTATE[HY000] [2054] Connecting to 3.22, 3.23 & 4.0 servers is not supported

    [PDOException]
    PDO::__construct(): Connecting to 3.22, 3.23 & 4.0  is not supported. Server is 3.23.58-log  

As we know, Doctrine (unfortunately) always tries to make a connection to a MySQL server no matter what when initialized, even if the database credentials haven't been defined yet. It uses its default values, which includes localhost as the hostname for the MySQL server.

This is a problem on Domain Factory, because the MySQL server that is reachable under localhost is of version 3 ... See https://www.df.eu/at/support/df-faq/webhosting/datenbanken/mysql-datenbanken/

The MySQL 5.x server is behind mysql5.example.org.

Definition of class in Service.yml

Since Contao version 4.6 working with Symfony >4, ill get bellow issue:
I define "loadDataContainer" hooks in my config file and in service.yml (all classes are defined correctly under "EventListener" and "DependencyInjection" same as the previous version)
and I get an error during installation like :
Attempted to load class "<class defined in yml file>" from the global namespace. Did you forget a "use" statement?"
after research about this error in Symfony , i understand we need to add key "public: true" in yaml file for DCA service. and after i make it public, i could install the bundle but receive a new error which says " undefined TL_MODE" and since we use word "TRUE" in .yml file, we cant bypass error.

temp-Dir wird nicht korrekt gesetzt/ausgelesen

Bei Domainfactory habe ich das Problem, dass ich auf eine temporäre Datei, die von einem vorher gelaufenen Skript erstellt wurde, nicht öffnen/lesen/bearbeiten kann.

Dadurch erhalte ich beim Update per Composer Fehlermeldungen und kann nicht erfolgreich ein Update durchführen:

    [Symfony\Component\Filesystem\Exception\IOException]                                                                                                                                                                                        
    fopen(/tmp/sf.contao-install.dc81428d0d5eb5b60ffd6383266f486d3366570a7e9538                                                                                                                                                                 
    6c6cb0d3ff243082dc.lock): failed to open stream: Permission denied    

Das ist in erster Instanz von Domainfactory so gedacht: https://www.df.eu/de/support/df-faq/webhosting/skriptsprachen/php/

Nun muss ich aber drei Tage warten, bis der tmp-Ordner entfernt wurde und ich diese /tmp/sf.contao-install.[hashwert].lock-Datei neu erstellen und dann auch lesen kann.

Frage 1: Warum wird immer derselbe Hashwert für die Temp-Datei generiert? Gibt es hier die Möglichkeit, einen neuen Hash-Wert generieren zu lassen?

Um dieses Problem zu umgehen habe ich einen anderen, neuen temporären Ordner in der php.ini mit sys_temp_dir definiert:
image

Diese php.ini wird auch geladen, das kann ich herausfinden, wenn ich die phpinfo aufrufe:
php7.0.6-cli -c /kunden/[kundennummer]/kunden/[kunde]/php.ini phpinfo.php
composer.phar update ausführe.
Sobald ich aber den Composer aufrufe, "vergisst" Symfony, dass eigentlich eine php.ini aufgerufen sein müsste:
php7.0.6-cli -c /kunden/[kundennummer]/kunden/[kunde]/php.ini composer.phar -> Wenn ich in irgendwelchen ausgeführten Dateien echo sys_get_temp_dir() ausführe, erhalte ich immer "/tmp"

Frage 2: (ja, ich weiß, dass es eher mit Composer/Symfony zu tun hat) Wie kann ich Symfony überreden, meine php.ini auch weiterhin zu verwenden?

Beim Install von Contao wird dann auf die sys_temp_dir-Variable der php.ini nicht zugegriffen. Dies ist auch exakt so im contao-manager, selbst wenn ich bei dem "Pfad zur php-bin" alles inkl. php.ini angebe:
image

Wenn ich als blöden Hack beim Initialisieren den temp-Dir per Hand setze, funktioniert die Installation:
image

Generell: Ja, der Fehler liegt zum größten Teil an der Konfiguration des Servers/Domainfactory, da Temporärdateien in /tmp, die von einem anderen Prozess erstellt werden, von niemandem mehr geöffnet, erstellt oder gelöscht werden können. Ich sehe aber auch eine Teilschuld an Contao, dass der Hash beim Installieren immer der gleiche sein soll und nicht geändert werden kann.

So wie es gerade ist, muss ich entweder händisch reinfingern oder muss 3 Tage warten, bis ich bei Domainfactory einen Update machen kann (ja, Admin und Support sind benachrichtigt)

autoload.ini issue

I had the issue that the fields of an extensions haven't shown up.

The autoload.ini looked like that:

;;
; Configure what you want the autoload creator to register
;;
register_namespaces = false
register_classes    = false
register_templates  = false

After adding the following lines it worked out:

;;
; List modules which are required to be loaded beforehand
;;
requires[] = "core"
requires[] = "news"

Persistent redirect to language

Fresh install Contao 4.3.7 Managed Edition
OS Ubuntu 16.10 64bit
Apache 2.4.18 (modrewrite enabled)
PHP 7.0
I have properly configured Virtual Server to use /web/ folder. Backend is working fine, but frontend still redirects to /en/.
I tired commenting some lines in .htaccess, but with no luck. I also checked the "Do not redirect empty URLs" option in Settings, but the problem still occured.
I cannot even access /app_dev.php/ as it is redirected to /en/app_dev.php/

Same day, I installed Contao 4.3.7 Standard Edition and had no problems with redirects.
htaccess files of SE and ME have exactly same content.

Provide .gitattributes

I think when I run composer create-project I don't need any .travis.yml.

Imho we can also exclude the README, wdyt?

Contao Manager (All-Inkl Webhost)

Hallo!

Ich bekomme beim aufrufen der Contao Manager Datei folgende Meldung:
`ERROR 500 Unknown installation status
Some files were found on your server but no known Contao version could be detected.
You must either manually repair your application or remove the following files and folders to install Contao:

  • cgi-bin`

Der cgi-bin Ordner kann aber nicht gelöscht werden da ich sonst keine PHP-Dateien mehr aufrufen kann.

Contao wurde noch nicht aufgesetzt. Es ist nur ein "web" ordner mit der contao-manager.phar.php Datei darin hochgeladen worden.

Gibt es eine Lösung zu dem Problem?
Oder muss Contao vorher aufgesetzt sein?

Pb with http and https

Hello,
I'm running contao 4.3.11 on a shared hosting (OVH), it used to work pretty well, but now i'm having issues.
first, the website was "http", and then we activated the https.
In my htaccess i added these lines in the mod_rewrite section
RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

if i try to go to backoffice with : https://mywebsite.com/contao/ it redirects me to http://mywebsite.com:443/contao/login (and this page isn't working)

due to deadline, i had also to edit the fe_page (and backoffice main page also) and write the base tag instead of the contao one so i can have https, otherwise resources were'nt loaded.
But in BO, all the "lightbox" pages are broken.

i tried to clear cache (with console), to update Contao, ... but still the same.
any clue on what is happening here ? is it a Contao issue or a Server issue ?

Thanks

Fehlermeldung nach Absenden eines Formulares

Hi,

habe ein einfaches Formular erstellt welches per E-Mail versendet werden soll, sobald ich es abschicke bekomme ich im Frontend die Fehlerseite und im Log steht folgendes:

app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\Component\Debug\Exception\UndefinedMethodException(code: 0): Attempted to call an undefined method named "newInstance" of class "Swift_Message". at /var/www/html/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Email.php:125)"} []

files-Symlink wird nicht erstellt

Ich habe heute mal die contao managed-edition installiert. Frische Installation.

Hat es einen Sinn, dass der symlink von managed-edition/web/files auf managed-edition/files fehlt?
Ich versuche die ganze Zeit, den files-Ordner per web aufzurufen...

image

Contao minor versions are missing - Download fails

Affected version(s)
All
Description
Download of specific contao version not possible. A look at https://github.com/contao/managed-edition/releases shows no minor version. Am I missing something?
How to reproduce
I try to install contao with the composer. I installed the latest composer version with:
curl -sS https://getcomposer.org/installer | php
and then tried to install conato with:
php composer.phar create-project contao/managed-edition /data/contao 4.4.17
And all I get is:
Could not find package contao/managed-edition with version 4.4.17.
I also tried to install the latest version:
php composer.phar create-project contao/managed-edition /data/contao 4.4.41
Could not find package contao/managed-edition with version 4.4.41.

So I tried to download contao as explained in the docs: https://docs.contao.org/books/manual/current/en/01-installation/installing-contao.html
with:
curl -L http://download.contao.org
I get:
Contao 4.7.3 is not available as .zip download. Please use the Contao Manager or Composer to install Contao. See https://contao.org/en/download.html for more information.

curl -L http://download.contao.org/4.4.17
I get:
Not Found

curl -L http://download.contao.org/4.4.41
I get:
Contao 4.4.41 is not available as .zip download. Please use the Contao Manager or Composer to install Contao. See https://contao.org/en/download.html for more information.

Auswahl "Link-Adresse" oder "Bildllink" bei Benutzer "kein Administrator" fehlerhaft

Wenn ein Benutzer kein Administrator ist, kann er zB bei dem Element "hyperlink" keine "Link-Adresse" auswählen oder bei einem Bildelement kein "Bildlink". NAch einem Klick auf die "blaue Weltkugel" erscheint dann eine Fehlermeldung (siehe Screenshot bildlink_fehlermeldung) anbei. Leider weiss ich noch nicht, wie man eine "richtige Fehlermeldung" ausgeben kann, sodass ich euch leider nur diesen Hinweis geben kann.

bildlink01
bildlink02
bildlink_fehlermeldung

PHP 8 Compatibility

Should we wait until contao/contao is compatible with PHP 8 before adding compatibility here?

Consider running security checker on update/installs

Description
What about running the security checker when installing/updating composer packages? This would then behave a bit like roave/security-advisories (without blocking of course) and users won't forget to do so.

(I'm using symfony security:check from the symfony binary but this might be a good default nevertheless.)

Example

"scripts": {
    "post-install-cmd": [
        "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication",
        "security-checker security:check"
    ],
    "post-update-cmd": [
        "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication",
        "security-checker security:check"
    ]    
}

(Note: with sensiolabs/security-checker currently being a dev dependency this would trigger an error with --no-dev.)

On Contao 4.7 no sendmail available

Hello,

with contao 4.7 there is no sendmail available
If I set in website/app/config/parameters.yml to mailer_transport: sendmail
the sendmail get the data in a wrong format.
In mail.log I get this:

REMOTE="X:X:X::" SCRIPT=/website/web/app.php -- /usr/sbin/sendmail -bs

in Contao log I get this:
Form "Name" could not be sent: Expected response code 220 but got an empty response

"Speichern und zurück"

Ist man in einem Element und klickt auf "Speichern und zurück", gelangt man nicht zur Artikelansicht-Liste, sondern wieder in die Elementansicht-Liste

Dateiverwaltung Ordnernamen mit Leerzeichen

Hallo. Bei der Dateiverwaltung Ordnernamen mit Leerzeichen produziert einen Fehler. Möchte man einen neuen Ordner erstellen in den Ordner mit Leerzeichen, bekomme ich folgende Fehlermeldung:
File or folder "files/gasthof-zur-post/test%20test/new" is not mounted or cannot be found.

composer create-project contao/managed-edition requires PHP 7.1

The current composer.lock file of version 4.4.2 contains dependencies that require PHP 7.1. Thus if you try to run

composer create-project contao/managed-edition

With PHP 7.0 or lower, you will run into errors like these:

Problem 1
    - Installation request for doctrine/annotations v1.5.0 -> satisfiable by doctrine/annotations[v1.5.0].
    - doctrine/annotations v1.5.0 requires php ^7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
  Problem 2
    - Installation request for doctrine/cache v1.7.0 -> satisfiable by doctrine/cache[v1.7.0].
    - doctrine/cache v1.7.0 requires php ~7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
  Problem 3
    - Installation request for doctrine/collections v1.5.0 -> satisfiable by doctrine/collections[v1.5.0].
    - doctrine/collections v1.5.0 requires php ^7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
  Problem 4
    - Installation request for doctrine/common v2.8.0 -> satisfiable by doctrine/common[v2.8.0].
    - doctrine/common v2.8.0 requires php ~7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
  Problem 5
    - Installation request for doctrine/dbal v2.6.0 -> satisfiable by doctrine/dbal[v2.6.0].
    - doctrine/dbal v2.6.0 requires php ^7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
  Problem 6
    - doctrine/dbal v2.6.0 requires php ^7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
    - doctrine/doctrine-bundle 1.6.8 requires doctrine/dbal ~2.3 -> satisfiable by doctrine/dbal[v2.6.0].
    - Installation request for doctrine/doctrine-bundle 1.6.8 -> satisfiable by doctrine/doctrine-bundle[1.6.8].

This happens when trying to install Contao 4.4.2 via the Contao Manager for example on a webspace that only runs PHP 7.0.

Using config.component-dir has been deprecated

In contao 4.4 managed edition we get the following warning:
Using config.component-dir has been deprecated. Please use extra.contao-component-dir instead.

The composer.json should be updated for all branches 4.4 + 4.5 like 4.6, shouldn't it?

.public files only in dev mode?

Currently I write a small module for handling scss and css in Contao 4.3. At the moment, this results in a composed css file. Next to that file I generate a .css.map file containing all the references. Unfortunately this file is currently useless because we don't let scss files go into the web folder (which is a good practice I guess). So the references from the map to the scss files is dead.

To my knowledge the way to go for creating symlinks by the contao console is to add a .public file into the folder that should be symlinked to the web folder.

Are these .public files environment independend (which I fear ;-) ) or is there a chance that we can in Contao 4.4 make some of these only be active in dev mode? Could also be a feature request, I'm not sure.

Thanks in advance.

Update composer.lock

Is there a reason why the composer.lock in the repo is not up to date with the composer.json file?

in C 4.4 fehlt "Abstand davor und dahinter"

in C 4.4 fehlt in den Artikeleinstellungen und Elementeinstellungen unter Experteneinstellungen "Abstand davor und dahinter". Oder ist das absichtlich herausgenommen worden?

prepend_locale

Hi,
how is it possible to avoid the locale to be added automatically?
Since this option is set to true by default I have some issues adding JS files from "files" folder.

I tried to add "prepend_locale: false" to config and then clear the cache via the Maintenance but it doesn't worked for me.

Thanks

cannot be installed using composer create-project under Windows

When using

composer create-project contao/managed-edition

in a Windows environment, the installation fails when executing

Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication

or at least that is the last command I see before the following is displayed:

…
Generating autoload files
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication

dir=$(d=${0%[/\\]*}; cd "$d"; cd "../contao/manager-bundle/bin" && pwd)

# See if we are running in Cygwin by checking for cygpath program
if command -v 'cygpath' >/dev/null 2>&1; then
        # Cygwin paths start with /cygdrive/ which will break windows PHP,
        # so we need to translate the dir path to windows format. However
        # we could be using cygwin PHP which does not require this, so we
        # test if the path to PHP starts with /cygdrive/ rather than /usr/bin
        if [[ $(which php) == /cygdrive/* ]]; then
                dir=$(cygpath -m "$dir");
        fi
fi

dir=$(echo $dir | sed 's/ /\ /g')
"${dir}/contao-console" "$@"

dir=$(d=${0%[/\\]*}; cd "$d"; cd "../contao/manager-bundle/bin" && pwd)

# See if we are running in Cygwin by checking for cygpath program
if command -v 'cygpath' >/dev/null 2>&1; then
        # Cygwin paths start with /cygdrive/ which will break windows PHP,
        # so we need to translate the dir path to windows format. However
        # we could be using cygwin PHP which does not require this, so we
        # test if the path to PHP starts with /cygdrive/ rather than /usr/bin
        if [[ $(which php) == /cygdrive/* ]]; then
                dir=$(cygpath -m "$dir");
        fi
fi

dir=$(echo $dir | sed 's/ /\ /g')
"${dir}/contao-console" "$@"

[…]

dir=$(echo $dir | sed 's/ /\ /g')
"${dir}/contao-console" "$@"

C:\xampp\htdocs\c43mc>

This problem seems similar to contao/contao-manager#50 . When trying to build the Contao Manager under Windows with

php ./vendor/bin/pharpiler compile

it will just display the content of a script, instead of executing that script.

See also https://community.contao.org/de/showthread.php?65512-Composer-Nutzung-vereinfachen&p=431181&viewfull=1#post431181

There is no "contao-components/ace" asset package

When installing Contao 4.5.1 from the zip archive, the following error will occur when trying to create a new page layout:

Symfony\Component\Asset\Exception\InvalidArgumentException:
There is no "contao-components/ace" asset package.

  at vendor\symfony\symfony\src\Symfony\Component\Asset\Packages.php:78
  at Symfony\Component\Asset\Packages->getPackage('contao-components/ace')
     (vendor\symfony\symfony\src\Symfony\Component\Asset\Packages.php:109)
  at Symfony\Component\Asset\Packages->getUrl('js/ace.js', 'contao-components/ace')
     (vendor\contao\core-bundle\src\Resources\contao\library\Contao\Template.php:368)
  at Contao\Template->asset('js/ace.js', 'contao-components/ace')
     (vendor\contao\core-bundle\src\Resources\contao\templates\backend\be_ace.html5:8)
  at include('vendor/contao/core-bundle/src/Resources/contao/templates/backend/be_ace.html5')
     (vendor\contao\core-bundle\src\Resources\contao\library\Contao\TemplateInheritance.php:98)
  at Contao\Template->inherit()
     (vendor\contao\core-bundle\src\Resources\contao\library\Contao\Template.php:285)
  at Contao\Template->parse()
     (vendor\contao\core-bundle\src\Resources\contao\classes\BackendTemplate.php:34)
  at Contao\BackendTemplate->parse()
     (vendor\contao\core-bundle\src\Resources\contao\classes\DataContainer.php:600)
  at Contao\DataContainer->row('{title_legend},name;{header_legend},rows,[rows],headerHeight,[EOF];{column_legend},cols,[cols],widthLeft,[EOF];{sections_legend:hide},sections;{webfonts_legend:hide},webfonts;{style_legend},framework,stylesheet,external,loadingOrder,combineScripts;{picturefill_legend:hide},picturefill;{feed_legend},newsfeeds,calendarfeeds;{modules_legend},modules;{jquery_legend:hide},addJQuery;{mootools_legend:hide},addMooTools;{script_legend},scripts,analytics,externalJs,script;{static_legend:hide},static;{expert_legend:hide},template,doctype,viewport,titleTag,cssClass,onload,head')
     (vendor\contao\core-bundle\src\Resources\contao\drivers\DC_Table.php:1989)
  at Contao\DC_Table->edit()
     (vendor\contao\core-bundle\src\Resources\contao\classes\Backend.php:629)
  at Contao\Backend->getBackendModule('themes', null)
     (vendor\contao\core-bundle\src\Resources\contao\controllers\BackendMain.php:134)
  at Contao\BackendMain->run()
     (vendor\contao\core-bundle\src\Controller\BackendController.php:50)
  at Contao\CoreBundle\Controller\BackendController->mainAction()
     (vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php:151)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web\app_dev.php:65)

This error does not occur when Contao 4.5.1 is installed (or updated to) via composer.

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.