Closed kevbo24 closed 6 years ago
I can confirm that as well. I also get warnings in my installation when I open the Articles or Page structure back end modules.
Contao 4.5.3, PHP 7.2.1
Is there a way to save a new page or article? Contao is useless for me at the moment
I think your only option right now is to switch back to PHP 7.1.
@xchs Does the issue occur in Contao 4.5 only? I couldn't reproduce it in Contao 4.4.
Does the issue occur in Contao 4.5 only?
It seems so. I cannot reproduce it in Contao 4.4 either.
I'm using zad_sendnews and added following 3 lines for an automatic teaser:
// add default auto-teaser at first full stop or 80 chars $this->import('String'); $pos = max(300, (strpos($this->text, '.')+1)); $this->news['teaser'] = $this->String->substr($this->text, $pos, ($pos == 300));
It occurs following problem: [2018-02-09 23:06:02] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\Component\Debug\Exception\ClassNotFoundException(code: 0): Attempted to load class \"String\" from the global namespace.\nDid you forget a \"use\" statement for \"PHPExcel_Shared_String\"? at /var/www/vhosts/hosting104991.af9be.netcup.net/httpdocs/contao4/vendor/contao/core-bundle/src/Resources/contao/library/Contao/System.php:175)"} []
I am using Contao 4.5, could it be the same problem?
Nope.
@xchs Now I cannot reproduce it in Contao 4.5 anymore, either. How exactly did you do it?
I can reproduce it in Contao 4.5.3 as well as Contao 4.5.4.
Steps to reproduce:
The same error is happening to me when I go to Articles or Site Structure with PHP 7.2 and Contao 4.4.14
I just tested it again with Contao 4.4.14 and PHP 7.2.0: No problem so far. Everything seems to be working properly.
I managed to make it work by adding a Root Page directly to the database. But everytime I'm setting up a fresh install of Contao, the error comes back.
Ah, you are right. The dev mode shows the warning.
Fixed in 3695d4f7d934bb51f26ee2cf7638082d94ce343e.
I can still not save a new site...
Internal Server Error
Was ist das Problem?
Attempted to load class "Transliterator" from the global namespace. Did you forget a "use" statement?
That's not an issue of Contao, update your dependencies please.
Sorry i don't know what you mean with dependencies?
phpmyadmin: Versionsinformationen: 4.7.8 (auf dem neuesten Stand)
Apache/2.4.29 (Win32) OpenSSL/1.1.0g PHP/7.2.1
Server-Version: 10.1.30-MariaDB - mariadb.org binary distribution
Contao: 4.5.4
The dependencies are the packages that are installed via composer.
So when you run composer the first time (Contao-Manager / command line) you are installing the packages with a specific version.
With the Contao-Manager or composer update
on the command line you can look for updates for these dependencies and install them.
Fixed in 3695d4f.
👍 Works for me.
Thx works fine now!
@leofeyer Did you merge https://github.com/contao/core-bundle/commit/3695d4f7d934bb51f26ee2cf7638082d94ce343e into the 4.5
branch as well? The issue also affects Contao 4.5.
It seems that the commit has not been merged into contao/core-bundle
at all:
Eventually added in 34056c8d62e503520f808a3745d2662d8a9a2834.
Fixed in 3695d4f. 👍 Works for me.
gleiches problem andere Zeile:
Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Warning: count(): Parameter must be an array or an object that implements Countable" at /Volumes/Macintosh HOME/htdocs/contao_development/vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php line 4887
@jedoStyle Wie genau lässt sich das reproduzieren? Bei mir ist $orderBy
immer ein Array.
ich mach nichts anderes als in der tabelle (dca) den Sorting modus zu setzen.
Zeile 3548 war bei mir modus 5 Zeile 4887 war bai mir modus 3
Contao V 4.5.6 und PHP 7.2.1 (installation local MacOS 10.13.3 & Mamp Pro 4.4.1)
Ok, das kann ich wie gesagt nicht reproduzieren.
hey together
I have the following Problem with contao.
It shows me the following on the top of the "page structure" and "article":
under "article" i click on "new article" but then the arrow to go into the details for the article is missing under "page stucture" it is working till the "save-button" then it occurs following after click it (doesn's matter if just "save" or "save & close"):
Output composer show:
I have/use: windows 10, apache with xampp (phpmyadmin), contao 4.5.3
phpmyadmin database server:
webserver:
phpmyadmin: