ご利用のサーバ: Apache 2.2.15
MODXのバージョン:1.0.6j-r4
PHPのバージョン:5.4.4
MySQLのバージョン:5.1.61
ブラウザ:Chrome等
-----
上記の環境に移行したら、eFormがエラーメールを1日に100件くらい送ってくるようになりました。メールの本文は次の通り
コード: 全て選択
Parser - $header = isset($header) ? $header : temp
またPHP5.4が関係しているのでしょうか?
コード: 全て選択
Parser - $header = isset($header) ? $header : temp
« MODX Parse Error »
MODX encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Non-static method template::replace() should not be called statically, assuming $this from incompatible context
Error type/ Nr.: E_STRICT - 2048
File: /home/mctaichi/public_html/assets/snippets/ditto/formats/rss.format.inc.php
Line: 143
Line 143 source: $header = isset($header) ? $header : template::replace($rss_placeholders,$rss_header);
Basic info
REQUEST_URI: /moto/67.html
ID: 67
Current Snippet: Ditto
Referer:
User Agent: Feedfetcher-Google; (+http://www.google.com/feedfetcher.html; 3 subscribers; feed-id=10021753910820966827)
Parser timing
MySQL: 0.0009 s (2 Requests)
PHP: 0.0246 s
Total: 0.0254 s
# call path
1 messageQuit() manager/includes/document.parser.class.inc.php on line 3477
2 phpError() assets/snippets/ditto/formats/rss.format.inc.php on line 143
3 include() manager/includes/document.parser.class.inc.php(1306) : eval()'d code on line 208
4 eval() manager/includes/document.parser.class.inc.php on line 1306
5 evalSnippet() manager/includes/document.parser.class.inc.php on line 1445
6 _get_snip_result() manager/includes/document.parser.class.inc.php on line 1369
7 evalSnippets() manager/includes/document.parser.class.inc.php on line 1776
8 parseDocumentSource() manager/includes/document.parser.class.inc.php on line 362
9 outputContent() manager/includes/document.parser.class.inc.php on line 333
10 prepareResponse() manager/includes/document.parser.class.inc.php on line 238
11 executeParser() index.php on line 129
その通りです。yama さんが書きました:たぶん「Error」とだけ表示されてますよね。(ログインしている場合はフルにデバッグ情報を出力します)
これで正常に表示されるようになりました!yama さんが書きました:試しに、manager/includes/document.parser.class.incをテキストエディタで開いて「if($nr == E_DEPRECATED) return true;」という文字列を検索し、その直下に
if($nr == E_STRICT) return true;
こう追記すると、フィードは正常に表示されるようになるでしょうか?