Hi lisota,
Can you paste the full log here and replace your content with fake content for privacy? It is hard to debug without more info.
Thread Starter
lisota
(@lisota)
PHP Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘Method expects this value \n—-[\nobject(stdClass)#858 (9) {\n [“ID”]=>\n int(3)\n [“display_name”]=>\n string(11) “Bob Smith”\n [“first_name”]=>\n string(4) “Bob”\n [“last_name”]=>\n string(6) “Smith”\n [“user_login”]=>\n string(4) “bobs”\n [“user_nicename”]=>\n string(4) “bobsmith”\n [“user_email”]=>\n string(17) “[email protected]”\n [“user_url”]=>\n string(25) “https://www.mysite.com/”\n [“bio”]=>\n string(373) “Bob Smith’s bio here”\n}\n]—-\n to be one of the types \n====[\nstring(40) “Facebook\\InstantArticles\\Elements\\Author”\n]====’ in /nas/content/live/mysite/wp-content/plugins/fb-instant-articles in /nas/content/live/mysite/wp-content/plugins/fb-instant-articles/vendor/facebook/facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Validators/Type.php on line 176, referer: http://www.mysite.com/wp-admin/post.php?post=243514&action=edit
Thread Starter
lisota
(@lisota)
My current suspicion is a conflict with Co-Authors Plus. I have to test more to confirm.
I have the same issue, and also use the Co-Authors Plus plugin, so that seems like the likely culprit.
It seems like a user object is returned somewhere instead of just a string with the name, if I’m interpreting this correctly.
<b>Fatal error</b>: Uncaught exception 'InvalidArgumentException' with message 'Method expects this value
----[
object(stdClass)#3798 (9) {
["ID"]=>
int(41)
["display_name"]=>
string(12) "Test"
["first_name"]=>
string(12) "Test"
["last_name"]=>
string(0) ""
["user_login"]=>
string(11) "Test"
["user_nicename"]=>
string(11) "Test"
["user_email"]=>
string(21) "[email protected]"
["user_url"]=>
string(0) ""
["bio"]=>
string(0) ""
}
]----
to be one of the types
====[
string(40) "Facebook\InstantArticles\Elements\Author"
]===='
Hi guys,
That was fixed in 2.7. Thanks for reporting!
The co-authors plugin should also be working seamlessly.
That was quick. Many thanks!