Public bug reported:
After installing and configuring gallery2, trying to access with a
browser to domain.com/gallery2 result in this access.log entry:
195.235.XX.XX - - [27/Aug/2013:08:47:07 +0200] GET /gallery2/main.php
HTTP/1.1 500 265 - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57
Safari/537.36
and this errorr.log entry:
Tue Aug 27 08:47:41 2013] [error] [client 195.235.XX.XX] PHP Warning:
require_once(/usr/share/gallery2/modules/core/classes/../../../lib/smarty/Smarty.class.php):
failed to open stream: No such file or directory in
/usr/share/gallery2/modules/core/classes/GalleryCoreApi.class on line 2827
[Tue Aug 27 08:47:41 2013] [error] [client 195.235.XX.XX] PHP Fatal error:
require_once(): Failed opening required
'/usr/share/gallery2/modules/core/classes/../../../lib/smarty/Smarty.class.php'
(include_path='.:/usr/share/php:/usr/share/pear') in
/usr/share/gallery2/modules/core/classes/GalleryCoreApi.class on line 2827
I try to verify if /usr/sahre/gallery2/lib/smarty/Smary.class.php exist
but seems that smarty was a broken link in /usr/share/gallery2. So,
trying to locate the file I found that is in another directory
(/usr/share/php/smarty3). After correcting the link the error.log says:
[Tue Aug 27 08:51:55 2013] [error] [client 195.235.XX.XX] PHP Notice: Indirect
modification of overloaded property GallerySmarty::$plugins_dir has no effect
in /usr/share/gallery2/modules/core/classes/GalleryTemplate.class on line 335
[Tue Aug 27 08:51:55 2013] [error] [client 195.235.XX.XX] PHP Fatal error:
Uncaught exception 'SmartyException' with message 'Call of unknown method
'register_object'.' in
/usr/share/php/smarty3/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 {main}\n thrown in
/usr/share/php/smarty3/sysplugins/smarty_internal_templatebase.php on line 806
And gallery2 installation still won't work.
About the versions:
$ dpkg -l *gallery2* *php5* *apache2* *smarty* | grep ^ii
ii apache2
2.2.22-6ubuntu5.1 amd64Apache HTTP Server
metapackage
ii apache2-mpm-prefork
2.2.22-6ubuntu5.1 amd64Apache HTTP Server -
traditional non-threaded model
ii apache2-utils
2.2.22-6ubuntu5.1 amd64utility programs for
webservers
ii apache2.2-bin
2.2.22-6ubuntu5.1 amd64Apache HTTP Server
common binary files
ii apache2.2-common
2.2.22-6ubuntu5.1 amd64Apache HTTP Server
common files
ii gallery2 2.3-1ubuntu6
all web-based photo album written in PHP
ii libapache2-mod-php55.4.9-4ubuntu2.2
amd64server-side, HTML-embedded scripting
language (Apache 2 module)
ii libapache2-modsecurity 2.6.6-6
amd64Tighten web applications security for
Apache
ii php5 5.4.9-4ubuntu2.2
all server-side, HTML-embedded scripting
language (metapackage)
ii php5-cgi 5.4.9-4ubuntu2.2
amd64server-side, HTML-embedded scripting
language (CGI binary)
ii php5-cli 5.4.9-4ubuntu2.2
amd64command-line interpreter for the php5
scripting language
ii php5-common5.4.9-4ubuntu2.2
amd64Common files for packages built from the
php5 source
ii php5-curl 5.4.9-4ubuntu2.2
amd64CURL module for php5
ii php5-gd5.4.9-4ubuntu2.2
amd64GD module for php5
ii php5-intl