• FYI – I’m in the process of updating my sites to PHP 8, and I noticed that Publish to Apple News is throwing an error:

    2021/02/01 10:17:07 [error] 22#22: *40706 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught ArgumentCountError: libxml_clear_errors() expects exactly 0 arguments, 1 given in /var/www/****/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/class-exporter-content.php:231
    Stack trace:
    #0 /var/www/****/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/class-exporter-content.php(231): libxml_clear_errors()
    #1 /var/www/****/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/builders/class-builder.php(123): Apple_Exporter\Exporter_Content->nodes()
    #2 /var/www/****/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/builders/class-components.php(793): Apple_Exporter\Builders\Builder->content_nodes()
    #3 /var/www/****/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/builders/class-components.php(42): Apple_Exporter\Builders\Components->split_into_components()
    #4 /var/www/****/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/builders/class-builder.php(66): Apple_Exporter\Builders\Components->build()
    #5 /var/www/****/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/class-exporter.php(216): Apple_Exporter\Builders\Builder->to_array()
    #6 /var/www/****/wp-content/plugins/publish-to-apple-news/includes/apple-exporter/class-exporter.php(144): Apple_Exporter\Exporter->generate_json()
    #7 /var/www/****/wp-content/plugins/publish-to-apple-news/admin/apple-actions/index/class-push.php(489): Apple_Exporter\Exporter->generate()
    #8 /var/www/****/wp-content/plugins/publish-to-apple-news/admin/apple-actions/index/class-push.php(235): Apple_Actions\Index\Push->generate_article()
    #9 /var/www/****/wp-content/plugins/publish-to-apple-news/admin/apple-actions/index/class-push.php(92): Apple_Actions\Index\Push->push()
    #10 /var/www/****/wp-content/plugins/publish-to-apple-news/admin/class-admin-apple-post-sync.php(107): Apple_Actions\

    WordPress 5.6, PHP 8.0.1

    Thank you,
    Daniel

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 8 – Uncaught ArgumentCountError: libxml_clear_errors()’ is closed to new replies.