How to fix "Fatal error: Cannot redeclare utf8..." errors
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
fade2gray, thanks for taking your time to make this php script.
Matthew
Matthew
-

csbm - JFusion Newbie

- Posts: 3
- Joined: Thu Dec 18, 2008 9:26 pm
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
thanks fade2gray for making the script!
-

Imperial - JFusion Newbie

- Posts: 1
- Joined: Wed Jan 11, 2012 10:44 pm
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
@ csbm and Imperial.
Glad you found it useful - nice to get some feedback.
Glad you found it useful - nice to get some feedback.
I don't code - I just butcher that of others.
-

fade2gray - JFusion Intermediate

- Posts: 75
- Joined: Thu Aug 06, 2009 12:48 pm
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
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:
Can you help me?
thanks a lot guys
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
-

sentiogr - JFusion Newbie

- Posts: 3
- Joined: Fri Jan 13, 2012 3:15 pm
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
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.
-

fade2gray - JFusion Intermediate

- Posts: 75
- Joined: Thu Aug 06, 2009 12:48 pm
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
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...
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...
-

sentiogr - JFusion Newbie

- Posts: 3
- Joined: Fri Jan 13, 2012 3:15 pm
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
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.
-

fade2gray - JFusion Intermediate

- Posts: 75
- Joined: Thu Aug 06, 2009 12:48 pm
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
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...
-

sentiogr - JFusion Newbie

- Posts: 3
- Joined: Fri Jan 13, 2012 3:15 pm
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
Works great with my Joomla 1.7 + phpBB 3.0.10 site.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.
Thank you very much.
-

abhishekdas - JFusion Newbie

- Posts: 2
- Joined: Tue Jan 17, 2012 5:58 pm
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
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!
Thank you very much!
-

enak - JFusion Newbie

- Posts: 2
- Joined: Fri Feb 17, 2012 12:20 am
Who is online
Users browsing this forum: No registered users and 1 guest
