Hi.
I am using RsFirewall on my site, the problem is that I can not access RsFirewall's backend after upgrade of ARTIO joomsef to version 4.3.
The error message is:
"Fatal error: Cannot redeclare class JModelLegacy in /administrator/components/com_rsfirewall/helpers/adapter.php on line 53"
I have investigated the problem.
Here is a fragment of diff for /administrator/components/com_sef/model.php after upgrade of ARTIO joomsef to version 4.3:
-class SEFModel extends JModel
+if (!class_exists('JModelLegacy')) {
+ class JModelLegacy extends JModel { }
+}
+
+class SEFModel extends JModelLegacy
Seems like it causes the problem.
The suggested patch to solve the problem is:
--- a/administrator/components/com_sef/model.php
+++ b/administrator/components/com_sef/model.php
-if (!class_exists('JModelLegacy')) {
- class JModelLegacy extends JModel { }
+if (!class_exists('JSEFModelLegacy')) {
+ class JSEFModelLegacy extends JModel { }
}
-class SEFModel extends JModelLegacy
+class SEFModel extends JSEFModelLegacy
Is there any other way to fix the problem without changing joomsef source code?
I would really appreciate any help.