如果我安装 wordpress"konsulting.zip"
主题和所需的插件,当我安装modeltheme-framework
插件时,我会收到此错误:
( !警告:count((:参数必须是数组或对象 实现可数 C:\wamp\www\wp\wp-content\plugins\modeltheme-framework\init.php on 746路
这是我电脑在line 746
上的init.php
文件
// if it's an array of one, extract it
elseif ( is_array( $meta_box['pages'] ) && count( $meta_box['pages'] === 1 ) )
$type = is_string( end( $meta_box['pages'] ) ) ? end( $meta_box['pages'] ) : false;
if ( !$type )
return self::get_mb_type();
在 wp-content/plugins/modeltheme-framework/init.php 中,更改第 746 行:
elseif ( is_array( $meta_box['pages'] ) && count( $meta_box['pages'] === 1 ) )
自。。。
elseif ( is_array( $meta_box['pages'] ) && count( $meta_box['pages'] ) === 1 )