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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

I 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