2012-03-28 4 views
0

나는 안드로이드 앱을 가지고 있는데, 웹 서버 (cakephp 사용)의 기능을 호출합니다. 그리고이 '정의되지 않은 함수 curl_init()'호출과 같은 오류를 반환합니다. Google에서 일부 검색을 수행하고 php5-curl 패키지를 설치하여이 오류를 해결하려고했지만이 패키지를 설치 한 후 웹 서버가 더 이상 작동하지 않습니다. 돌아 오는php5-curl 꾸러미를 설치 한 후 Cakephp가 작동하지 않습니다.

Strict Standards: Non-static method App::core() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 429

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Warning: Illegal string offset 'file' in /var/www/postmail/cake/libs/debugger.php on line 622

Warning: Illegal string offset 'line' in /var/www/postmail/cake/libs/debugger.php on line 622

Strict Standards: Non-static method App::core() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 429

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict Standards: Non-static method Configure::read() should not be called statically in /var/www/postmail/cake/basics.php on line 213

Strict Standards: Non-static method Configure::getInstance() should not be called statically in /var/www/postmail/cake/libs/configure.php on line 155

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 657

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 657

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 668

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 668

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 673 Warning (2): strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. [CORE/cake/libs/cache.php, line 570] Strict Standards: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 308

Strict Standards: Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/configure.php on line 155

Strict Standards: Non-static method CakeLog::write() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 311

Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/debugger.php on line 311

Strict Standards: Non-static method CakeLog::getInstance() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/cake_log.php on line 230

Strict Standards: Non-static method App::import() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/cake_log.php on line 180

Strict Standards: Non-static method App::getInstance() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/configure.php on line 909

Strict Standards: Non-static method Cache::read() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/configure.php on line 982

Strict Standards: Non-static method Cache::getInstance() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/cache.php on line 330

Strict Standards: Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/cache.php on line 505

Strict Standards: Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/configure.php on line 155

Strict Standards: Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/cache.php on line 672

Strict Standards: Non-static method Inflector::getInstance() should not be called statically, assuming $this from incompatible context in /var/www/postmail/cake/libs/inflector.php on line 512

Notice: Trying to get property of non-object in /var/www/postmail/cake/libs/cache/file.php on line 248

Fatal error: Call to a member function cd() on a non-object in /var/www/postmail/cake/libs/cache/file.php on line 248

누구든지 그것을 고칠 방법을 알고 있습니까? 미리 감사드립니다.

+0

을 ?? 나는이 같은 문제가 있었지만 CakePHP 1.3.6과 PHP 5.4의 조합 사이에는 문제가있었습니다. CakePHP를 최신 버전으로 업데이트 한 후 문제가 해결되었습니다. – elboletaire

+0

이 항목을 숨기려면 http://stackoverflow.com/questions/1248952/php-5-disable-strict-standards-error를 참조하십시오. –

+0

가장 안정적으로 업그레이드해야하는 항목은 무엇입니까? 1.4 또는 이와 유사한 것인가? 나는 2.3로 완전히 업그레이드하는 두통을 겪고 싶지 않다. – Ryan

답변

0

cakephp 버전이 오래되어서 최신 PHP 버전에 문제가 있습니다.

CakePhp 버전을 업데이트 해보세요. 귀하가 1.3 버전을 사용하고있는 것으로 보이므로 최신 버전으로 업데이트하십시오. 당신이

https://github.com/cakephp/cakephp/archives/1.3

만 새 것으로 케이크/ 폴더를 교체 찾을 수있는, 당신은 당신의 CakePHP를/응용 프로그램/tmp를/캐시 폴더에 쓰기 권한이 있는지 확인하십시오이 문제를

+3

"cake"폴더 만 바꾸면 앱이 깨지기 때문에 부트 스트랩, 색인, 코어 및 기타 변경 사항을 대체해야한다. 대답. –

+1

죄송합니다. 당신이 무엇을 제안하는지 이해하려고합니다. 왜 부트 스트랩, 색인 등을 대체해야합니까? 일반 프로젝트 구조는 다음과 같아야합니다 앱 이름 /응용 프로그램 /케이크 ../ 그래서 당신은 당신이 필요가 없습니다 것이기 때문에 이유 이잖아 응용 프로그램/폴더에 아무것도, 단 케이크를 (변경 해달라고/cake의 내용을 변경하려면 – Darkaico

+0

다른 변경 사항은 문서화되어 있습니다 : http://book.cakephp.org/1.3/en/The-Manual/Appendices/Mihttp://blog.room34.com/archives/4480grating -from-CakePHP-1-2 to 1-3.html, 그들 중 일부는 그렇지 않다. http://blog.room34.com/archives/4480, 나는 1.2에서 1.3으로 전환했다. , 케이크 폴더를 교체하는 것만 큼 간단하지 않았습니다. 비록 당신이 표준을 존중하고 잘못하지 않더라도 그것을하기는 어렵지 않습니다.하지만 약간의 작업이 필요합니다. (생각하면 4 시간 정도 걸렸습니다. 그것), 그러나 테스트의 결과로 다음 날에도 문제가 발견되었습니다. –

1

를 해결. CakePHP 1.3에서도 비슷한 문제가 발생했으며 캐시 폴더의 사용 권한 때문이라는 것을 깨달았습니다. 희망이 도움이됩니다. 터미널에서

는 CakePHP의 폴더에 쓸 수 있도록 다음 명령을 입력 : - 사용중인 PHP의 버전

chmod -R 777 /your_root_directory/your_site_name/app/tmp/cache 
+1

그것은 완전히 관련이없는 것 같습니다. 예,이 문제를 해결합니다. CakePHP를 업그레이드하는 것이 때때로 옵션이 아니기 때문에. –