• We have implemented facebook instatant articles wp plugin in my website using below configuration and i got below error.

    Any suggestions?


    Configuration Info:
    Plugin version: 4.2.0
    WordPress version: 5.4.1
    PHP Version 7.3.14

    PHP Fatal error: Uncaught InvalidArgumentException: Method expects this value
    —-[bool(false)]—-to be one of the types ====[string(6) “STRING”]==== in \wp-content\plugins\fb-instant-articles\vendor\facebook\facebook-instant-articles-sdk-php\src\Facebook\InstantArticles\Validators\Type.php:183
    Stack trace:
    #0 \wp-content\plugins\fb-instant-articles\vendor\facebook\facebook-instant-articles-sdk-php\src\Facebook\InstantArticles\Validators\Type.php(70): Facebook\InstantArticles\Validators\Type::throwException(false, ‘STRING’)
    #1 \wp-content\plugins\fb-instant-articles\vendor\facebook\facebook-instant-articles-sdk-php\src\Facebook\InstantArticles\Validators\Type.php(39): Facebook\InstantArticles\Validators\Type::is(false, ‘STRING’, true)
    #2 \wp-content\plugins\fb-instant-articles\vendor\facebook\facebook-instant-articles-sdk-php\src\Facebook\InstantArticles\Elements\InstantArticle.php(133): Facebook\InstantArticles\Validators\Type::enforce(f in D:\home\site\wwwroot\wp-content\plugins\fb-instant-articles\vendor\facebook\facebook-instant-articles-sdk-php\src\Facebook\InstantArticles\Validators\Type.php on line 183

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • v.ilinov

    (@valentinilinov)

    I’m running into the same issue.

    On 404 with “?ia_markup=1” attribute.

    
    Notice: Trying to get property 'post_date' of non-object in /wp-content/plugins/fb-instant-articles/class-instant-articles-post.php on line 636
    
    Notice: Trying to get property 'post_modified' of non-object in /wp-content/plugins/fb-instant-articles/class-instant-articles-post.php on line 639
    
    Notice: Trying to get property 'post_title' of non-object in /wp-content/plugins/fb-instant-articles/class-instant-articles-post.php on line 89
    
    Notice: Trying to get property 'ID' of non-object in /wp-content/plugins/fb-instant-articles/class-instant-articles-post.php on line 98
    
    Notice: Trying to get property 'post_author' of non-object in /wp-content/plugins/fb-instant-articles/class-instant-articles-post.php on line 419
    
    Notice: Trying to get property 'ID' of non-object in /wp-content/plugins/fb-instant-articles/class-instant-articles-post.php on line 444
    
    Notice: Trying to get property 'ID' of non-object in /wp-content/plugins/fb-instant-articles/class-instant-articles-post.php on line 557
    
    Notice: Trying to get property 'ID' of non-object in /wp-content/plugins/fb-instant-articles/class-instant-articles-post.php on line 466
    
    Notice: Trying to get property 'ID' of non-object in /wp-content/plugins/fb-instant-articles/class-instant-articles-post.php on line 492
    
    Notice: Trying to get property 'post_status' of non-object in /wp-content/plugins/fb-instant-articles/class-instant-articles-post.php on line 259
    
    Fatal error: Uncaught InvalidArgumentException: Method expects this value ----[ bool(false) ]---- to be one of the types ====[ string(6) "STRING" ]==== in /wp-content/plugins/fb-instant-articles/vendor/facebook/facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Validators/Type.php:183 Stack trace: #0 /wp-content/plugins/fb-instant-articles/vendor/facebook/facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Validators/Type.php(70): Facebook\InstantArticles\Validators\Type::throwException(false, 'STRING') #1 /wp-content/plugins/fb-instant-articles/vendor/facebook/facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Validators/Type.php(39): Facebook\InstantArticles\Validators\Type::is(false, 'STRING', true) #2 /wp-content/plugins/fb-instant-articles/vendor/facebook/facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Elements/ in /wp-content/plugins/fb-instant-articles/vendor/facebook/facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Validators/Type.php on line 183
    На сайт? виникли тимчасов? техн?чн? проблеми.
    
Viewing 1 replies (of 1 total)
  • The topic ‘PHP Fatal error: Uncaught InvalidArgumentException: Method expects this value’ is closed to new replies.