Bug 498019

Summary: gallery2 is missing Smarty.class.php
Product: [Fedora] Fedora Reporter: Vadym Chepkov <vchepkov>
Component: gallery2Assignee: Gwyn Ciesla <gwync>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 10CC: gwync
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-28 16:16:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vadym Chepkov 2009-04-28 14:17:59 UTC
After upgrade to gallery2-2.3-7.fc10.noarch gallery became nonoperational:

PHP Fatal error:  GalleryCoreApi::require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/usr/share/gallery2/modules/core/classes/../../../lib/smarty/Smarty.class.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/gallery2/modules/core/classes/GalleryCoreApi.class on line 2827

$ ls /usr/share/gallery2/lib/smarty/Smarty.class.php
ls: cannot access /usr/share/gallery2/lib/smarty/Smarty.class.php: No such file or directory

Comment 1 Gwyn Ciesla 2009-04-28 14:54:56 UTC
Workaround:

ln -s ../../php/Smarty /usr/share/gallery2/lib/smarty

This is supposed to have been done in pretrans, investigating.

Comment 2 Vadym Chepkov 2009-04-28 16:09:33 UTC
This link is only created if the directory existed

if [ -d /usr/share/gallery2/lib/smarty ]; then
  rm -rf /usr/share/gallery2/lib/smarty
  ln -s ../../php/Smarty /usr/share/gallery2/lib/smarty
fi

And by the way, what is the current directory during rpm installation? I don't see any change directory command in the pre section to make relative link to work.

Comment 3 Gwyn Ciesla 2009-04-28 16:16:26 UTC

*** This bug has been marked as a duplicate of bug 497098 ***