View previous topic :: View next topic |
Author |
Message |
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Tue Sep 20, 2011 8:42 pm Post subject: |
|
|
So my code is
$smarty->addPluginsDir(SMARTY.'/plugins'); // my plugins dir
If I switch back to the 3.0.9 it works !!!
Is there a bug ? |
|
Back to top |
|
rodneyrehm Administrator
Joined: 30 Mar 2007 Posts: 674 Location: Germany, border to Switzerland
|
Posted: Tue Sep 20, 2011 8:55 pm Post subject: |
|
|
I'm pretty sure there's no bug with addPluginsDir().
what does $smarty->testInstall() say? _________________ Twitter |
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Tue Sep 20, 2011 9:25 pm Post subject: |
|
|
OK I switched to 3.1.0
1/ the display is ok
2/ I delete the compiled templates
3/ I delete the cache of the template
4/ I get a white page
5/ I added a TestInstall and I get
Quote: | Smarty Installation test...
Testing template directory...
<myWebRoot>/inc/smarty/templates/ is OK.
Testing compile directory...
<myWebRoot>/cache/smarty/templates_c/ is OK.
Testing plugins directory...
<myWebRoot>/inc/smarty/plugins/ is OK.
Testing cache directory...
<myWebRoot>/cache/smarty/cache/ is OK.
Testing configs directory...
<myWebRoot>/cache/smarty/configs/ is OK.
Testing sysplugin files...
... OK
Testing plugin files...
... OK
Tests complete. |
In the 3.0.9 version I have
Quote: | Testing plugins directory...
<myWebRoot>/inc/smarty/libs/plugins/ is OK.
<myWebRoot>/inc/smarty/plugins is OK. |
The libs/plugins is missing.....
Note: <myWebRoot> is the path to my website on the server |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Wed Sep 21, 2011 12:09 pm Post subject: |
|
|
One possibility is that the __construct() constructor of the Smarty class does not run at all or not first if you have an extended Smarty class.
Code: | class myclass extends Smarty {
function __construct()
{
// Class Constructor.
// These automatically get set with each new instance.
parent::__construct();
$this->addPluginDir(..);
} |
But this should be almost same in 3.0.... |
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Wed Sep 21, 2011 1:06 pm Post subject: |
|
|
Hi,
I haven't extended the smarty class. Only my tpl extends another one.
In 3.0.9, everything is ok with exactly the same code to initialize the plugins. But the TestInstall API does not output the same, should it do display the same? |
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Wed Sep 21, 2011 6:58 pm Post subject: |
|
|
What can I do to understand where is the problem? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Sep 21, 2011 7:05 pm Post subject: |
|
|
I believe we found the problem, as of 3.1 loadPlugin() internally lower-cases the modifer filename before matching, so mixed-case modifiers are not working right. A fix is coming. [edit] fixed in trunk. |
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Wed Sep 21, 2011 8:07 pm Post subject: |
|
|
Hi Mohrt,
What does that mean "fixed in trunk"?
I re-downloaded the 3.1 and I still have the problem. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Sep 21, 2011 8:12 pm Post subject: |
|
|
that means you can download the SVN version, which has the latest bug fixes. If you don't have SVN or know what that means, then you might just wait for the next release. |
|
Back to top |
|
rodneyrehm Administrator
Joined: 30 Mar 2007 Posts: 674 Location: Germany, border to Switzerland
|
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Thu Sep 22, 2011 6:23 am Post subject: |
|
|
OK thanks, I understood and I see the modified files. |
|
Back to top |
|
chrisnoden Smarty Rookie
Joined: 17 Sep 2011 Posts: 6
|
Posted: Thu Sep 22, 2011 2:25 pm Post subject: Fixed |
|
|
I can confirm the latest release has fixed the problem for me also. Thank you. |
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Thu Sep 22, 2011 5:52 pm Post subject: |
|
|
I just updated Smarty.class.php and it works !
Thanks |
|
Back to top |
|
adn Smarty Regular
Joined: 31 May 2011 Posts: 91
|
Posted: Sun Sep 25, 2011 1:18 pm Post subject: |
|
|
Hi all,
In fact I discovered that everything is not fixed with the 3.1.1. In some cases my pages are not completely displayed. I think it is still linked to plugins.
So I switched back to the 3.0.9 and everything is ok
Tell me what you need to understand the problem |
|
Back to top |
|
rodneyrehm Administrator
Joined: 30 Mar 2007 Posts: 674 Location: Germany, border to Switzerland
|
Posted: Sun Sep 25, 2011 1:25 pm Post subject: |
|
|
Lets start with error messages.
Code: | error_reporting(E_ALL);
ini_set('display_errors', 'on'); |
should ouput errors to screen. Otherwise setup error_logging. _________________ Twitter |
|
Back to top |
|
|