作为一名图形设计师,我对 PHP 代码不太了解。
Warning: Illegal string offset ‘content’ in webaddress/class-vc-frontend-editor.php on line 908
我正在使用 Visual Composer 的前端编辑器,在检查代码时我不断收到此错误,我得到以下信息:
);
if ( false !== WPBMap::getParam( $s, 'content' ) ) {
$shortcode['attrs']['content'] = $s 'content';
}
我能胜任 HTML、CSS 和 Scripter,但我希望具有高级 PHP 技能的人能够回答我的问题。
如果我在 Dreamweaver 中打开该文件以尝试诊断错误,我会得到以下信息:
line 908 : syntax error, unexpected quoted-string (T_CONSTANT_ENCAPSED_STRING)
这段代码有什么问题导致它抛出这个错误信息?
最佳答案
关于php - 警告 : Illegal string offset ‘content’ ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41814033/