Joomla Tags - JoomFish Conflict JRegistryFormatINI

JoomFish Conflict JRegistryFormatINI JoomFish Conflict JRegistryFormatINI

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

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.

Article is in the following categories:
KB » How Do I - Questions Answered



Leave A Comment

or close

Email This Article

or close

Existing Comments

There are currently no comments.

Attachments Attachments

There are currently no files.

myNotes My Notes

You currently have no notes on this article. You can leave your own note on this page, the note can only be seen by you (and our administrators) but not other users.

You need to login first

JoomFish Conflict JRegistryFormatINI Article Information

Hits:
285
Created:
Saturday, 05 April 2008
Author:
Administrator
Last Modified:
Saturday, 05 April 2008
Access:
Public
Version:
2

Powered by Joomla Knowledgebase
Now Available For Joomla 1.5.x and Joomla 1.0.x!