2012-03-28 18 views
0

私はアンドロイドアプリを持っています。これはweb-server(cakephpを使用)の機能を呼び出します。そして、この '未定義関数curl_init()'のようなエラーを返します。 Googleでいくつかの検索を行い、php5-curlパッケージをインストールしてこのエラーを修正しようとしましたが、このパッケージをインストールした後、Webサーバーはそれ以上動作しません。返す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

あなたがPHPのバージョンを使用しています?私はこの同じ問題を抱えていましたが、それは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

のみケーキ/新しいものとフォルダを置き換え、あなたはこの問題

+3

"ケーキ"フォルダを交換するだけで、あなたのアプリを壊すでしょう、あなたは、ブートストラップ、インデックス、コアなどいくつかの変更を交換する必要があります...修正を検討してください答え。 –

+1

申し訳ありませんが、私はあなたが何を示唆しているか理解しようとしています。 ブートストラップやインデックスなどを置き換える必要があるのはなぜですか? あなたの通常のプロジェクト構造は次のようになります。 アプリ名 /アプリ /ケーキ ../ だからあなたはあなたが必要とすることは決してないだろうその理由thatsのアプリ/フォルダ上で何か、唯一のケーキ1を(変更いけません/ cakeの内容を変更する) – Darkaico

+0

他の変更の一部は文書化されています:http://book.cakephp.org/1.3/ja/The-Manual/Appendices/Mihttp://blog.room34.com/archives/4480grating -CakePHP-1-2 to-1-3.htmlから、それらのうちのいくつかはそれらを見つけたものではありません:http://blog.room34.com/archives/4480、私は1.2から1.3にしました。それはケーキのフォルダを交換するだけでは簡単ではなかった、たとえあなたが基準を尊重し、間違っていなくても、それをするのは難しくないが、何らかの作業が必要である(私がしたときに約4時間かかったと思うそれ)、 テストの結果として次の日に問題を発見しました。 –

1

を修正見つけることができるあなたのCakePHP /アプリを/ tmp /キャッシュフォルダが書き込み可能であるかどうかを確認してください。私はCakePHP 1.3と同様の問題に直面し、それがキャッシュフォルダの許可のためであることを認識しました。お役に立てれば。お使いの端末で

、CakePHPのフォルダが書き込み可能にできるように、次のコマンドを入力します。 -

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

それは完全に無関係なようです、はい、この問題を修正します。 CakePHPのアップグレードはオプションではないことがあります。 –

関連する問題