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  
 
   
installed zero dupe, getting error

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » Zero duplicate
::  
Author Message
hvactechforum



Joined: 03 Mar 2007
Posts: 44

installed zero dupe, getting errorPosted: Wed Apr 04, 2007 4:36 am    Post subject: installed zero dupe, getting error

I have installed advanced zero dupe and I am getting an error. The only other mods I have installed are:
- advanced mod rewrite
- guest sessions
- anti-bot question

This is the error that I am getting, I followed the instructions very closely...

Quote:
Fatal error: Call to undefined function: seo_start() in /home/content/h/v/a/blahblah/html/hblahblahdomain/viewforum.php on line 92


I can post any other details you may need, just let me know. Thank you.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

installed zero dupe, getting errorPosted: Wed Apr 04, 2007 8:58 am    Post subject: Re: installed zero dupe, getting error

This is probably because you messed up a bit while performing the required changes in phpbb_seo_class.php.

The seo_start() method is conditionally added, since other mods could have already implemented it in the phpbb_seo class.

From the last DIY :
Quote:

#
#-----[ DIY INSTRUCTIONS ]--------------------------------------------------
#

The following FIND and BEFORE, ADD in phpbb_seo/phpbb_seo_class.php may have already been performed
by another phpBB SEO mod.
To make sure about it, please make sure your phpbb_seo/phpbb_seo_class.php does not already contain
the code in the BEFORE, ADD.

If so, just skip this step


You need to add :

Code:
   /**
   * check start var consistency
   */
   function seo_start($start = 0, $limit = 0) {
      if ($limit > 0) {
         $start = ( is_int( $start/$limit ) ) ? $start : intval($start/$limit)*$limit;
         $this->start = ( $start > 0  ) ? $this->seo_static['start'] . $start : '';
      } else {
         $this->start = ( $start > 0  ) ? $this->seo_static['start'] . $start : '';
      }
   }

Before :

Code:
}
?>


In the phpbb_seo_class.php file, and make sure you did not put this one elsewhere.

++

_________________
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
hvactechforum



Joined: 03 Mar 2007
Posts: 44

installed zero dupe, getting errorPosted: Wed Apr 04, 2007 9:03 am    Post subject: Re: installed zero dupe, getting error

Also, in the installation instructions it says to:

Code:

OPEN
index.php

FIND
$db->sql_freeresult($result);

AFTER, ADD
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$uri = $phpbb_seo->seo_req_uri();
$phpbb_seo->seo_cond(!$userdata['session_logged_in'] && (strpos($uri, "sid=" ) !== FALSE ));
if ( $viewcat > 0 ) {
   $phpbb_seo->page_url = $phpbb_seo->format_url($this_cat_title, $phpbb_seo->seo_static['cat']) . $phpbb_seo->seo_delim['cat'] . $viewcat . $phpbb_seo->seo_ext['cat'];
   if ( $phpbb_seo->do_redir || strpos($uri, $phpbb_seo->page_url) === FALSE) {
      $phpbb_seo->seo_redirect($phpbb_seo->seo_path['phpbb_url'] . $phpbb_seo->page_url);
   }
} elseif ($viewcat == -1) {
   $mark_use = ($userdata['session_logged_in']) ? $mark_read : '';
   if (!empty($phpbb_seo->seo_static['index'])) {
      $phpbb_seo->seo_cond(( $mark_use == '' &&  strpos($uri, $phpbb_seo->seo_static['index']) === FALSE ), TRUE);
   } else {
      $phpbb_seo->seo_cond(( $mark_use == '' &&  strpos($uri, "index.$phpEx") !== FALSE ), TRUE);
   }
   if ( $phpbb_seo->do_redir) {
      $phpbb_seo->seo_redirect($phpbb_seo->seo_path['phpbb_url'] . $phpbb_seo->seo_static['index']);
   }
}
// www.phpBB-SEO.com SEO TOOLKIT END


However, the text "$db->sql_freeresult($result);" appears five times in that file. Do I follow the instructions for all five times? because I did......
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

installed zero dupe, getting errorPosted: Wed Apr 04, 2007 9:05 am    Post subject: Re: installed zero dupe, getting error

Nope, as always it's only the first one after the last FIND (so here it's always the first one) to take into account.

This one is just after :

Code:
while ($row = $db->sql_fetchrow($result))
{
   $category_rows[] = $row;
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   if ( $row['cat_id'] == $viewcat ) { $this_cat_title = $row['cat_title']; }
   // www.phpBB-SEO.com SEO TOOLKIT END
}


This part being as well conditionally changed, it's not really possible to include it in the FIND.

++

_________________
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
hvactechforum



Joined: 03 Mar 2007
Posts: 44

installed zero dupe, getting errorPosted: Wed Apr 04, 2007 9:15 am    Post subject: Re: installed zero dupe, getting error

dcz wrote:
Nope, as always it's only the first one after the last FIND


D'oh!!! I thought so, but I wasn't quite sure. Embarassed
As always, dcz, thanks for your very helpful and timely assistance! Very Happy

UPDATE>>>

I believe I have this working perfectly now...
Back to top
hvactechforum



Joined: 03 Mar 2007
Posts: 44

installed zero dupe, getting errorPosted: Wed Apr 04, 2007 11:52 pm    Post subject: Re: installed zero dupe, getting error

One small issue that needs to be addressed still. In the installation instructions you said "if a mod added a GET or POST var on index.php, viewforum.php, viewtopic.php or a member's profile,
it's URLs will be redirected at first".

Well, as you can see in this thread at phpBB.com I made a small modification to my forum index page that allows for a total count of topics in the statistics area. Since installing the advanced zero duplicates mod, this area is now blank. Any ideas?
Back to top
hvactechforum



Joined: 03 Mar 2007
Posts: 44

installed zero dupe, getting errorPosted: Fri Apr 06, 2007 10:35 am    Post subject: Re: installed zero dupe, getting error

bump

Question
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

installed zero dupe, getting errorPosted: Fri Apr 06, 2007 11:03 am    Post subject: Re: installed zero dupe, getting error

I don't think the zero dupe could interfere with the mod you're using.

Please double check the code change in index.php as it could only be a typo upon install.

As well, a link to you forum would help out to find out.

++

_________________
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
hvactechforum



Joined: 03 Mar 2007
Posts: 44

installed zero dupe, getting errorPosted: Fri Apr 06, 2007 11:59 am    Post subject: Re: installed zero dupe, getting error

I may be wrong...but...I have double checked everything. All my code seems to be intact. This stat was working until I installed the zero dupe mod. Maybe you could have a look? You can find my forum at hvacruniverse . com (avoiding bots still, not fully developed)


Last edited by hvactechforum on Sat Apr 07, 2007 12:19 pm; edited 1 time in total
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

installed zero dupe, getting errorPosted: Fri Apr 06, 2007 12:08 pm    Post subject: Re: installed zero dupe, getting error

All right, I took a look at your index.php file and could not find any added GET or POST var.

And I do not really see what's not working on your forum index.

Could you post a link to the mod's release thread so I can check what's this one doing.

Besides, headers are perfect : http://www.hvacruniverse.com/index.php

++

_________________
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
hvactechforum



Joined: 03 Mar 2007
Posts: 44

installed zero dupe, getting errorPosted: Fri Apr 06, 2007 1:08 pm    Post subject: Re: installed zero dupe, getting error

It's not a released mod. I did it myself in this thread. I had to make modifications to index.php, index_body.tpl, and lang_main.php. If you look on the my forum index, you will see that there is a blank table row between "total posts" and "total categories". This was there before, fully functional, and it disappeared. The only thing I changed was to add zero dupe mod. Could you look at the mod thread at phpBB and see if anything could be conflicting please?

Look at the fifth post...
Back to top
hvactechforum



Joined: 03 Mar 2007
Posts: 44

installed zero dupe, getting errorPosted: Sat Apr 07, 2007 10:35 am    Post subject: Re: installed zero dupe, getting error

Sorry for wasting your time. I found the problem was a typo (like you said Laughing ). BTW, thanks for checking the headers, this is a great mod!
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

installed zero dupe, getting errorPosted: Sat Apr 07, 2007 11:37 am    Post subject: Re: installed zero dupe, getting error

You're welcome Wink

_________________
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  » Zero duplicate
Page 1 of 1

Navigation Similar Topics

Jump to: