| :: |
| Author |
Message |
hvactechforum
Joined: 03 Mar 2007 Posts: 44
|
Posted: 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

Joined: 28 Apr 2006 Posts: 13354
|
Posted: 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 :
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 |
|
 |
hvactechforum
Joined: 03 Mar 2007 Posts: 44
|
Posted: 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

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
hvactechforum
Joined: 03 Mar 2007 Posts: 44
|
Posted: 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.
As always, dcz, thanks for your very helpful and timely assistance!
UPDATE>>>
I believe I have this working perfectly now... |
|
|
| Back to top |
|
 |
hvactechforum
Joined: 03 Mar 2007 Posts: 44
|
Posted: 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
|
Posted: Fri Apr 06, 2007 10:35 am Post subject: Re: installed zero dupe, getting error |
|
|
bump
 |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
hvactechforum
Joined: 03 Mar 2007 Posts: 44
|
Posted: 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

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
hvactechforum
Joined: 03 Mar 2007 Posts: 44
|
Posted: 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
|
Posted: 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 ). BTW, thanks for checking the headers, this is a great mod! |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
|
|