Menu Content

Podpora

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

Profile for yireo

  • OFFLINE
  • Time Zone: GMT +0:00
  • Local Time: 02:34
  • Posts: 2
  • Profile Views: 2678
  • Location: Unknown
  • Gender: Unknown
  • Birthdate: Unknown

Signature

Posts

Posts

emo
Hi,

I just ran a quick check on another extension of ours - SimpleLists (www.yireo.com/software/simplelists, is available for free) and the same things: If "Default Joomla! Router" is used, visiting the SimpleLists frontend results in an endless loop - until the fix of this thread is applied.

When "JoomSEF Basic Rewriting" is used there is no problem whatsoever. With SimpleLists that's fine, but unfortunately our MageBridge extension requires to many tricks for this to be functional.

Thanks for the effort.
Bug in joomsef.php ( ...
Category: JoomSEF 3
emo
Hi,

I'm one of the developers of MageBridge, and with our extension we integrate Magento into Joomla!. This requires some weird tricks to also merge the Magento SEF URLs into the Joomla! SEF URLs, and because of this we have done some customization of the MageBridge router.php file. This works smoothly under Joomla! SEF and theoretically under any other SEF solutions that remains compatible with Joomla! SEF.

This was also always implied with ARTIO JoomSEF. By modifying ARTIO JoomSEF to use the original "router.php" file for MageBridge (setting it to either "Component's Router" or "") this worked out fine. Until one of the latest ARTIO JoomSEF upgrade.

I found a small bug that has heavy consequences for us. In the file "components/com_sef/joomsef.php" there is simple check whether a SEF URL matches the SEF URL as it would have been generated, and if it does not match, it redirects. However, instead of making a simple comparison, the value of $jSef is modified and therefor the comparison does not work:
if ((strpos($jSef, 'index.php?') === false) && ($oldUrl != $jSef)) {


Before this line of code $jSef could contain a valid URL:
/shop/test


But after this line, $jSef is suddenly turned into some kind of half-breed URL:
/shop/test?Itemid=57&option=com_magebridge&request=test&view=root


However, by modifying the line of code to the following, the problem is solved and the comparison works as it was supposed to:
if ((strpos($jSef, 'index.php?') === false) && (!$oldUrl == $jSef)) {


I consider myself good in PHP, but actually this problem baffles me. It must have something to do with PHP5 and references, but I have not it tracked down.

Hopefully you can apply a bugfix with the information above.

Thanks,
Jisse Reitsma
Yireo
Bug in joomsef.php ( ...
Category: JoomSEF 3
More
Přihlášení uživatele Prázdný