Fatal error: Cannot redeclare class seo_meta

Discussions about the phpBB3 Forum. How to get the best from this powerful script.
Note that there is no official support for phpBB3 here, a place to share more than to ask for.

Moderator: Moderators

Fatal error: Cannot redeclare class seo_meta

Postby yatinbhatt » Sun Mar 07, 2010 6:46 am

Hi All,

I just applied a MOD using AUTOMOD and suddenly everything stopped working .... with an error "Fatal error: Cannot redeclare class seo_meta in /home/username/public_html/forum/phpbb_seo/phpbb_seo_meta.php on line 22"

AFAIK, there was nothing to do with phpbb_seo modification ....

While checking the phpbb_seodirectory, I found an error file error_log.... the contents are
[06-Mar-2010 23:01:30] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required './../phpbb_seo/phpbb_seo_meta.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/public_html/forum/common.php on line 225
[06-Mar-2010 23:01:53] PHP Fatal error: Cannot redeclare class seo_meta in /home/username/public_html/forum/phpbb_seo/phpbb_seo_meta.php on line 22



Please help.

I am using premodded 3.0.6

thanks
YB
yatinbhatt
 
Posts: 27
Joined: Wed Aug 20, 2008 10:23 am

Advertisement

Re: Fatal error: Cannot redeclare class seo_meta

Postby dcz » Sun Mar 07, 2010 3:20 pm

mm, the two error message are quite exclusive, since if you can't include the file holding the meta class code, you can't really see it declared twice.

I would start with checking common.php

Also, the file making this error seems out of phpBB, otherwise the include would have been './phpbb_seo/phpbb_seo_meta.php' and not './../phpbb_seo/phpbb_seo_meta.php'. So there could be an issue with the $phpbb_root_path set up there too.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Re: Fatal error: Cannot redeclare class seo_meta

Postby yatinbhatt » Sun Mar 07, 2010 8:26 pm

Hi dcz,

I found that very much frustrating .. just one mod and boom..

anyways, I referred your another guideline to update premod with all latest version as well as premod with old phpbb.

I used database_update.php, and then all new files (loosing mods) with old config.php.....it worked great

by the way, there is SLK toolkit available with phpBB, is that available for SEO version too ? because when I ran fix modules section, I lost phpBB-SEO and GYM modules .....I had to reinstall them and thanks to my backup of phpbb-seo/cache

thanks
YB
yatinbhatt
 
Posts: 27
Joined: Wed Aug 20, 2008 10:23 am

Re: Fatal error: Cannot redeclare class seo_meta

Postby dcz » Mon Mar 08, 2010 4:50 pm

yatinbhatt wrote:by the way, there is SLK toolkit available with phpBB, is that available for SEO version too ? because when I ran fix modules section, I lost phpBB-SEO and GYM modules .....I had to reinstall them and thanks to my backup of phpbb-seo/cache


That could be cool actually, would just need to find more time or new team member to work on it ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 8 guests