VirtueMart and SMF bridge

Started by Orstio, February 19, 2006, 11:05:37 AM

Previous topic - Next topic

Orstio

I think I have the code fix, but I'll need some testers.  Anyone willing?

When you installed the bridge, you put some code into your Joomla template header.

In that code, you'll find this:

global $sc, $context, $settings;

Add this just below:

@ini_set('session.auto_start',0);

iqapps

#1
Yes  ;).

In my code is
global $sc, $context, $settings, $modSettings;

I trying now...
Regards
IQAPPS

iqapps

Hi
Noop...

Test 1
I login this working OK same sessions ID in both. Browse around site not VirtueMart comp. products etc.
I log out. OK
Try to log in without closing browser window and redirect to forum login. Error is Password incorrect.

Test 2
I login this working OK same sessions ID in both. Browse around site and VirtueMart comp. products etc.
Try to logout and get folowing error:
QuoteSession verification failed. Please try logging out and back in again, and then try again.
This error appears only if I browsing in any VirtueMart comp. If I go back to front page (home) is error gone.

Regards
IQAPPS

neilhedley

#3
Virtually the same results as the post above..
Using RC2 and Joomla 1.07, forum unwrapped; before I entered the code you suggest, Orstio, everything works except the "Logout" function - it gives me a 404 error whether I try to log out from either SMF or from Joomla, trying to access the following URL (minus the TLD reference):

/component/option,com_smf/Itemid,30/action,logout/returnurl,0/sesc,950e51e0d2d9e66b3bb162e0525f7835/

And in both cases, session ID stays the same.  But when I add the code you suggested, the logout link in the form on my Joomla page still fails, and the logout button in the forum takes me to the "Session Verification Failed" message detailed in the above post from iqapps.

iqapps

#4
Hi

Q 1.
Orstio have you check ps_session.php file in VirtueMart administrator/classes/!?

Regards
IQAPPS

ptvideo

Quote from: Orstio on February 19, 2006, 11:05:37 AM
I think I have the code fix, but I'll need some testers.  Anyone willing?

Hi, Orstio. I'm glat to know that you are trying a solution to virtuemart. I will test the possible solutions that you post. I know nothing about php, and due to my limitacions in English languague, my help will be very little, but I will try.

The code you sugested, to me also does not work. Thank you for your efforts in trying to solve our problems.

Orstio

Thanks for testing.  I think there is something else that can be done in the login module.

neilhedley

Update on this situation, having done some further testing.  (Again, Joomla 1.07, SMF Bridge 1.1RC2,, forum unwrapped, and as an aside, VirtueMart 1.0.2 (most current versions of everything, as of this writing...)

Everything seems to work fine with the bridge (as far as I can tell), until I try to log out.  And I've now tried every logout combination I can think of, and in every case, I get that excellent 404 error.

The bridge login form appears in the left column on all pages.  When I click the "Logout" graphic in that form, the error comes as the browser tried to get to the following:
hxxp:www.myurl.com/component/option,com_smf/Itemid,34/action,logout/returnurl,0/sesc,e41c925f4347a30fc3b6d40eb56788ba/ [nonactive]

If I go back into the forum, and click the logout link from there, the error results when the browser tries to get HERE:
hxxp:www.myurl.com/component/option,com_smf/Itemid,34/action,logout/sesc,e41c925f4347a30fc3b6d40eb56788ba [nonactive]

(Note that the session ID is the same, but "returnurl,0" is missing from the second link.

Now I go back and click the link in the main menu to take me to my VirtueMart installation, and click the "Logout" graphic that's contained in the bridge login form.  NOW instead of the usual error page, I get taken back into the forum, and get the following error message:
Session verification failed. Please try logging out and back in again, and then try again.
Additionally, the URL in my browser reads as follows:
hxxp:www.myurl.com/component/option,com_smf/Itemid,34/action,logout/returnurl,0/sesc,161501e0b81f0966ebbba2d2c444fbd4/ [nonactive]
(Now the session ID gas changed, and "returnurl,0" is back.)

Now since we're back into the forum and there's a logout link, I click that, get the same old 404 error again, from THIS URL:
hxxp:www.myurl.com/component/option,com_smf/Itemid,34/action,logout/sesc,e41c925f4347a30fc3b6d40eb56788ba [nonactive]

So we're back to the original session ID.  In case any of that helps, there you go.  In effect, I can't log out.  Even going into the main Joomla admin screen and clicking on "force logout" doesn't have any effect.  I go back to the home page and I'm still logged in.

It's becoming frustrating.

Advertisement: