admin管理员组文章数量:1122846
I'm trying to access the /wp-admin on my old blog post, but when I try to get to the login page I'm getting an alert that reads as follows: "Error thrown. Cannot create references to/from string offsets"
I tried adding the patch described at The website cannot display the page , but am still getting the same error alert.
Basically I swapped out the line (on 770) that read:
$user = wp_signon( '', $secure_cookie );
and replaced it with these two lines (on 770 and 771):
$user = wp_signon( '', $secure_cookie );
$user = wp_signon( array(), $secure_cookie );
Is there anything else I could try?
I'm trying to access the /wp-admin on my old blog post, but when I try to get to the login page I'm getting an alert that reads as follows: "Error thrown. Cannot create references to/from string offsets"
I tried adding the patch described at The website cannot display the page , but am still getting the same error alert.
Basically I swapped out the line (on 770) that read:
$user = wp_signon( '', $secure_cookie );
and replaced it with these two lines (on 770 and 771):
$user = wp_signon( '', $secure_cookie );
$user = wp_signon( array(), $secure_cookie );
Is there anything else I could try?
Share Improve this question asked Mar 31, 2021 at 18:10 Alex CanelosAlex Canelos 212 bronze badges1 Answer
Reset to default 1I think Reynaldo Aceves' obscure note means that you should replace the first version of the wp_signon call with the second.
I haven't tried it though.
I just downgraded my PHP from version 7.1 down to 7.0, which worked for now.
本文标签: adminError thrown Cannot create references tofrom string offsets
版权声明:本文标题:admin - Error thrown. Cannot create references tofrom string offsets 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736305865a1932742.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论