我很新的网页设计和非常渴望学习!我目前正在研究一个我已经购买的wordpress主题,并在FTP服务器中找到错误日志,并且想知道这是我应该担心还是不该担心的问题?PHP警告:缺少参数1
它说
“[09九月2014 1点58分36秒] PHP的警告:缺少参数1 kage_get_list_services(),称为 /HOME2/neteffec /的public_html /温度/ WP -content/themes/kage-pro/template-homepage.php 在线21上并在 /home2/neteffec/public_html/temp/wp-content/themes/kage-pro/functions.php中定义 在线428“
如果您需要更多信息,请让我知道!谢谢!
-Jason
大多数时候,警告是没有什么大不了的,但是我试着我最好解决它们。这意味着在你的函数中可能有多于一个参数,并且缺少1个参数。你能否在'template-homepage.php'和'functions.php'的第428行发布与第21行相关的代码? – 2014-09-18 22:02:01
这是主页php: > $ services_testimonials = kage_get_list_services(); ,这是的functions.php: >如果(function_exists( 'kage_get_list_services')!):功能 > kage_get_list_services($ N){ >全球$ wp_query; >的$ args =阵列( > 'post_type'=> '服务', > '的OrderBy'=> 'menu_order',\t \t '顺序'=> 'ASC',\t \t 'posts_per_page'=> $ N >); \t $ wp_query-> query($ args); >返回新的WP_Query($ args); } – 2014-09-19 01:07:03