• Hello,

    We followed the instructions for install but it seems that the plugin “magically erases” the website after activating. The <body> tag appears empty and the page is blank.

    Any help with this?

    Thanks,
    CR

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter cristianroman

    (@cristianroman)

    enabled debugging, here it is:

    Fatal error: Uncaught Error: Class 'DOMDocument' not found in /var/www/prod/zitec/htdocs/wp-content/plugins/fb-instant-articles/vendor/facebook/facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Transformer/Transformer.php:189 Stack trace: #0 /var/www/prod/zitec/htdocs/wp-content/plugins/fb-instant-articles/class-instant-articles-post.php(644): Facebook\InstantArticles\Transformer\Transformer->transformString(Object(Facebook\InstantArticles\Elements\Header), '<h1>Magento 1.x...', 'UTF-8') #1 /var/www/prod/zitec/htdocs/wp-content/plugins/fb-instant-articles/class-instant-articles-post.php(886): Instant_Articles_Post->to_instant_article() #2 /var/www/prod/zitec/htdocs/wp-content/plugins/fb-instant-articles/class-instant-articles-post.php(963): Instant_Articles_Post->is_empty_after_transformation() #3 /var/www/prod/zitec/htdocs/wp-content/plugins/fb-instant-articles/facebook-instant-articles.php(375): Instant_Articles_Post->should_submit_post() #4 /var/www/prod/zitec/htdocs/wp-includes/class-wp-hook.php(298): inj in /var/www/prod/zitec/htdocs/wp-content/plugins/fb-instant-articles/vendor/facebook/facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Transformer/Transformer.php on line 189

    Thread Starter cristianroman

    (@cristianroman)

    This is pretty urgent..

    Hi @cristianroman

    ‘DOMDocument’ class is a core PHP class and the error as you may noticed is that the plugin unable to find it.

    1- make sure your WordPress is up to date & PHP v5 or later.

    2- Make sure the plugin is up to date.

    3- If you have made any changes to Transformer.php in the plugin vendor files; check function transformString & make sure that DomDocument has a backslash exactly before it:
    $document = new \DOMDocument('1.0'); //line 189

    • This reply was modified 7 years, 3 months ago by huthayfa.
    Thread Starter cristianroman

    (@cristianroman)

    Hi Huthayfa,

    Wordpress and plugin are up to date, PHP version is 7 and I haven’t made any changes to Transformer..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Blog appears blank after activating the plugin’ is closed to new replies.