Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Call to undefined function Alltube\_() #286

Closed
ivanioannovich opened this issue May 29, 2020 · 3 comments
Closed

Call to undefined function Alltube\_() #286

ivanioannovich opened this issue May 29, 2020 · 3 comments
Labels

Comments

@ivanioannovich
Copy link

I try download Youtube video, but error:

Fatal error: Uncaught Error: Call to undefined function Alltube_() in /vendor/rudloff/alltube/classes/Config.php:158
Stack trace:
#0 /vendor/rudloff/alltube/classes/Config.php(257): Alltube\Config->__construct()
#1 /vendor/rudloff/alltube/classes/Config.php(288): Alltube\Config::getInstance()
#2 /alltube_getURL.php(14): Alltube\Config::setOptions(Array)
#3 {main}
thrown in /vendor/rudloff/alltube/classes/Config.php on line 158

Try "php composer.phar update" and nothing.

@Rudloff
Copy link
Owner

Rudloff commented May 29, 2020

Please don't remove the issue template.

What version of Alltube are you using? I don't think we use _() anymore.

@ivanioannovich
Copy link
Author

    if (empty($this->genericFormats)) {
        // We don't put this in the class definition so it can be detected by xgettext.
        $this->genericFormats = [
            'best'                => _('Best'),
            'bestvideo+bestaudio' => _('Remux best video with best audio'),
            'worst'               => _('Worst'),
        ];
    }

@Rudloff
Copy link
Owner

Rudloff commented May 29, 2020

You are clearly not using the latest version since this was removed in cc55fab.

Anyway, the _() function is an alias for gettext() so you need to install the gettext extension.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants