| :: |
| Author |
Message |
pvchat1
Joined: 15 Jul 2007 Posts: 13 Location: California
|
Posted: Tue Aug 28, 2007 12:38 am Post subject: Problem with cache when using portal |
|
|
Using RC5 and V4 SEO I had a problem when trying to use phpbb SEO routines from the root when phpbb is located in a subdir. I traced it down to the cache path not being properly set when using the above configuration.
I was able to make things work by changing the path define in function phpbb_seo to include the phpbb root path.
| Code: |
define('SEO_CACHE_PATH', rtrim(phpbb_realpath($phpbb_root_path . $this->seo_opt['cache_folder']), '/') . '/'); // do not change
|
along with this to the beginning of the function.
| Code: |
global $phpbb_root_path;
|
|
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
narfnarf
Joined: 02 Nov 2007 Posts: 3
|
Posted: Fri Nov 02, 2007 7:02 am Post subject: Re: Problem with cache when using portal |
|
|
I think I saw this exact problem recur in.. whatever version I have.. 0.2.4. Is that the same version? Am I simply rehashing the same problem?
I would get unauthorized access errors for pages I know exist within the folder of my phpBB installation (my installation is not in the root, it's in a subfolder).
This might have been a conflict with another mod (m2f) as it was complaining about not finding the file in the path of that mod. But I got both mods working together in harmony and peace and all that by changing this line:
| Code: | | include($phpbb_root_path . 'phpbb_seo/phpbb_seo_class.'.$phpEx); |
To this:
| Code: | | include($phpbb_root_path . './admin/mods/phpbb_seo/phpbb_seo_class.'.$phpEx); |
.. and it seems like my board may have really slowed down after installing this mod. Two questions - one, is that ever reported (a slowdown after install) and two, if it's from html extensions.. would php extensions speed it up and is there a way to do that? No idea here, just stabbing in the dark (I guess it's all server redirects, so maybe the extension is nothing to do with it..) |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
narfnarf
Joined: 02 Nov 2007 Posts: 3
|
Posted: Tue Nov 06, 2007 4:05 pm Post subject: Re: Problem with cache when using portal |
|
|
Yeah - I see from the link in the reply notification that this thread concerns phpBB 3.
I'm using 2, and the mod I installed (yes with Easy Mod - how did you ascertain that?) is indeed also for 2.
It's working fine for me with that fix - no noticeable slowdown either.
Thanks! |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
Posted: Thu Nov 08, 2007 3:48 pm Post subject: Re: Problem with cache when using portal |
|
|
EZmod was the most likely to have caused an upload of the phpbb_seo/ dir in the admin/ dir
So where is the phpbb_seo/ directory (and files) now? And what about the code change in common.php, did you keep the admin/ dir in the include path ?
The best would be to make sure the phpbb_seo/ directory and files are int eh phpBB directory and to use the original suggested code in common.php IMHO.
If you don't mind and need to, we shall continue this in a more appropriate 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 |
|
 |
narfnarf
Joined: 02 Nov 2007 Posts: 3
|
Posted: Mon Nov 12, 2007 9:14 pm Post subject: Re: Problem with cache when using portal |
|
|
If it may be better to set it up another way, I'd like to, so, sure - let's please discuss it further in another thread. My first question: what file did I hack to do that code change? I'm searching, and searching in files, and I seriously don't remember, and I'm not finding it.  |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
|
| Back to top |
|
 |
|
|