0


(来源:dancedric.com

这里有什么问题?当我搜索某些东西时,就会出现这种情况。我什至不知道如何解释这个错误。

在 search.php 中,它指的是 wpzoom_wpmu()。wpmu 在哪里声明?它保存在哪里?我在看正确的吗?我不知道它为什么要引用 c:/. 这是一个在线开发网站

4

1 回答 1

1

As the error message says: wpzoom_wpmu() isn't defined anywhere, which is the problem. C:\wamp\www\wp-content\themes\deadline-zenko\search.php is attempting to call the function, but because the function hasn't been loaded anywhere in the code, PHP can't run it. Have a look on line 29 of that search.php file and you'll see where it's being called.

I'm presuming that the function you want to include is this:

function wpzoom_wpmu ($img) {
        global $blog_id;
  $imageParts = explode('/files/', $img);
        if (isset($imageParts[1])) {
                $img = '/blogs.dir/' . $blog_id . '/files/' . $imageParts[1];
        }
        return($img);
}

Make sure that you're including - include() or include_once() or require() or require_once() - the library that contains this function.

And the references to C:\ are references to the server's C drive, not yours.

于 2012-01-25T22:46:53.783 回答