プロジェクト

全般

プロフィール

Bug(バグ) #3955

kaoru nほぼ8年前に更新

h3. Overview (現象)

プロフィール項目にプリセットから「国または地域」を追加しメンバーにて値を設定したプロフィールページをスマートフォンで閲覧すると下記のエラーが発生する。
<pre>
PHP Notice: Undefined variable: culture in apps/pc_frontend/modules/member/templates/_smtProfileListBox.php on line 29
PHP Fatal error: Call to a member function getCountry() on a non-object in apps/pc_frontend/modules/member/templates/_smtProfileListBox.php on line 28
</pre>

h3. Causes (原因)

culture が定義されていないことにより、設定されている値が取得できない バグが発生した原因を記入

h3. Way to fix (修正内容)

PCでの動作時と同様にculture を定義する
PC用テンプレートファイルの定義箇所: https://github.com/openpne/OpenPNE3/blob/master/apps/pc_frontend/modules/member/templates/_profileListBox.php#L3
修正内容を記入

戻る