It has come to our attention that more and more developers are back porting Joomla 1.5 code into Joomla 1.0.x components :-)
While this is good for code reuse, it can made compatibility a nightmare.
An example is with Tags/KB and JoomFish
If you are getting the error:
Fatal error: Cannot redeclare class JRegistryFormatINI in /home/domain/public_html/new/administrator/components/com_joomfish/libraries/joomla/format/ini.php on line 23
Then you have fallen foul of this :- )
The easy fix is to edit the file:
/administrator/components/com_joomfish/libraries/joomla/format/ini.php
and before the class declaration (thats the line that starts "class JRegistryFormatINI extends JRegistryFormat") add the following code:
if (!class_exists('JRegistryFormatINI')) {
then right at the bottom of the file before the closing ?> add another } brace like this:
} ?>
Save the file and upload it again and the conflict is resolved.
KB » How Do I - Questions Answered
JoomFish Conflict JRegistryFormatINI




Leave A Comment
Email This Article
Attachments
My Notes
Article Information





