Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655558 - www-apps/ampache-3.8.3 - FastCGI-stderr: PHP message: PHP Fatal error: Uncaught Error: Class 'Gettext\Translator' not found in /var/www/yggdrasil.virt/htdocs/ampache/lib/i18n.php:36
Summary: www-apps/ampache-3.8.3 - FastCGI-stderr: PHP message: PHP Fatal error: Uncau...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Kristian Fiskerstrand
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-12 06:31 UTC by Daniel Nelson
Modified: 2019-01-19 23:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
output of emerge --info (emerge--info.txt,4.83 KB, text/plain)
2018-05-12 06:31 UTC, Daniel Nelson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Nelson 2018-05-12 06:31:09 UTC
Created attachment 530968 [details]
output of emerge --info

I am trying to install ampache for the first time.  After emerging I installed into my vhost using webapp-config:

webapp-config -h yggdrasil.virt -d ampache -I ampache 3.8.3

In a browser when I navigate to https://yggdrasil.virt/ampache I get a blank page and in the webserver (lighttpd) logs I see:

cat /var/log/lighttpd/error.log
2018-05-11 22:52:38: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Fatal error:  Uncaught Error: Class 'Gettext\Translator' not found in /var/www/yggdrasil.virt/htdocs/ampache/lib/i18n.php:36
2018-05-11 22:52:38: (mod_fastcgi.c.2543) FastCGI-stderr: Stack trace:
2018-05-11 22:52:38: (mod_fastcgi.c.2543) FastCGI-stderr: #0 /var/www/yggdrasil.virt/htdocs/ampache/test.php(66): load_gettext()
2018-05-11 22:52:38: (mod_fastcgi.c.2543) FastCGI-stderr: #1 {main}
2018-05-11 22:52:38: (mod_fastcgi.c.2543) FastCGI-stderr:   thrown in /var/www/yggdrasil.virt/htdocs/ampache/lib/i18n.php on line 36
Comment 1 Kristian Fiskerstrand gentoo-dev Security 2018-06-30 13:32:52 UTC
what happens if you su to the webserver user (presumably using --shell=/bin/bash) and run ./composer.sh and then php composer.phar in the root ampache folder?
Comment 2 Daniel Nelson 2018-07-03 05:52:22 UTC
I don't have either composer.sh or composer.phar in the vhost or package directory and I don't see them anywhere using e-file.
Comment 3 Rob Tongue 2019-01-19 23:08:52 UTC
It appears this project is using several dependencies that can be installed with dev-php/composer now.  Not ideal.  I was able to work around it, but this will break if ampache gets upgraded via webapp-config.  I had to mkdir /var/www/localhost/htdocs/ampache/lib/{vendor,composer} - then chown those two new folders to my webserver user.  Once that is done, and composer is installed, you can chown to your webserver user, cd to the ampache dir, and `composer install`.  That pulled in everything that was needed local to the ampache install, and ampache now runs.  

I am not a package maintainer, but hopefully one can sort this out the correct way.  Hope this helps.