Piwigo.org

You are not logged in. (Register / Login)

Announcement

Post a reply

Write your message and submit

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

flop25
2013-05-20 18:49:04

Just 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

flop25
2013-04-15 21:09:00

Thank you! Maybe my free host is still enable :-)

ddtddt
2013-04-15 20:02:11

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

plg
2013-04-15 11:37:52

Thank you flop25, bad news :-/

flop25
2013-04-15 11:28:42
plg
2013-04-15 11:13:17

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?

flop25
2013-04-13 15:04:22

As I said Yes! :-)

rvelices
2013-04-13 07:39:59

yes .

plg
2013-04-12 23:15:06

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?

plg
2012-05-30 21:03:49

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.

nicolas
2012-05-30 20:45:04

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.

plg
2012-05-30 20:07:53

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.

plg
2012-05-30 20:06:48

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.

flop25
2012-05-30 19:34:27

you could upgrade it and test with
$smarty->allow_php_tag=true;
$smarty->auto_literal = false;
it might be ok

Billr
2012-05-30 19:28:35

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?

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013