|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
ChrisFah Smarty Pro
Joined: 02 Nov 2009 Posts: 159 Location: Traun, Austria
|
Posted: Sun Jan 05, 2020 9:23 pm Post subject: $smarty->display + $smarty->fetch klappt nicht |
|
|
Hallo Leute!
Nach sehr sehr langer zeit bin ich wieder mal im Forum.
Mich plagt ein riesen Problem mit einer selbstgebauten Webseite:
Seit Anfang Dezember wurden alle Webserver unseres Providers auf PHP 7.2.x umgestellt.
Und damit klappte vieles auf der Webseite nicht mehr.
Auf mysqli war schnell umgestellt, die veralteten php Befehle waren auch schlell erledigt.
Dann habe ich Smarty von V2.6.22 auf 2.6.30 umgestellt.
Und da beginnen meine Probleme:
Die einzelnen Smarty Variablen werden korrekt angelegt, soweit funktioniert alles gut.
leider scheint $smarty-fetch() und $smarty->display() nicht mehr zu funktionieren.
Ich erhalte stets eine leere Seite.
Lasse ich mir die $smarty Variable auflisten, sind all die per assign gesetzten Variablen vorhanden, die per fetch() beschriebenen Variablen mit den Teilbereichen des HTML Codes sind leer.
Auch die einzelnen Pfade habe ich geprüft, passt alles...
HILFE! Bin für jede Hilfe dankbar.
Lg Chris |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Fri Jan 10, 2020 6:54 am Post subject: |
|
|
Quote: | php-bot: Set 'error_reporting' to -1 and 'display_errors' to 1 in your php.ini and be sure to restart your webserver/fastcgi-listeners. This is more reliable than using ini_set() and error_reporting() in the script, which will fail if there are parse errors. See http://php.net/errorfunc.configuration for more. |
Also check your webserver logs.
And perhaps migrate to Smarty 3. If that's a personal project, this should be doable. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|