Questions tagged [contao]

Contao is a PHP based Open Source CMS which uses the MVC architecture. Contao 4 is completely refactored and built upon the symfony framework with bundles and composer compatibility. Please always add Contao version number in your question.

Contao provides the ability to create modules to extend the core functionality of the CMS and add new extensions.

Questions may relate to using or installing the CMS but more technical questions will relate to the development side of modules.

Contao development comprises of the key elements:

  1. A highly configurable back end DCA (Data Container Array)
  2. Front end modules
  3. Back end modules
  4. Widgets (Form elements)
  5. Drivers (Data sources)
  6. Libraries (Core classes)

The main contao site holds most information about the core including the developer documentation. Support can be gained at the community forums.

Extensions can be found at the official extensions catalogue or at the contao forge.


Contao is licensed under the terms of the LGPLv3. The full license text is available in the repository.

166 questions
4
votes
1 answer

How to enable CORS on Plesk 11.5?

We are hosting websites on a server with CentOS and Plesk. For one of the websites we would like to enable CORS for a partner that wants to show specific content from our website on his own website. How do I have to proceed for that and is CORS…
Timo
  • 53
  • 2
  • 6
2
votes
1 answer

Is php-http/discovery plugin 1.15.1 still breaking composer install in Contao 4.13 with own module?

There was a problem in php-http/discovery which should be fixed in 1.15.1 and composer 2.5.3 Still I can reproduce an infinite loop with the following (more or less) boiled down composer.json: { "name": "contao/managed-edition", "type":…
Alex
  • 32,506
  • 16
  • 106
  • 171
2
votes
1 answer

Composer Bug after Contao-Update to 4.13

I updated my Contao-Project from 4.9 with PHP 7.4 to 4.13 with PHP 8.1. When I execute "composer update" I run into an infinite loop: Installing dependencies from lock file (including require-dev) Nothing to install, update or remove Package…
Chris
  • 49
  • 4
2
votes
1 answer

How to open a phar.php file under nginx?

I'am running ddev under macos with apple silicon m1. I'am trying to open a phar (Contao-Manager.phar.php) file in the browser but got a 404. webroot is correctly set, because its is possible to open a test.php in same webroot in the browser. Here Is…
iiorka
  • 21
  • 2
2
votes
1 answer

PhpStorm becomes very slow and takes a lot of resources with Contao CMS project

When I work in PhpStorm IDE with a Contao 4.9 project, the IDE becomes very slow and uses much more then the normal amount of memory. I already excluded almost every possible folder from being indexed, but it is still super slow. I searched a bit,…
Andreas
  • 1,691
  • 1
  • 15
  • 34
2
votes
0 answers

How to split Contao variable into several HTML Elements

I´ve got this template from my Contao CMS: items as $item) : ?> level); …
fr3d
  • 665
  • 1
  • 5
  • 17
2
votes
1 answer

composer why-not is not helpful - why can I not install this package

I can not require the following package in a contao project. $ php composer.phar require -v con4gis/con4gis_forum Using version ^1.7 for con4gis/con4gis_forum ./composer.json has been updated Loading composer repositories with package…
Alex
  • 32,506
  • 16
  • 106
  • 171
2
votes
2 answers

PHP out of memory error does not reflect memory_limit setting in php.ini

When I try to install a package to Contao using the Composer client I get an error: Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 134217728 bytes) in…
Simon Josef Kok
  • 745
  • 1
  • 8
  • 22
2
votes
0 answers

Contao intermittent 500 error

Contao 3.5.9 I am getting a 500 server error in my contao website. This occurs intermitently on every page. error_log shows the following: xxx.xxx.xxx.xxx - - [29/Apr/2016:11:08:39 +0000] "GET /news-insight/news.html HTTP/1.1" 500 - "-"…
Jez D
  • 1,461
  • 2
  • 25
  • 52
2
votes
1 answer

Locating a specific string in a column between two strings which are not always there?

Long story short, let's assume I have a field in a column called 'whyisthisalist' from 'table' which contains: {example1:"hereistext";example2:"ohlookmoretext";example3:"isthisevenreal"} How would I extract the text between example1 and example2,…
2
votes
1 answer

Custom editable fields in Contao

Is it possible to add new custom editable fields to the module Peronal data? If so, how does this work? PHP my admin and add Mysql tables? Or can this be done via the contao backend? Please advise
Stromae
  • 21
  • 3
2
votes
0 answers

How to include a Photo Sphere in Contao 2?

I'm trying to embed kennydude's JavaScript Photo Sphere viewer (https://github.com/kennydude/photosphere) into a Contao CMS 2.11-based web site. I'm basically using the following code from his test.html which I adapted for the specific site:
iYassin
  • 552
  • 1
  • 10
  • 21
1
vote
1 answer

Running an existing Contao 4 Website on localhost

I took over an existing contao project and pulled the files from the server for local development. The issue however is, that the page is automatically redirected to https and I can not find where to configure this. In the web folder I'm running…
Andreas
  • 1,691
  • 1
  • 15
  • 34
1
vote
1 answer
1
vote
1 answer

Contao CMS gives 404 "Page not found" Error after Installation

I'm facing a problem with an installation of Contao CMS with Isotope e-Commerce. I've followed all steps outlined in the documentation here. But accessing the storefront always leads me to a 404 error as shown. I've searched all over the place but…
1
2 3
11 12