プラグイン > バグ報告・利用に関する質問 > Impossible to access an attribute ("name01") on a string variable ("anon.").について |
バグ報告・利用に関する質問
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
umebius |
投稿日時: 2019/3/24 1:44
対応状況: −−−
|
神 登録日: 2016/7/22 居住地: 投稿: 2085 |
Re: Impossible to access an attribute ("name01") on a string variable ("anon.").について そうなのですね、だとすると画像が1つも登録されていない場合NewsImages変数が渡ってきていないといった問題があるのでしょうか...
とりあえず {% if NewsImages[News.id] %}を {% if NewsImages is defined and NewsImages[News.id] %}に変更すればエラー回避できるのではないかと思います。 |
shige0309 |
投稿日時: 2019/3/24 3:42
対応状況: 解決済
|
半人前 登録日: 2018/2/27 居住地: 投稿: 28 |
Re: Impossible to access an attribute ("name01") on a string variable ("anon.").について umebius様
{% if NewsImages is defined and NewsImages[News.id] %}に変更ごエラーが発生しなくなりました。 本当に助かりました! 色々とご丁寧にありがとうございました |
umebius |
投稿日時: 2019/3/25 7:15
対応状況: −−−
|
神 登録日: 2016/7/22 居住地: 投稿: 2085 |
Re: Impossible to access an attribute ("name01") on a string variable ("anon.").について 良かったです!
|
« 1 (2) |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |