Question

Try to install theme name:"UB Trex" for Magento 2.3.1

so I have followed the instruction to download the zip, and extract it to localhost,copy app and pub folder to serve magento root by mobaxterm.

After cover the folder,got a problem :can't use CLI!

enter image description here

enter image description here

enter image description here

Was it helpful?

Solution

This is early release bug, you will find it's fix in latest releases

In your function.php file, use this line before function

if (!function_exists('__')) {

Then function __() will look like this:

if (!function_exists('__')) {
    /**
     * @return \Magento\Framework\Phrase
     */
    function __()
    {
        $argc = func_get_args();

        $text = array_shift($argc);
        if (!empty($argc) && is_array($argc[0])) {
            $argc = $argc[0];
        }

        return new \Magento\Framework\Phrase($text, $argc);
    }
}

This should fix the issue

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top