近日给我的一个使用wordpress做的网站,搬家了,结果就遇到了这个问题
Creating default object from empty value in
很是头疼,根据字面意思应该有一个对象是空值,大概就是没赋值吧。于是根据提示找得到对应的行看看有都用到了哪些东西。
function pexeto_get_nivo_html($images, $sliderid, $content=true){ global $pexeto_scripts_to_print, $pexeto; $pexeto->nivo_id = isset($pexeto->nivo_id)? $pexeto->nivo_id+1 : 0;
我的是在这一行
$pexeto->nivo_id = isset($pexeto->nivo_id)? $pexeto->nivo_id+1 : 0;
所以我在这行前面加一段
$pexeto = new stdClass();
问题解决
如果有什么不清楚的欢迎留言询问
版权所有©艾克斯记事-转载文章请注明出处(带链接)