Foros: 質問コーナー (Thread #36373)

インストール後、管理画面にログインできない。 (2015-01-14 18:15 by なおくん #75236)

magic3 v2.10.6は正常にインストールされ、管理画面にログインできず下記のエラーが表示されます。

Fatal error: Access to undeclared static property: BaseDb::$_tranStatus in /usr/home/glions/public_html/include/db/baseDb.php on line 477

同じサーバ上でv2.8.10のサイトを動作させてますが、そちらは正常に表示されます。
動作環境は、OS:FreeBSD8.4 MySQL5.5.40 Apache2.2.29 PHP5.4.33 です。
どうかご指示お願いします。

Responder al #75236×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: インストール後、管理画面にログインできない。 (2015-01-15 21:44 by fishbone #75255)

PHP自体が正常に動作していない場合のよくある原因は、スクリプトファイルの日本語コードの自動変換です。(EUCとかSJISとか。)
特に古いレンタルサーバ環境は、自動変換の設定がデフォルトで追加されています。
PHPのmbstringあたりの設定を見直して、自動変換が行われないようにします。
UTF8のファイルがUTF8で正確に実行できる環境が必須です。
Responder al #75236

Responder al #75255×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: インストール後、管理画面にログインできない。 (2015-01-17 12:01 by なおくん #75262)

ありがとうございます。
ご指摘の所、一度点検してみます。
ただ、疑問に残るのはサーバ機は先の述べた環境で自分で構築したものです。さらにその上で、2組のmagic3サイトが正常に動作しております。(v2.8.20)
今回もう一つサイトを最新バージョンで構築して、調子よければ現在動作しているサイトもバージョンアップしようかなと思ったところ、新規にインストールすると、どのバージョンのmagic3もこのようなエラーになってしまいました。
何か新インストールの際にDBファイルの作成に失敗しているところがあるのではと思っていました。
PHPの設定ファイルを一度点検してみます。
Responder al #75255

Responder al #75262×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: インストール後、管理画面にログインできない。 (2015-01-17 13:32 by なおくん #75263)

残念ながら点検して試しましたがやはりうまくいきません。
ちなみにPHPのmbstring関係設定は以下の通りです。

mbstring.language = Japanese
mbstring.internal_encoding = UTF-8
mbstring.http_input = pass
mbstring.http_output = pass
mbstring.encoding_translation = Off
mbstring.detect_order = UTF-8,SJIS,EUC-JP,JIS,ASCII
mbstring.substitute_character = none
mbstring.func_overload = 0

最初のインストールが終了し、「adminのログイン画面」でこのエラーが出てしまいます。
ちなみに昨年7月にインストールしたv2.8.20で作ったサイトは、同じサーバー上で正常に動作しています。
Responder al #75255

Responder al #75263×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: インストール後、管理画面にログインできない。 (2015-01-18 10:09 by fishbone #75275)

・baseDb.phpの内容は、v2.8.10から最新まで変更はない。
・インストール時にも、エラー箇所は通っている。その場合は正常に通っているようだ。
・文法上起こりえないFatal errorが発生している。

以上からすると、PHPの誤動作以外には考えられません。
Responder al #75263

Responder al #75275×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: インストール後、管理画面にログインできない。 (2015-01-18 14:47 by なおくん #75276)

ありがとうございます。
やはり、magic3の新規インストールはどのバージョンであろうと、adminでの管理画面にログインできないみたいです。通常の初期デモページを見ることはできます。
さしあたり登録済みのサイトのバックアップから移行の要領でサイトを移し、構築してみます。
別の仮サーバーを立てて試してみたいと思います。(今のサーバーをあまり手直しして、現行サイトの動作に支障が出たら困るので)
時間をかけて試してみます。
ありがとうございました。
Responder al #75275

Responder al #75276×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: インストール後、管理画面にログインできない。 (2015-01-30 19:32 by なおくん #75350)

[メッセージ #75275 への返信]
> ・baseDb.phpの内容は、v2.8.10から最新まで変更はない。
> ・インストール時にも、エラー箇所は通っている。その場合は正常に通っているようだ。
> ・文法上起こりえないFatal errorが発生している。
>
> 以上からすると、PHPの誤動作以外には考えられません。

別のサーバーを立て、全く同じ設定でPHPのバージョンを5.3にしましたら、エラーは出ず,正常にログインでき動作しました。php.iniの設定は同じです。
PHPの5.3は別のCMSソフトに支障が出たのですが、MAGIC3の使用を優先したいと思います。
いろいろありがとうございました。
Responder al #75275

Responder al #75350×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar