PHP 8.1 Fatal error | WordPress.org

[ad_1]

Hello,

A few days ago I saw again this kind of error and I am curios if this is only an issue on my side or it is from the plugin.

I am using php 8.1 version and xml sitemap & google news 5.3.4 version

[13-May-2023 21:26:05 UTC] PHP Warning:  require_once(.../public_html/wp-content/plugins/xml-sitemap-feed/views/feed-sitemap-index.php): Failed to open stream: No such file or directory in .../public_html/wp-includes/template.php on line 783
[13-May-2023 21:26:05 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '.../public_html/wp-content/plugins/xml-sitemap-feed/views/feed-sitemap-index.php' (include_path=".:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php") in .../public_html/wp-includes/template.php:783
Stack trace:
#0 .../public_html/wp-content/plugins/xml-sitemap-feed/controllers/functions.shared.php(186): load_template()
#1 .../public_html/wp-includes/class-wp-hook.php(308): xmlsf_load_template()
#2 .../public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#3 .../public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#4 .../public_html/wp-includes/functions.php(1624): do_action()
#5 .../public_html/wp-includes/template-loader.php(48): do_feed()
#6 .../public_html/wp-blog-header.php(19): require_once('/home/pu...')
#7 .../public_html/index.php(17): require('/home/pu...')
#8 {main} thrown in .../public_html/wp-includes/template.php on line 783

Any help?

Thanks,

ionica

#update it seems that there is a missing file …/views/feed-sitemap-index.php

  • This topic was modified 27 minutes ago by i0n1ca.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer