1
CakePHP의에 내가 PHP를 사용하고 3- 이름이 use`
을 내 CakePHP는이 응용 프로그램을 업그레이드 할 때 나는 데 문제가 이미 있기 때문에> CakePHP의 3 응용 프로그램은`앱을 선언 할 수 없습니다 https://github.com/cakephp/upgrade
: 7.1 & 우분투 (16)과의 nginx/1.10.0 (우분투)나는 다음과 같은 오류를 얻고있다 ...
Fatal error: Cannot declare class lib\Cake\Core\App because the name is already in use in /usr/share/nginx/html/web/lib/Cake/Core/App.php on line 70
나는이 페이지를 다음입니다
내가 처음이 명령을 사용하고 있습니다 :
bin/cake upgrade locations [path]
bin/cake upgrade namespaces [path]
bin/cake upgrade app_uses [path]
bin/cake upgrade rename_classes [path]
bin/cake upgrade rename_collections [path]
bin/cake upgrade method_names [path]
bin/cake upgrade method_signatures [path]
bin/cake upgrade fixtures [path]
bin/cake upgrade tests [path]
bin/cake upgrade i18n [path]
bin/cake upgrade skeleton [path]
bin/cake upgrade prefixed_templates [path]
일부 자세한 내용 :
내 PHP 버전은 (php -v
의 출력)입니다 :
PHP 7.1.0-5+deb.sury.org~xenial+1 (cli) (NTS)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.1.0-5+deb.sury.org~xenial+1, Copyright (c) 1999-2016, by Zend Technologies
with Xdebug v2.5.0, Copyright (c) 2002-2016, by Derick Rethans
내 우분투 버전 (
lsb_release -a
의 출력) is :
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
업그레이드 플러그인이/usr/share/nginx/html/upgrade 안에 있고/bin에 composer.phar가 설치되어 있고/usr/share/nginx/html 내부에서 업그레이드 도구를 설치하는 데 사용했습니다./나는 모든 '빈/케이크 업그레이드 [빈칸 채우기] 실행, 업그레이드 ../ 내가 그럼 난 찾을 get_include_path을 사용 – user904542
을 web' 내 PHP 경로를 포함하고/usr/share/path에서 찾은 다음 ls 거기에서 찾은이 발견 : 7.0 7.1 아카이브 케이크 콘솔 데이터 문서 OS PEAR pearcmd.php PEAR.php peclcmd.php PHP Structures System.php XML 'sudo find -name Cake'을 (를) 실행하고 있습니다. 그 폴더는 내게 이걸 주었다. ./Cake ./data/CakePHP/Cake – user904542
내 응용 프로그램의 이전 CakePHP의 2 버전의 백업을 할 명령 – user904542