Hi, it looks like you’re on a Windows server. Correct? Is this happening only with “xml-sitemap-feed” in that path or are there other plugin or theme paths referenced in the error log file too?
In any case, it seems there is a double path there in that error. Not sure why that happens. Maybe PHP on Windows interprets dirname() differently than on Linux.
Could you edit the file xml-sitemap-feed/includes/class-xmlsitemapfeed.php where you can find on line 1324 (search for “function plugins_loaded”, it’s the line 3 lines below that) this part: dirname( dirname( __FILE__ ) )
Replace that part with dirname( XMLSF_PLUGIN_BASENAME ) so it will look like:
public function plugins_loaded() {
// TEXT DOMAIN
if ( is_admin() ) { // text domain needed on admin only
load_plugin_textdomain('xml-sitemap-feed', false, dirname( XMLSF_PLUGIN_BASENAME ) . '/languages' );
}
}
This is the way it will be implemented in the next release.
Yes, it’s Plesk on Windows. Yuck!
Made that change…
Before:
public function plugins_loaded() {
// TEXT DOMAIN
if ( is_admin() ) { // text domain needed on admin only
load_plugin_textdomain('xml-sitemap-feed', false, dirname( dirname( __FILE__ ) ) . '/languages' );
}
}
After:
public function plugins_loaded() {
// TEXT DOMAIN
if ( is_admin() ) { // text domain needed on admin only
load_plugin_textdomain('xml-sitemap-feed', false, dirname( XMLSF_PLUGIN_BASENAME ) . '/languages' );
}
}
Hooray that solved it!
Thanks very much!
BTW, Amazing plugin: I use this plugin because it’s the only one I tested that I can easily check ‘exclude from sitemap’ on posts. All the best.
Good to hear and thanks for the feedback 🙂