phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
No *.xml files
Goto page Previous  1, 2
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » GYM Sitemaps
::  
Author Message
Joerg



Joined: 10 May 2007
Posts: 24

No *.xml filesPosted: Mon Jun 04, 2007 7:18 pm    Post subject: Re: No *.xml files

Hi i insert your line in teh .htaccess and delete the old sitempa over the
ACP but it is the same result.

Regards Jörg
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

No *.xml filesPosted: Tue Jun 05, 2007 8:13 am    Post subject: Re: No *.xml files

dcz wrote:
As a matter of fact, the .htaccess is working, it's just that the GYM sitemaps module isn't compatible with CH, and you get an SQL error, which is outputted with a 500 error since we don't want to use html for bots in sitemaps :
Quote:
500 Internal Server Error :

Information
Invalid Sitemap


CH again then.

++


Still using CH ?

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Joerg



Joined: 10 May 2007
Posts: 24

No *.xml filesPosted: Tue Jun 05, 2007 10:03 pm    Post subject: Re: No *.xml files

No not more.
i deinstalled the mod and use now the simple sub-mod.

Regards Jörg
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

No *.xml filesPosted: Wed Jun 06, 2007 6:59 pm    Post subject: Re: No *.xml files

So the sitemapindex works, as well as the forums sitemaps (http://forum.bulldog-bt1100.de/forum-sitemap.xml.gz) but not the forum sitemaps (the one listing topics).

The .htaccess is ok, the link works, but you get an 500 error (did that to make sure bots would understand, unlike with the regular error handler):
Code:
500 Internal Server Error :

Information
Invalid Sitemap


So, this could mean a lot of things. Since you first tried with CH, it could come from left others in the db. Like if CH did not maintain the forum_last_post_id or the auth_view & auth_read fields the way phpBB does normally, thing like that.

Because this message means the code fails when performing this query in mx_ggsitemaps/includes/google_forum.php

Code:
      $sql = "SELECT f.*, p.post_time
         FROM ". FORUMS_TABLE ." AS f, " . POSTS_TABLE . " AS p
         WHERE f.forum_id = " . $this->actions['list_id'] . "
         AND p.post_id = f.forum_last_post_id";


Or right after, when checking auth :
Code:
      if ( empty($forum_data) || ( $forum_data['auth_view'] != 0 ) || ( $forum_data['auth_read'] != 0 ) || (in_array($forum_id, $this->output_data['exclude_list'])) ) {
         $this->mx_sitemaps_message_die(GENERAL_MESSAGE, 'Invalid Sitemap');
      }



So I'm not sure about how to fully uninstall CH and go back to the genuine phpBB db structure, nor if it is required, but the problem comes from there.

You could try to overwrite you google_forum.php file with a fresh one, just in case, before starting to find out more about how to fully remove CH.

In case everything fails, you could replace this particular query with one not using the post table, would only get rid of the last mod time for the forum url in topic listing, not very important :
Code:
      $sql = "SELECT .*
         FROM ". FORUMS_TABLE ."
         WHERE f.forum_id = " . $this->actions['list_id'];


And then add (just to keep providing a lastmod date, basically current time - 10 to 1000 second in this example for the forum links) :

Code:
      $forum_data['post_time'] = time() - rand(10, 1000);


After :
Code:
      if ( empty($forum_data) || ( $forum_data['auth_view'] != 0 ) || ( $forum_data['auth_read'] != 0 ) || (in_array($forum_id, $this->output_data['exclude_list'])) ) {
         $this->mx_sitemaps_message_die(GENERAL_MESSAGE, 'Invalid Sitemap');
      }


If not enough, this means the problem comes from the auth, and then it most likely means as well you'll experience problems elsewhere, make sure private forums cannot be browsed by guest or logged user with not enough auth for example.

You could still try to comment this line :
Code:
         $this->mx_sitemaps_message_die(GENERAL_MESSAGE, 'Invalid Sitemap');


Just to see if the topic are listed ok.

We would still be able to manage a quick fix, but in all cases, the best would be to make sure your phpBB db is well structured.


Do not submit your sitemap before it's fully operational.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Joerg



Joined: 10 May 2007
Posts: 24

No *.xml filesPosted: Sat Jun 16, 2007 12:59 am    Post subject: Re: No *.xml files

Hi, sorry for my late replay.


dcz wrote:

You could still try to comment this line :
Code:
         $this->mx_sitemaps_message_die(GENERAL_MESSAGE, 'Invalid Sitemap');


++


With this comment ist worknow i see the list.

Regards Jörg
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

No *.xml filesPosted: Sat Jun 16, 2007 9:35 pm    Post subject: Re: No *.xml files

Well, the problem here is it seems to me that there is a problem in your phpBB install dealing with the forum auth fields :

Code:
( $forum_data['auth_view'] != 0 ) || ( $forum_data['auth_read'] != 0 )


seems to never be true, or it is that you do not run any public forum ?

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Joerg



Joined: 10 May 2007
Posts: 24

No *.xml filesPosted: Fri Jun 22, 2007 12:03 pm    Post subject: Re: No *.xml files

The forum are mixed some parts are public and some not.

But that i dont understand why the forum so runs well.

Regards jörg
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

No *.xml filesPosted: Fri Jun 22, 2007 1:24 pm    Post subject: Re: No *.xml files

Given that you un-installed the CH mod, it's hard to tell, I assume some SQL should be used while doing it, but I never tried so far.

To try to understand a bit more, you can try to replace :

Code:
      if ( empty($forum_data) || ( $forum_data['auth_view'] != 0 ) || ( $forum_data['auth_read'] != 0 ) || (in_array($forum_id, $this->output_data['exclude_list'])) ) {
         $this->mx_sitemaps_message_die(GENERAL_MESSAGE, 'Invalid Sitemap');
      }


with :

Code:
      if ( empty($forum_data)  || (in_array($forum_id, $this->output_data['exclude_list'])) ) {
         $this->mx_sitemaps_message_die(GENERAL_MESSAGE, 'Invalid Sitemap');
      }


And tell me how it goes for a public forum sitemap.

And then, if it loaded correctly, try :

Code:
      if ( empty($forum_data) ||  ( $forum_data['auth_read'] != 0 ) || (in_array($forum_id, $this->output_data['exclude_list'])) ) {
         $this->mx_sitemaps_message_die(GENERAL_MESSAGE, 'Invalid Sitemap');
      }


and :

Code:
      if ( empty($forum_data) || ( $forum_data['auth_view'] != 0 ) || (in_array($forum_id, $this->output_data['exclude_list'])) ) {
         $this->mx_sitemaps_message_die(GENERAL_MESSAGE, 'Invalid Sitemap');
      }


and tell me if one of the two is working.

As well, could you post here the values stored in the phpbb_forums table, for a public forum (there is no secret in it) to check how auth are handled.


++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Joerg



Joined: 10 May 2007
Posts: 24

No *.xml filesPosted: Mon Jul 02, 2007 8:53 pm    Post subject: Re: No *.xml files

both entrys work well.


Regards Jörg
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

No *.xml filesPosted: Tue Jul 03, 2007 3:57 pm    Post subject: Re: No *.xml files

Well if all the three cases I suggested do work, it means that most of your forum do have different values for auth_view and auth_read.

Browsing your forum as guest should not allow you to see all forums and content.

What you need to make sure the most is are the forum listed in the sitemaps accessible by guests. If so, and if all of them are listed, then it's ok. You could only use one of the two auth fields checks (auth_view and auth_read) and keep the one that shows all public forums.

At least, you should keep the first version proposed, to be able to manually exclude the private forums in ACP :
Code:
      if ( empty($forum_data)  || (in_array($forum_id, $this->output_data['exclude_list'])) ) {
         $this->mx_sitemaps_message_die(GENERAL_MESSAGE, 'Invalid Sitemap');
      }


++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Joerg



Joined: 10 May 2007
Posts: 24

No *.xml filesPosted: Wed Jul 04, 2007 7:18 am    Post subject: Re: No *.xml files

Ok i will check the auth , and hope that i found the problem.......
because in the moment i run the google_forum.php with this part:
Code:
    if ( empty($forum_data)  || (in_array($forum_id, $this->output_data['exclude_list'])) ) {
         $this->mx_sitemaps_message_die(GENERAL_MESSAGE, 'Invalid Sitemap');
      }


REgards Jörg
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

No *.xml filesPosted: Wed Jul 04, 2007 9:05 am    Post subject: Re: No *.xml files

With this one, you'll only have to make sure you exclude the private forums in GYM sitemaps ACP.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » GYM Sitemaps
Page 2 of 2 Goto page Previous  1, 2

Navigation Similar Topics

Jump to: