Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/264.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 零误差除法_Php_Wordpress_Plugins_Grid_Genesis - Fatal编程技术网

Php 零误差除法

Php 零误差除法,php,wordpress,plugins,grid,genesis,Php,Wordpress,Plugins,Grid,Genesis,我在本页上遇到以下错误: 这是错误:警告:在第251行的/home/content/p3nexnas05_data01/98/2124598/html/wp content/plugins/genesis grid loop/plugin.php中被零除 页面正在以我希望的方式显示,但警告显示在页面底部 警告中提到的插件的第251行如下所示: $max = ceil ( ( $wp_query->found_posts - $grid_args['features_on_front'] -

我在本页上遇到以下错误:

这是错误:警告:在第251行的/home/content/p3nexnas05_data01/98/2124598/html/wp content/plugins/genesis grid loop/plugin.php中被零除

页面正在以我希望的方式显示,但警告显示在页面底部

警告中提到的插件的第251行如下所示:

$max = ceil ( ( $wp_query->found_posts - $grid_args['features_on_front'] - $grid_args['teasers_on_front'] ) / ( $grid_args['features_inside'] + $grid_args['teasers_inside'] ) ) + 1;
    $wp_query->max_num_pages = $max;
我的主题设置为显示12篇文章。我使用的是Genesis Studiopress Modern Portfolio Pro儿童主题

有人能帮我吗?我在这里向插件开发人员提供了一份支持说明: 但我还没听到任何消息。
谢谢你的帮助!谢谢

警告消息只是说
($grid\u args['features\u inside']+$grid\u args['tristers\u inside'])
部分代码返回值为

所以/0会引起问题的任何东西都是wordpress警告您的

如果您
不想触碰代码
,请尝试更改
内的摘要
内的功能
发布金额(无论在后端意味着什么),并增加金额

如果您想触摸代码部分

将此代码添加到wp-settings.php文件中,以禁用wordpress警告消息输出

//Add define('WP_DEBUG',true);
if (defined('WP_DEBUG') and WP_DEBUG == true){
     error_reporting(E_ALL);
} else {
     error_reporting(0);
}

哎呀!不,事实上没有。我将代码添加到wp-settings.php文件中,现在我的所有页面都显示“未找到”。。。