AI Assistant
Notifications
Clear all

[Closed] Forum Sitemap showing errors

6 Posts
2 Users
2 Reactions
1,088 Views
Posts: 1242
Topic starter
Translate β–Ό
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@percysgrowroom)
Noble Member
Joined: 7 years ago
[#10871]

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: 5781
 Sofy
Admin
Translate β–Ό
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@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: 7 years ago

Noble Member
Posts: 1242
Translate β–Ό
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@sofy

Thank you Sofy, I appreciate it. 

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


Posts: 1242
Topic starter
Translate β–Ό
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@percysgrowroom)
Noble Member
Joined: 7 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:

Β 

 scissues

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

Support Team
Posts: 5781
Translate β–Ό
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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: 7 years ago

Noble Member
Posts: 1242
Translate β–Ό
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@sofy

ive done this, not sure if its fixed yet, but looking likely, thank sofy, ill keep you informed πŸ™‚


Share: