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
167
questions
0
votes
1
answer
12
views
How to overwrite Contao4 errorPage
I was trying to follow these steps but did not work:
Navigate to the templates directory.
Create a new directory structure that mirrors the original template path:
templates/ContaoCore/Error/error....
1
vote
2
answers
117
views
Non-existing service after the upgrade
I upgraded my Contao website from 4.13.38 to 5.3.1. Everything was successful, Contao Manager is working okay, but the website is not functioning. The error is logged in var/logs and points to a non-...
0
votes
0
answers
71
views
TCPDF creates broken PDF if two pictures are used
I pull pictures from a database and use TCPDF to create a PDF.
If I just use one picture, everything is fine if I use two I get a broken PDF.
One picture and everything is fine:
if (isset($imagePaths) ...
0
votes
1
answer
66
views
Contao 4.13: Cannot access system module from Bundle
We are porting a Contao 4.3 installation to 4.13 and a part of it is already in a bundle.
In our Controller in the bundle we have code like this:
use foo_events\Foo_Payment;
class ...
0
votes
1
answer
38
views
How to accept German date format in Contao 4 widget?
I'm working with Contao 4 and have a widget with the following configuration in the eval sub array:
'eval' => array(
'class' => 'valid_date',
'rgxp' => 'date',
'dateformat' => '...
2
votes
1
answer
6k
views
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:
{
&...
2
votes
1
answer
243
views
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 ...
0
votes
2
answers
268
views
How to integrate react Router with contao cms
I would like to integrate react router on an application which has been built on top of Contao CMS 3.5.31. We started rendering react components one at a time on various pages/templates but we will ...
0
votes
1
answer
200
views
How to restrict the debug mode to a specific domain in Symfony?
In order to set your app or website in debug mode you can define the following variable in your .env file in Symfony:
APP_ENV=dev
# Is it possible to define a domain rule?
Is it possible to define a ...
0
votes
1
answer
57
views
foreach PHP something wrong
I have this code in PHP
<?php foreach($this->group('filter') as $i => $fields): ?>
<?php $newField = $this->field('name#'.$i)->value(); ?>
<?php $finalvar = ...
-1
votes
2
answers
78
views
How to explode or explode in PHP? [closed]
I have an issue and I am stack in this many days now. I am new in PHP so I cannot understand totally concerning variables.
Here is my code
<div class="<?php echo $this->class; ?> ...
2
votes
1
answer
546
views
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 ...
2
votes
1
answer
1k
views
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,...
0
votes
1
answer
312
views
Revolution Slider not working anymore after upgrade from Contao 4.4 to 4.9
After my contao upgrade attempt from 4.4 to 4.9 the revolution slider plugin stoped working. I also don't see it in the contao-manager and this page suggests, that it was maybe installed manually?
The ...
0
votes
1
answer
120
views
Contao 4 Pagebuilder Module?
I just started a new project on Contao 4 CMS and are a bit stunned by the absense of an easy "editor friendly" way to edit and manipulate the content.
Is there some kind of custom module ...