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: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2018-05-12 06:31 UTC by Daniel Nelson
Modified: 2020-10-01 15:13 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 (RETIRED) gentoo-dev 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.
Comment 4 Larry the Git Cow gentoo-dev 2020-08-30 03:27:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ef446edb1a0c915f8b7007be0ae51ffe3e6398f

commit 0ef446edb1a0c915f8b7007be0ae51ffe3e6398f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-08-30 03:26:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-08-30 03:26:59 +0000

    profiles/package.mask: last-rite www-apps/ampache
    
    Bug: https://bugs.gentoo.org/645886
    Bug: https://bugs.gentoo.org/655558
    Bug: https://bugs.gentoo.org/699834
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-10-01 15:13:49 UTC
Package removed.