Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

wpForo 1.x.x [Closed] Forum Sitemap showing errors

6 Posts
2 Users
2 Reactions
782 Views
Posts: 1215
Topic starter
(@percysgrowroom)
Noble Member
Joined: 6 years ago

The site map for my forum profiles is showing 17 errors, and i can't find out how to fix the problem

When i look at the site map, it shows some blank spaces..... 17. so i suppose these are the erro, but how do i fix it? 

5 Replies
Sofy
Posts: 5483
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 years ago

ok Percysgrowroom, 

We're going to check the issue. Please wait a bit.

I'll update the topic asap. 

1 Reply
(@percysgrowroom)
Joined: 6 years ago

Noble Member
Posts: 1215

@sofy

Thank you Sofy, I appreciate it. 

There seems to only be issues in the profiles section of the site map I think. 

Posts: 1215
Topic starter
(@percysgrowroom)
Noble Member
Joined: 6 years ago

Here is a pic of the problem sofy, I have no idea what this is trying to tell me. 

There are 17 profiles in my profile site map that are not working properly. GSC tells me this:

 

2 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 8 years ago

Support Team
Posts: 5483

@percysgrowroom

Please follow the steps below:

1. Open the class-seo.php file in the /wp-content/plugins/wpforo/wpf-includes/ folder

2. Find the members_sitemap function on the line: 75

3. Replace the function with the following one: 

    public function members_sitemap($paged){
$paged = absint($paged);
$sitemap = '';
if( $paged && $profiles = $this->get_public_profiles($paged) ){
foreach ( $profiles as $profile ){
if( $profile['loc'] = wpforo_member($profile['userid'], 'profile_url') ){
$sitemap .= $this->sitemap_url($profile);
}
}
}
return $sitemap;
}

Delete all caches and check again. It should work fine. 

(@percysgrowroom)
Joined: 6 years ago

Noble Member
Posts: 1215

@sofy

ive done this, not sure if its fixed yet, but looking likely, thank sofy, ill keep you informed 🙂