Bug 498019 - gallery2 is missing Smarty.class.php
Summary: gallery2 is missing Smarty.class.php
Keywords:
Status: CLOSED DUPLICATE of bug 497098
Alias: None
Product: Fedora
Classification: Fedora
Component: gallery2
Version: 10
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-28 14:17 UTC by Vadym Chepkov
Modified: 2009-04-28 16:16 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-04-28 16:16:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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