EnglishJust checked the basic demo provided with Smarty3 and that works with only "php 1", because "zend.ze1_compatibility_mode Off Off" is set on Free
Thank you! Maybe my free host is still enable :-)
Hi :-)
on
http://www.smarty.net/forums/viewtopic.php?t=18429
I finally found out the reason about Smarty not working on my server.
It is NOT related to the PHP version but to a PHP.INI setting: zend.ze1_compatibility_mode
My production server was set to zend.ze1_compatibility_mode=On which DISABLE passing objects by reference.
We switched it to Off and now it works as expected.
So Smarty should work with any version of PHP (not from 5.2) according that setting is set to OFF. You may write this somewhere in the documentation though, as it took me one week to sort this out!
on free
zend.ze1_compatibility_mode Off Off
it should be necessary to test
Thank you flop25, bad news :-/
Seems that's a big deal : http://www.smarty.net/forums/viewtopic. … 8337a7618e
One problem with PHP 5.2 : the hosting provider Free.fr does not support it. It might seem surprising to block such an enhancement for just a single hosting provider, but we have many users hosted on Free.fr.
Wordpress 3.2+ requires PHP 5.2.4. Free.fr users can only upgrade up to Wordpress 3.1 (latest release in 2011)
Questions:
1) how much is PHP 5.2 required by Smarty 3? is it just a missing function or is it completely blocked?
2) considering that Free.fr is already not very welcoming for Piwigo users (small upload_max_filesize, no automatic install/upgrade, no 1-click install for plugins, etc.), how long can we afford to make specific code for Free.fr?
As I said Yes! :-)
yes .
Piwigo 2.6 is now under preparation. Considering Statistics on Wordpress.org, PHP 5.2+ = 99.4%. Can we upgrade to smarty 3 for Piwigo 2.6?
nicolas wrote:
If upstream (piwigo team) do not provided an official release with smarty 3, I'm afraid I will have to patch piwigo with flop25 propositon.
This is exactly the suggestion :-) if it avoids to remove Piwigo from Debian 7, it's a very good solution.
smarty 2 has been removed from testing and will probably not enter unstable. If upstream (piwigo team) do not provided an official release with smarty 3, I'm afraid I will have to patch piwigo with flop25 propositon.
flop25 wrote:
you could upgrade it and test with
$smarty->allow_php_tag=true;
$smarty->auto_literal = false;
it might be ok
Well, I don't want this for Piwigo 2.4 BUT I can tell the Debian maintainer (nicolas) to give a try to this solution.
Billr wrote:
What will this mean to the average user who upgrades to the latest Debian? Will their Piwigo server stop working? Should they be warned not to upgrade Debian until Piwigo changes to Smarty3?
It only concerns users who have installed Piwigo with the Debian package system. Actually I think it's a tiny part of Piwigo users. I use Debian on my servers. I don't use the Debian package to install Piwigo.
you could upgrade it and test with
$smarty->allow_php_tag=true;
$smarty->auto_literal = false;
it might be ok
What will this mean to the average user who upgrades to the latest Debian? Will their Piwigo server stop working? Should they be warned not to upgrade Debian until Piwigo changes to Smarty3?