문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top