警告:implode()[function.implode]:传递第85行的参数无效

时间:2016-04-07 04:17:49

标签: php wordpress wordpress-plugin

首先,感谢任何人的帮助。我有非常基本编码知识。足够阅读和理解,但所有来自15岁以上的高中编程课程。没有PHP的经验。话虽如此,我相信如果解释了为什么会破坏代码,我可以输入代码。

我在这里问这个问题是因为我想使用的wordpress插件的开发者已经停止响应(6个月前)有关该插件的问题。

所以这里。我收到这个错误......

警告:implode():第85行/home/nexumgam/public_html/wp-content/plugins/twitch-status/includes/twitch-status-options.php中传递的参数无效 < / p>

{
    echo '<tr>';
    echo '<td style="width: 30px"><button class="button button-primary"       type="button" style="' . ($first?'display: none':'') . '" onclick="twitchStatus_RemoveChannelRow(this)">X</button></td>';
    echo '<td><input name="twitch_status_channels[names][]" size="40" type="text" value="' . esc_attr($channel['name']) . '" /></td>';
    //ERROR OCCURS HERE (I THINK, as the next line is 85)
    echo '<td><textarea class="large-text code" name="twitch_status_channels[selectors][]" cols="40" rows="3">' . htmlspecialchars(implode("\n", $channel['selectors'])) . '</textarea></td>';
    echo '</tr>';

    $first = false;
}

如果您在此处未能提供的任何信息,您需要它是插件的链接 - https://wordpress.org/plugins/twitch-status/

再次感谢您的帮助!

- PS。 APOLOGIZES显然我在评论中所做的一切都不允许我做我能弄清楚的代码,我只能编辑它5分钟。

0 个答案:

没有答案
相关问题