How to fix "Fatal error: Cannot redeclare utf8..." errors
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
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 be 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.
I just did that and as incredible as it sounds, it worked! Thank You!
-

Sheila - JFusion Novice II

- Posts: 69
- Joined: Sun Feb 26, 2012 3:18 am
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
hi, wen i aply the fade2gray's patch this error apear:
Fatal error: Cannot redeclare class GantryBrowser in /var/www/website.com/datos/web/libraries/gantry/core/gantrybrowser.class.php on line 19
what can i do?
Tanks
PD: joomla 2.5.1 & phpbb 3.0.10 whith visage rockettheme template in both sites. This joomla template use the Gantry v3.2.13
Fatal error: Cannot redeclare class GantryBrowser in /var/www/website.com/datos/web/libraries/gantry/core/gantrybrowser.class.php on line 19
what can i do?
Tanks
PD: joomla 2.5.1 & phpbb 3.0.10 whith visage rockettheme template in both sites. This joomla template use the Gantry v3.2.13
-

infoal - JFusion Newbie

- Posts: 3
- Joined: Thu Feb 16, 2012 9:40 pm
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
infoal wrote:hi, wen i aply the fade2gray's patch this error apear:
Fatal error: Cannot redeclare class GantryBrowser in /var/www/website.com/datos/web/libraries/gantry/core/gantrybrowser.class.php on line 19
what can i do?
Tanks
PD: joomla 2.5.1 & phpbb 3.0.10 whith visage rockettheme template in both sites. This joomla template use the Gantry v3.2.13
Edit: My bad. For "Style fixer tool", please read as "redeclare_fix.php sccript).
The Style fixer tool does not make any changes that could cause "Cannot redeclare class" errors, are you sure you didn't get the error before using it? Google search this phrase - jfusion "cannot redeclare class" (include the double quotes).
Last edited by fade2gray on Wed Feb 29, 2012 2:03 am, edited 1 time in total.
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
infoal wrote:hi, wen i aply the fade2gray's patch this error apear:
Fatal error: Cannot redeclare class GantryBrowser in /var/www/website.com/datos/web/libraries/gantry/core/gantrybrowser.class.php on line 19
what can i do?
Tanks
PD: joomla 2.5.1 & phpbb 3.0.10 whith visage rockettheme template in both sites. This joomla template use the Gantry v3.2.13
First use the latest Gantry framework
http://www.gantry-framework.org/ and make sure to disable RokZipper Plugin (dunno if this is the cause of your problem though).
-

Sheila - JFusion Novice II

- Posts: 69
- Joined: Sun Feb 26, 2012 3:18 am
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
Comment deleted, as inappropriate for the topic.
Last edited by fade2gray on Wed Feb 29, 2012 2:04 am, edited 1 time in total.
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
fade2grey, thanks for your scripts it helped me.
Though there is 1 issue i have with "radio buttons", which are below text. You can still click them and such but would be a plus to know which css is causing it. ALso i noticed that nickname font is a tad to big.
I use Rockettheme, PM if you need more (and interested).
Though there is 1 issue i have with "radio buttons", which are below text. You can still click them and such but would be a plus to know which css is causing it. ALso i noticed that nickname font is a tad to big.
I use Rockettheme, PM if you need more (and interested).
-

Sheila - JFusion Novice II

- Posts: 69
- Joined: Sun Feb 26, 2012 3:18 am
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
But on the bottom line those RT templates work too.
-

Sheila - JFusion Novice II

- Posts: 69
- Joined: Sun Feb 26, 2012 3:18 am
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
Hi.
I still get this error. I tried to use the fix, but I still got the error:
I still get this error. I tried to use the fix, but I still got the error:
- Code: Select all
Fatal error: Cannot redeclare utf8_ucfirst() (previously declared in /home/lukmail/public_html/forum/includes/utf/utf_tools.php:706) in /home/lukmail/public_html/teste/libraries/phputf8/ucfirst.php on line 20
-

PT Lyon - JFusion Newbie

- Posts: 1
- Joined: Wed Apr 04, 2012 11:44 pm
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
use support platform
-Thanks
-Thanks
Fanno
_________________________________
Developer
Specialist on SMF, DokuWiki , Mantis, Eventum, Mediawiki, Universal plugin
Review us at!
http://extensions.joomla.org/extensions/3723/details
_________________________________
Developer
Specialist on SMF, DokuWiki , Mantis, Eventum, Mediawiki, Universal plugin
Review us at!
http://extensions.joomla.org/extensions/3723/details
-

fanno - Developer

- Posts: 7680
- Joined: Wed Jan 07, 2009 4:38 pm
- Location: Denmark, Copenhagen
Re: How to fix "Fatal error: Cannot redeclare utf8..." errors
Outstanding fix, fade2gray.
Thank you so much for waking me from the nightmare that is configuring Jfusion
)
Thank you so much for waking me from the nightmare that is configuring Jfusion
-

evilbetty - JFusion Newbie

- Posts: 2
- Joined: Mon Apr 16, 2012 5:08 am
Who is online
Users browsing this forum: Google Adsense [Bot] and 3 guests
