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  
 
   
Some pages of list return 404 error.

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB SEO Premod
::  
Author Message
digital1



Joined: 26 Oct 2007
Posts: 41
Location: India

Some pages of list return 404 error.Posted: Wed May 07, 2008 6:37 pm    Post subject: Some pages of list return 404 error.

Hello There,
Today i found a strange thing on my live forum. When i checked my member list which have 2 or more pages then on clicking 2 pages or next one i get 404 error pages. On hovering over 2nd page i get following url

-http://www.infoinn.pcriot.com/memberlist-8.php?mode=

Also similar is the case with pages present in ACP. Example
-http://www.infoinn.pcriot.com/adm/index-8.php?i=logs&sid=..............&mode=admin&st=0&sk=t&sd=d

Confused
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3384

Some pages of list return 404 error.Posted: Thu May 08, 2008 10:48 am    Post subject: Re: Some pages of list return 404 error.

Looks like you need to make sure you have the proper code for includes/functions.php and includes/functions_display.php, the generate_pagination and topic_generate_pagination functions.

Did you update from 3.0.0 ?

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
digital1



Joined: 26 Oct 2007
Posts: 41
Location: India

Some pages of list return 404 error.Posted: Thu May 08, 2008 1:42 pm    Post subject: Re: Some pages of list return 404 error.

yes i have updated from phpbb premod 3.0.0 to 3.0.1
Any idea which code in these pages is convict.
Back to top
digital1



Joined: 26 Oct 2007
Posts: 41
Location: India

Some pages of list return 404 error.Posted: Thu May 08, 2008 2:00 pm    Post subject: Re: Some pages of list return 404 error.

I think the guilty code "$pagin_find" for "generate_pagination" becausing it is not matching with the one provided in the update please tell me that i am correct.
Code:
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   $prev =  ($on_page == 1) ? '' : $base_url . "{$url_delim}start=" . (($on_page - 2) * $per_page);
   $next = ($on_page == $total_pages) ? '' : $base_url . "{$url_delim}start=" . ($on_page * $per_page);
   if (!empty($phpbb_seo->seo_opt['url_rewrite'])) {
      static $pagin_find = array();
      static $pagin_replace = array();
      static $prev_find = array();
      if (empty($pagin_replace)) {
         $pagin_find = array('`(\.[a-z0-9]+)([\w\#$%&~\-;:=,?@+]*)(&|\?)start=([0-9]+)`i', '`/([\w\#$%&~\-;:=,?@+]*)(&|\?)start=([0-9]+)`i' );
         $pagin_replace = array( $phpbb_seo->seo_delim['start'] . '\\4\\1\\2', '/' . $phpbb_seo->seo_static['pagination'] . '\\3' . $phpbb_seo->seo_ext['pagination'] . '\\1' );
         $prev_find = array($phpbb_seo->seo_delim['start'] . '0', $phpbb_seo->seo_static['pagination'] . '0' . $phpbb_seo->seo_ext['pagination']);
      }
      $page_string = str_replace($url_delim . 'start=0', '', $page_string);
      $page_string = preg_replace($pagin_find, $pagin_replace, $page_string);
      $prev = preg_replace($pagin_find, $pagin_replace, $prev);
      $prev = str_replace($prev_find, '', $prev);
      $next = preg_replace( $pagin_find, $pagin_replace, $next);
   }
   $template->assign_vars(array(
      $tpl_prefix . 'BASE_URL'   => $base_url,
      'A_' . $tpl_prefix . 'BASE_URL'   => addslashes($base_url),
      $tpl_prefix . 'PER_PAGE'   => $per_page,
      $tpl_prefix . 'PREVIOUS_PAGE'   => $prev,
      $tpl_prefix . 'NEXT_PAGE'   => $next,
      $tpl_prefix . 'TOTAL_PAGES'   => $total_pages)
   );
   // www.phpBB-SEO.com SEO TOOLKIT END
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3384

Some pages of list return 404 error.Posted: Thu May 08, 2008 2:04 pm    Post subject: Re: Some pages of list return 404 error.

Just overwrite the entire block between :

Code:
// www.phpBB-SEO.com SEO TOOLKIT BEGIN


and :

Code:
// www.phpBB-SEO.com SEO TOOLKIT END


with the one from the up to date files, for both pagination functions in functions.php and functions_display.php Wink

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
digital1



Joined: 26 Oct 2007
Posts: 41
Location: India

Some pages of list return 404 error.Posted: Thu May 08, 2008 2:13 pm    Post subject: Re: Some pages of list return 404 error.

Yes , that was the guilty code. Oh my god how i missed that!!!
Thanks for the guidance again. Forum is working nice now.
other page had correct setting. Laughing
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB SEO Premod
Page 1 of 1

Navigation Similar Topics

Jump to: