このページにあるサーバが応答しません
自宅サーバ:iMac macOS mojave 10.14.5
/usr/local/Cellar/nginx/1.17.0/bin/nginx
/usr/local/Cellar/php@7.1/7.1.30/bin/php
/usr/local/Cellar/php@7.1/7.1.30/sbin/php-fpm
concrete5-8.4.5
6月19日「ページを開けません。このページにあるサーバが応答しません。」と表示がでて concrete5.8.4.5 に突然接続できなくなりました。
concrete5.8.4.5 を置いた自宅 nginx サーバに接続できなくなったので error log を調べたところ次の通りでした。
2019/06/19 12:20:47 [error] 270#0: *2 FastCGI sent in stderr: "PHP message: PHP Fatal error: Method Concrete\Core\Asset\JavascriptLocalizedAsset::__toString() must not throw an exception in /Users/kojimatakumi/Sites/Documents2/concrete5.7.5.2sd2/updates/concrete5-8.4.5/concrete/src/View/View.php on line 0
PHP message: PHP Fatal error: Method Concrete\Core\Asset\JavascriptLocalizedAsset::__toString() must not throw an exception in /Users/kojimatakumi/Sites/Documents2/concrete5.7.5.2sd2/updates/concrete5-8.4.5/concrete/src/View/View.php on line 0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/usr/local/var/run/php-fpm/php-fpm.sock:", host: "localhost", referrer: "http://localhost/index.html"
2019/06/20 09:57:52 [error] 270#0: *14 FastCGI sent in stderr: "PHP message: PHP Fatal error: Method Concrete\Core\Asset\JavascriptLocalizedAsset::__toString() must not throw an exception in /Users/kojimatakumi/Sites/Documents2/concrete5.7.5.2sd2/updates/concrete5-8.4.5/concrete/src/View/View.php on line 0
PHP message: PHP Fatal error: Method Concrete\Core\Asset\JavascriptLocalizedAsset::__toString() must not throw an exception in /Users/kojimatakumi/Sites/Documents2/concrete5.7.5.2sd2/updates/concrete5-8.4.5/concrete/src/View/View.php on line 0" while reading response header from upstream, client: 192.168.1.60, server: localhost, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/usr/local/var/run/php-fpm/php-fpm.sock:"
いずれも Fatal error が2箇所あり、エラーは同じ箇所にあるように思えます。
2箇所の Fatal error にある View.php on line 0 とは何を指しているのでしょうか。
サーバを応答させるためには何が問題で何処を調べればよいでしょうか。
復旧方法が俄に解りません。ヒントがありましたらご教授下さい。
6月19日「ページを開けません。このページにあるサーバが応答しません。」の追加質問。
現況は以下の通りです。
concrete5.8.4.5 を置いた自宅 nginx サーバについてバージョンアップを経た結果は次の通りで従来通り安定起動を続けています。
nginx version: nginx/1.17.2
PHP 7.3.8 (fpm-fcgi)
concreat5 については相変わらず起動させることが出来ない。
nginx/error.log の内容は次の通り。
2019/08/18 19:32:44 [error] 11638#0: *40 FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot use Concrete\Core\Foundation\Object as Object because 'Object' is a special class name in /Users/kojimatakumi/Sites/Documents/concrete5.7.5.2sd1/concrete/src/Foundation/ClassLoader.php on line 5" while reading response header from upstream, client: 60.41.59.195, server: localhost, request: "GET /concrete5.7.5.2sd1/index.php HTTP/1.1", upstream: "fastcgi://unix:/usr/local/var/run/php-fpm/php-fpm.sock:", host: "www.kojimat.ddo.jp"
「PHPメッセージ:PHP致命的エラー: 'Object'は特別なため、Concrete \ Core \ Foundation \ Objectをオブジェクトとして使用できません 5 "行目」と表示されている。
concrete5 の ClassLoader.php を調べる
/Users/kojimatakumi/Sites/Documents/concrete5.7.5.2sd1/concrete/src/Foundation/ClassLoader.php
3 namespace Concrete\Core\Foundation;
5 use \Concrete\Core\Foundation\Object; # 5行目
6 use \Concrete\Core\Package\Package;
7 use \Concrete\Core\Foundation\ModifiedPSR4ClassLoader;
8 use \Symfony\Component\ClassLoader\MapClassLoader as SymfonyMapClassloader;
9 use Symfony\Component\ClassLoader\Psr4ClassLoader as SymfonyClassLoader;
ブラウザ Safari に表示された Fatal error の内容は次の通り。
http://www.kojimat.ddo.jp/concrete5.7.5.2sd1/index.php
Fatal error: Cannot use Concrete\Core\Foundation\Object as Object because 'Object' is a special class name in /Users/kojimatakumi/Sites/Documents/concrete5.7.5.2sd1/concrete/src/Foundation/ClassLoader.php on line 5
「ClassLoader.phpの特別なクラス名であるため、Concrete \ Core \ Foundation \ Objectをオブジェクトとして使用できません 」と「nginx/error.log の内容」と同様に表示されている。
6月中旬に php5.6 から php7.2 にバージョンアップしたことでサーバが応答しなくなりましたが concrete5 以外は表示するようになっています。
追加質問
object として使用するためには、どのような手立てがあるでしょうか。
何かヒントがありましたらご教授下さい。
結末
次のようになりました。
concrete5-8.5.2 インストール完了再設定
6月19日「ページを開けません。このページにあるサーバが応答しません。」と表示がでて concrete5.8.4.5 に突然接続できなくなりましたが、concrete5.8.4.5 が置いてある自宅 nginx サーバについては従来通り安定起動を続けていました。
自宅サーバ:iMac macOS mojave 10.14.5
/usr/local/Cellar/nginx/1.17.0
/usr/local/Cellar/php@7.1/7.1.30/bin/php
/usr/local/Cellar/php@7.1/7.1.30/sbin/php-fpm
/usr/local/Cellar/mysql/8.0.16
concrete5-8.4.5
以後、concrete5.8.4.5 の修復に努めていましたが思うようにならず、MySQLを入れ替えて12月15日concrete5-8.5.2 のインストールを完了しました。
自宅サーバ:iMac macOS Catalina 10.15.1
/usr/local/Cellar/nginx/1.17.3_1
/usr/local/Cellar/php/7.3.11
/usr/local/Cellar/php/7.3.11/sbin/php-fpm
/usr/local/Cellar/mysql/8.0.18_1
concrete5-8.5.2
これから concrete5-8.5.2 の設定を開始します。