【发布时间】:2011-10-27 20:55:32
【问题描述】:
我收到此错误:
警告:sprintf() [function.sprintf]:参数太少 /home/xxxxxxxx/public_html/wp-content/plugins/surveys/wpframe.php 第 53 行
代码读取...
if(!function_exists('t')) {
/// Globalization function - Returns the transilated string
function t($message) {
$args = func_get_args();
return __(call_user_func_array('sprintf', $args), $GLOBALS['wpframe_plugin_name']);
}
}
知道有什么问题吗?
【问题讨论】:
-
在“调查”插件中调用该函数的操作不正确。我发现 Wordpress 插件参差不齐。我总是添加错误检查。通常,在生产环境中运行 Wordpress 时关闭错误。
-
我想了解更多关于“在生产环境中运行 Wordpress 时关闭错误”业务的信息。这样做简单吗?
-
在 php.ini 中将 display_errors = Off 和 error_reporting 设置为我不记得的东西。文件中的 cmets 解释。还要确保 wp-config.php 有 WP_DEBUG = false。