Red Hat Bugzilla – Bug 500124
Upgrade of version 2.3 rel 7 breaks existing installation due to new dependencies
Last modified: 2009-05-11 08:18:35 EDT
Description of problem:
When you install the latest upgrade of gallery2 - 2.3 release 7 - it breaks existing installations due to the absence of /usr/share/gallery2/lib/smarty/Smarty.class.php .
The error after the upgrade has been performed is:
[Mon May 11 10:58:33 2009] [error] [client 22.214.171.124] PHP Fatal error: Gal
leryCoreApi::require_once() [<a href='function.require'>function.require</a>]: F
ailed opening required '/usr/share/gallery2/modules/core/classes/../../../lib/sm
arty/Smarty.class.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr
/share/gallery2/modules/core/classes/GalleryCoreApi.class on line 2827
Version-Release number of selected component (if applicable):
Done once, installation now unserviceable.
Steps to Reproduce:
1. yum upgrade gallery2
Upgrade rpms get installed, upgrade procedure run as directed, gallery2 no longer works.
Upgrade takes place and new version works normally.
OK - here's a fix:
1. Make gallery 2.3 depend upon php-Smarty
2. Add a symlink in /usr/share/gallery2/lib as follows:
ln -s /usr/share/php/Smarty/ smarty
That seems to have restored access to the gallery2 installation.
*** This bug has been marked as a duplicate of bug 498334 ***