Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Profile for bs.alex

  • OFFLINE
  • Time Zone: GMT +0:00
  • Local Time: 19:05
  • Posts: 1
  • Profile Views: 2329
  • Location: Unknown
  • Gender: Unknown
  • Birthdate: Unknown

Signature

Posts

Posts

emo
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.
Fatal error: Cannot ...
Category: JoomSEF 4
More
Přihlášení uživatele Prázdný