1
私はいくつかの機能テーマのオプションwordpressを構築しました。Php7.1致命的なエラー:[]演算子は文字列でサポートされていません
今、次のエラーが表示されます。何が間違っていますか?
if(isset($thm_options['custom_font1_eot']))
$w_custom_font1_src[] = "url('{$thm_options['custom_font1_eot']['url']}?#iefix') format('embedded-opentype')";
if(isset($thm_options['custom_font1_woff']))
$w_custom_font1_src[] = "url('{$thm_options['custom_font1_woff']['url']}') format('woff')";
if(isset($thm_options['custom_font1_ttf']))
$w_custom_font1_src[] = "url('{$thm_options['custom_font1_ttf']['url']}') format('truetype')";
Fatal error: [] operator not supported for strings in
何か私は、コードを逃しましたか?
多分あなたはすでに文字列 '$のw_custom_font1_srcあるVARに文字列を追加します。=「URLとして再初期化のどこか
string
として、この変数$w_custom_font1_src
を使用することができます... "' – 0x13a$ w_custom_font1_srcはどこに定義されていますか? – aynber