2

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

1

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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.