• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: SEF bug + fix

SEF bug + fix 15 years 4 months ago #9341

  • GDR
  • GDR's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi there,

I have had a hard to trace issue on customer's website. When on a page generated by com_forme, all Joomla menus acted as if mod_rewrite config option has been disabled (that is, website.com/index.php/link has been generated, unlike website.com/link on non-forme pages). Looks like SEF has gone crazy.

After hours of debugging this is a patch I applied:
In components/com_forme/forme.php there is a section around line 60:
        if ( $menurow ) {
            $registry = new JRegistry();
            $registry->loadINI( $menurow );
            $configs = $registry->toObject( );
            $fid = $configs->fid;
        }

the
new JRegistry()
line caused that global configuration object stored by memory has been overwritten by $registry.

The fix is very simple: replace that line with:
            $registry =& JRegistry::getInstance('forme', 'forme');

If you read the JRegistry documentation, it says that the constructor is protected, and therefore can't be used explicitly.
The administrator has disabled public write access.

Re:SEF bug + fix 15 years 4 months ago #9346

  • octavian
  • octavian's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
Hello,
Thank you for sharing this with us. However, this only applies to RSForm! 1.0.4. In the 1.0.5 version we've already removed this code. The changelog is available here.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!