How to fix "Fatal error: Cannot redeclare utf8..." errors

Support specific to the phpBB 3 plugin.
Forum rules
Please post all the bugs you encounter on our issue tracker.

Re: How to fix "Fatal error: Cannot redeclare utf8..." errors

Postby csbm on Wed Jan 11, 2012 7:13 pm

fade2gray, thanks for taking your time to make this php script.
Matthew
User avatar
csbm
JFusion Newbie
JFusion Newbie
 
Posts: 3
Joined: Thu Dec 18, 2008 9:26 pm

Re: How to fix "Fatal error: Cannot redeclare utf8..." errors

Postby Imperial on Wed Jan 11, 2012 10:46 pm

thanks fade2gray for making the script!
User avatar
Imperial
JFusion Newbie
JFusion Newbie
 
Posts: 1
Joined: Wed Jan 11, 2012 10:44 pm

Re: How to fix "Fatal error: Cannot redeclare utf8..." errors

Postby fade2gray on Wed Jan 11, 2012 11:32 pm

@ csbm and Imperial.

Glad you found it useful - nice to get some feedback. :D
I don't code - I just butcher that of others.
User avatar
fade2gray
JFusion Intermediate
JFusion Intermediate
 
Posts: 75
Joined: Thu Aug 06, 2009 12:48 pm

Re: How to fix "Fatal error: Cannot redeclare utf8..." errors

Postby sentiogr on Fri Jan 13, 2012 3:20 pm

fade2gray, can you help me about the script ?!

I cannot find it and i didnt understand what exacly to do..
I have a joomla 1.7 site, JFusion 1.6 and a phpbb3 forum.

When i try to Login/Logout from my forum i take this:
Code: Select all
Fatal error: Cannot redeclare utf8_strlen() (previously declared in /home/mysite/public_html/forum/includes/utf/utf_tools.php:634) in /home/mysite/public_html/libraries/phputf8/native/core.php on line 35


Can you help me?
thanks a lot guys :)
User avatar
sentiogr
JFusion Newbie
JFusion Newbie
 
Posts: 3
Joined: Fri Jan 13, 2012 3:15 pm

Re: How to fix "Fatal error: Cannot redeclare utf8..." errors

Postby fade2gray on Fri Jan 13, 2012 4:11 pm

sentiogr wrote:fade2gray, can you help me about the script ?!

I cannot find it and i didnt understand what exacly to do


The script is the text file (redeclare_fix.php.txt) attached at the bottom of my post here.

Download redeclare_fix.php.txt and rename it to redeclare_fix.php then use your ftp client to upload a copy to both the root of your Joomla installation and the root of phpBB3 installation.

In your browser, navigate to...

your_domain.com/your_Joomla_dir/redeclare_fix.php (changing the path as appropriate)
Select the "Joomla" radio button and "Click to Apply".

then

your_domain.com/your_phpBB3_dir/redeclare_fix.php (changing the path as appropriate)
Select the "phpBB3" radio button and "Click to Apply".

Hope this helps.
I don't code - I just butcher that of others.
User avatar
fade2gray
JFusion Intermediate
JFusion Intermediate
 
Posts: 75
Joined: Thu Aug 06, 2009 12:48 pm

Re: How to fix "Fatal error: Cannot redeclare utf8..." errors

Postby sentiogr on Fri Jan 13, 2012 4:31 pm

i understood now.. thanks..

I did that, but i still have again this problem... :(
How can i find if i made right configurations for JFusion (into joomla admin panel)...??

When i login from my joomla site i can see my forum and post on it, but i cannot Login/Logout from my forum..!

I have Joomla Master and phpbb3 slave. I dont know how to fix it...

Sorry for my bad language...
Hope to find a solution... :roll:
User avatar
sentiogr
JFusion Newbie
JFusion Newbie
 
Posts: 3
Joined: Fri Jan 13, 2012 3:15 pm

Re: How to fix "Fatal error: Cannot redeclare utf8..." errors

Postby fade2gray on Fri Jan 13, 2012 5:00 pm

sentiogr wrote:I did that, but i still have again this problem

Did the script fix the "Cannot redeclare..." errors for you, or not?

sentiogr wrote:How can i find if i made right configurations for JFusion (into joomla admin panel)...??

When i login from my joomla site i can see my forum and post on it, but i cannot Login/Logout from my forum..!

You will have to ask for help about this in a new thread or use the "SUPPORT" button at the top of this page (you have to use the email address you registered with to lgoin to the support section, not your username).

Also have you looked here?
I don't code - I just butcher that of others.
User avatar
fade2gray
JFusion Intermediate
JFusion Intermediate
 
Posts: 75
Joined: Thu Aug 06, 2009 12:48 pm

Re: How to fix "Fatal error: Cannot redeclare utf8..." errors

Postby sentiogr on Sat Jan 14, 2012 12:20 am

fade2gray wrote:
sentiogr wrote:I did that, but i still have again this problem

Did the script fix the "Cannot redeclare..." errors for you, or not?
Not, i didnt had errors... I checked the login checker and everything was fine!!! ..but the problem continious...
I dont know why.. :(

sentiogr wrote:How can i find if i made right configurations for JFusion (into joomla admin panel)...??

When i login from my joomla site i can see my forum and post on it, but i cannot Login/Logout from my forum..!

You will have to ask for help about this in a new thread or use the "SUPPORT" button at the top of this page (you have to use the email address you registered with to lgoin to the support section, not your username).

Also have you looked here?

Thnx for your answer.. maybe i will go to support section...
User avatar
sentiogr
JFusion Newbie
JFusion Newbie
 
Posts: 3
Joined: Fri Jan 13, 2012 3:15 pm

Re: How to fix "Fatal error: Cannot redeclare utf8..." errors

Postby abhishekdas on Tue Jan 17, 2012 6:22 pm

fade2gray wrote:Here's a simple php script for fixing "Cannot redeclare utf8_xxx" errors. Works for current Joomla 1.7 and phpBB 3.0.10 releases.

NOTE: This script is intended to applied to previously unedited (clean) core.php and utf8_tools.php files.

Just upload a copy to the root of your Joomla and phpBB3 installation directories then run:
your_domain.com/your_Joomla_dir/redeclare_fix.php
and
your_domain.com/your_phpBB3_dir/redeclare_fix.php

Backups of the original files will be created before wrapping all the utf8 functions in conditional statements (also, the correct indentation will be applied accordingly). Appropriate messages will be displayed if any errors are encountered.
Works great with my Joomla 1.7 + phpBB 3.0.10 site.

Thank you very much. :)
User avatar
abhishekdas
JFusion Newbie
JFusion Newbie
 
Posts: 2
Joined: Tue Jan 17, 2012 5:58 pm

Re: How to fix "Fatal error: Cannot redeclare utf8..." errors

Postby enak on Fri Feb 17, 2012 12:22 am

I've just applied this fix on Joomla 2.5.1 and phpBB 3.0.10 and all now working perfectly.

Thank you very much!
User avatar
enak
JFusion Newbie
JFusion Newbie
 
Posts: 2
Joined: Fri Feb 17, 2012 12:20 am

PreviousNext

Return to phpBB 3

Who is online

Users browsing this forum: No registered users and 1 guest