Opened 13 years ago
Closed 13 years ago
#4352 closed defect (invalid)
3.1.3.1 招待メール記載のURIにアクセスするとFatal Error
Reported by: | imamura623 | Owned by: | nobody |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | 指定しない | Version: | 3.1.x |
Keywords: | 再現待ち | Cc: |
Description (last modified by )
http://sns.openpne.jp/?m=pc&a=page_fh_diary&target_c_diary_id=22237より転記
Mac OS X Server 10.6 Apache 2.2 MySQL 5.0 PHP 5.3 インストール直後、管理画面から設定等をいじらずにOpenPNE君で招待メールを送り、文中記載の登録URIにアクセスすると、以下のエラーが発生します。 Fatal error: Call to a member function getName() on a non-object in /path/to/openpne/lib/form/doctrine/MemberProfileForm.class.php on line 28 ソースコードをチラ見したら、MemberProfileFormクラスのコンストラクタの箇所のようなのですが、 20 public function __construct($profileMember = array(), $options = array(), $CSRFSecret = null) 21 { 22 parent::__construct(array(), $options, $CSRFSecret); 23 24 $profiles = Doctrine::getTable('Profile')->findAll(); 25 26 foreach ($profileMember as $profile) 27 { 28 $this->setDefault($profile->getName(), array( 29 'value' => $profile->getValue(), 30 'public_flag' => $profile->getPublicFlag() 31 )); 32 } 33 } 26行目のforeachでプロフィールのデフォルト値を設定しているようにみえますが、渡されている$profileMemberが空の配列(というか空の要素が4つの配列)になってしまっているようです。 また、余談になりますが、24行目で取得している$profilesですが、その後参照されていません。 応急処置として24-32行目までをコメントアウトし、正常に動作するようになりました。 こちらご確認いただけますでしょうか。
http://sns.openpne.jp/?m=pc&a=page_fh_diary&target_c_diary_id=22301より転記
OpenPNE3.1.3.1で「友人を招待する」で招待メールを送信し、そのメールに記載されているURLをクリックしても登録画面が表示されず、真っ白い画面になる。 そして、URLにpc_frontend_dev.phpを付けてデバッグモードでアクセスすると下記エラーが表示される。 Fatal error: Call to a member function getName() on a non-object in /path/to/openpne/lib/form/doctrine/MemberProfileForm.class.php on line 28
Change History (2)
comment:1 Changed 13 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
3系のチケットはredmineの方にて対応を行います。
http://redmine.openpne.jp/issues/119