[cBB Follower 1.0.1] Fatal error


no_avatar
mladiucitelj
 
Posts: 153
Joined: Sun Sep 02, 2012 11:40 pm
Location: Slovenia, Europe
 Tue Apr 02, 2013 7:00 pm • via Web
Hi!

When I click on a users name to it's profile it shows me that error:

Fatal error: Cannot redeclare class fwr_buttons in /.../public_html/forum/follower/includes/buttons.php on line 21


And when I click on forum index it shows me:

Fatal error: Cannot redeclare class fwr_buttons in /.../public_html/forum/follower/includes/buttons.php on line 22

Please help!
User avatar
IvanPF
Administrator
 
Posts: 2010
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Tue Apr 02, 2013 7:21 pm • via Web
Ok

I will check this problem today.
no_avatar
mladiucitelj
 
Posts: 153
Joined: Sun Sep 02, 2012 11:40 pm
Location: Slovenia, Europe
 Tue Apr 02, 2013 8:22 pm • via Web
mladiucitelj wrote:Hi!

When I click on a users name to it's profile it shows me that error:

Fatal error: Cannot redeclare class fwr_buttons in /.../public_html/forum/follower/includes/buttons.php on line 21

This this only shows when I'm NOT using Follower as default profile.

For other error on Index link I don't know what's wrong....
no_avatar
mladiucitelj
 
Posts: 153
Joined: Sun Sep 02, 2012 11:40 pm
Location: Slovenia, Europe
 Tue Apr 02, 2013 8:58 pm • via Web
Another info:

everything works fine if I'm not logged in. Even the link to Board index.
User avatar
IvanPF
Administrator
 
Posts: 2010
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Wed Apr 03, 2013 10:40 am • via Web
I think that this problem is caused by another mod that executes the "$user->setup()" function two or more times.
Try this to solve the problem with cBB Follower:
1. Open /folllower/includes/follower.php
2. Find:
Code: Select all
      include($phpbb_root_path . 'follower/includes/buttons.' . $phpEx);

3.Replace with:
Code: Select all
      if(!class_exists('fwr_buttons'))
      {
         include($phpbb_root_path . 'follower/includes/buttons.' . $phpEx);
      }
no_avatar
mladiucitelj
 
Posts: 153
Joined: Sun Sep 02, 2012 11:40 pm
Location: Slovenia, Europe
 Wed Apr 03, 2013 11:40 am • via Web
Don't know which mod would it be. Sorry.

Great! It works now. Thank you very much!

Who is online

Users browsing this forum: No registered users and 0 guests