我在这里阅读了一些内容,但由于我是新手,我无法配置将自己的描述更改为什么,有人可以帮助我吗?非法字符串偏移量SEO
我得到这个错误:
Warning: Illegal string offset 'seodescription' in C:\xampp\htdocs\testdb1\wp-content\themes\prospect\functions\meta-box.php on line 37
线37看起来是这样的:
echo htmlspecialchars($data[ $meta_box[ 'name' ] ]);
的是[]这是怎么回事反对我?如果是的话,我该如何改变它们并保留$ meta_box定义?
警告指的是'seodescription',数组(但显然一个字符串),它的代码你包含不包含。涉及的实际线是什么? – Amber
请以代码格式编写该行。 –
唯一的seodescription是在第7行的meta box文件的开头还是smting,而不是37? – user1776351