Bug 911976 - gallery2 not compatible with php-Smarty 3.x
Summary: gallery2 not compatible with php-Smarty 3.x
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gallery2
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 915983 (view as bug list)
Depends On: 914695
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-17 03:22 UTC by Michael Cronenworth
Modified: 2013-03-20 21:40 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-03-20 21:40:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael Cronenworth 2013-02-17 03:22:12 UTC
Description of problem: Fedora 18 has php-Smarty-3.1.12. Fedora 17 had php-Smart-2.6.27. After upgrading my gallery2 box to F18 my gallery broke.

Log:
PHP Fatal error:  Uncaught exception 'SmartyException' with message 'Call of unknown method 'register_object'.' in /usr/share/php/Smarty/sysplugins/smarty_internal_templatebase.php:806\nStack trace:\n#0 /usr/share/gallery2/modules/core/classes/GalleryTemplate.class(346): Smarty_Internal_TemplateBase->__call('register_object', Array)\n#1 /usr/share/gallery2/modules/core/classes/GalleryTemplate.class(346): GallerySmarty->register_object('g', Object(GalleryTemplateAdapter), Array, true, Array)\n#2 /usr/share/gallery2/modules/core/classes/GalleryTemplate.class(71): GalleryTemplate->_getSmarty(true)\n#3 /usr/share/gallery2/main.php(463): GalleryTemplate->GalleryTemplate('/usr/share/gall...')\n#4 /usr/share/gallery2/main.php(104): _GalleryMain(false)\n#5 /usr/share/gallery2/main.php(88): GalleryMain()\n#6 /home/michael/www/cronenworth_gallery/main.php(3): require('/usr/share/gall...')\n#7 {main}\n  thrown in /usr/share/php/Smarty/sysplugins/smarty_internal_templatebase.php on line 806

Downgrading php-Smarty back to the F17 version fixes the problem.


Version-Release number of selected component (if applicable):
gallery2-2.3.2-5.fc18.noarch

Comment 1 Laurent MINOST 2013-02-20 18:16:00 UTC
Hi,

Same thing here, curious that it has not been reported before !

Regards,

Laurent

Comment 2 Gwyn Ciesla 2013-02-21 14:47:27 UTC
Have a look here:

http://fedorapeople.org/~limb/review/php-Smarty2/

I've placed a parallel-installable php-Smarty2 package, and rebuilds of gallery2 RPMS that use it instead of php-Smarty.  If these work for you, I'll submit php-Smarty2 for review, and once approved, push it and updates for gallery2.

Comment 3 Michael Cronenworth 2013-02-22 03:12:47 UTC
(In reply to comment #2)
> http://fedorapeople.org/~limb/review/php-Smarty2/

These packages work for me. Thanks.

Comment 4 Laurent MINOST 2013-02-22 13:34:42 UTC
Hi,

This is also working for me !
Thanks a lot ! :)

Regards

Laurent

Comment 5 Bevis King 2013-02-22 14:21:54 UTC
Just upgraded to this version and everything seems to be working just fine.

Thank you!

Ship it to the poor folks out there who haven't found this bug report yet! :-(

Regards, Bevis.

Comment 6 Gwyn Ciesla 2013-02-22 14:31:02 UTC
Review submitted.

https://bugzilla.redhat.com/show_bug.cgi?id=914695

Comment 7 Gwyn Ciesla 2013-03-01 14:15:28 UTC
*** Bug 915983 has been marked as a duplicate of this bug. ***

Comment 8 David Woodhouse 2013-03-01 17:04:20 UTC
FWIW I've "fixed" this for now with 'yum --releasever=17 downgrade smarty'.

Perhaps RPM dependencies should have expressed that in the first place, somehow?

Comment 9 Gwyn Ciesla 2013-03-01 17:22:46 UTC
Yes, if I had realized that gallery2 needed php-Smarty <= 2.x.

Comment 10 Fedora Update System 2013-03-11 14:11:39 UTC
gallery2-2.3.2-7.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/gallery2-2.3.2-7.fc18

Comment 11 Fedora Update System 2013-03-12 08:57:07 UTC
Package php-Smarty2-2.6.27-1.fc18, gallery2-2.3.2-7.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing php-Smarty2-2.6.27-1.fc18 gallery2-2.3.2-7.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3730/php-Smarty2-2.6.27-1.fc18,gallery2-2.3.2-7.fc18
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2013-03-20 21:40:51 UTC
php-Smarty2-2.6.27-1.fc18, gallery2-2.3.2-7.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.