ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Opened 11 years ago

Closed 11 years ago

#3696 closed defect (fixed)

選択肢のない選択式プロフィール項目を作成すると、フロントエンドのプロフィール編集と管理画面のメンバー管理で500エラー

Reported by: ShogoKawahara Owned by: ShogoKawahara
Priority: minor Milestone: OpenPNE3.0.3
Component: core Version: 3.0.x
Keywords: Cc:

Description (last modified by ShogoKawahara)

現象

選択肢のない選択式プロフィール項目を作成すると、以下の画面で500エラー

  • index.php/member/editProfile
  • pc_backend.php/member

原因

dev環境で確認すると、以下のメッセージが表示される。

500 | Internal Server Error | RuntimeException
sfWidgetFormSelectRadio requires the following options: 'choices'.

stack trace

    * at ()
      in SF_SYMFONY_LIB_DIR/widget/sfWidget.class.php line 49 ...
              46.     // check required options
              47.     if ($diff = array_diff($this->requiredOptions, array_merge(array_keys($this->options), array_keys($options))))
              48.     {
              49.       throw new RuntimeException(sprintf('%s requires the following options: \'%s\'.', get_class($this), implode('\', \'', $diff)));
              50.     }
              51.
              52.     $this->options = array_merge($this->options, $options);
...

解決策

Change History (4)

comment:1 Changed 11 years ago by ShogoKawahara

Description: modified (diff)
Status: newassigned

comment:2 Changed 11 years ago by ShogoKawahara

Milestone: OpenPNE3.0.2OpenPNE3.0.3
Priority: majorminor

comment:3 Changed 11 years ago by ShogoKawahara

Type: enhancementdefect

comment:4 Changed 11 years ago by ShogoKawahara

Resolution: fixed
Status: assignedclosed

r10966

で修正しました。

Note: See TracTickets for help on using tickets.