Advertisement:

Bug 1.1.4 - Form Registration ItemID (Mambo Pathway) + Solution

Aloittaja Gardian, toukokuu 28, 2006, 07:17:51 AP

« edellinen - seuraava »

Gardian

Hi,

I wanted to inform you of a bug I found out.
Once you click on the link in the menu bar you're going to something like "http://yoursite/index.php?option=com_smf&Itemid=45"

But what happens if you change the Itemid to something like 43. Then your mambo pathway doesn't work anymore.

Now about the problem, when i upgrade to older bridge to the new bridge. I deleted the menu link "forum"
(Itemid=43) and created a new one (itemid=45).

But what i forgot was to delete the forum link from the Trash Manager.

Now when I go to the register page from the Bridge Login Form, I got the link from itemid=43.
That gave me automatic that the mambo pathway doesn't work.

The problem is that there are two links of "'index.php?option=com_smf'" in the table {$mosConfig_dbprefix}.
But one is flagged for deleted.

You can solve this just by Empty your menu items in your Trash Manager.
Or you can also fix this by adjusting the code in two files:
/modules/mod_smf_login.php
/component/com_smf_registration/smf_registration.php

In those two files you find a query:
Lainaa$result = mysql_query("
   SELECT id
   FROM {$mosConfig_dbprefix}menu
   WHERE link = 'index.php?option=com_smf'");

If you change that to:
Lainaa$result = mysql_query("
   SELECT id
   FROM {$mosConfig_dbprefix}menu
   WHERE link = 'index.php?option=com_smf'
   AND published = '1'");
Then your problem is solved as well.

Greets,
Arjon

Kindred

it's not really a bug...   You just did not follow the instructions.
Every set of instructions that I have written for the bridge tells you to empty your trash.

However... thanks for the suggestion on the code.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: