Topic-icon logout redirection 404 error

Support Specialist
12 years 10 months ago #35137 by alzander
Do you have an SEF extension installed on your site? The only difference between the SCLogin's logout button and Joomla's is that our redirection URL is including your domain name. The Joomla logout url is using a relative link. That difference shouldn't matter, but it looks to be the cause.

To fix, please edit the /modules/mod_sclogin/helper.php file. Around line 120, you'll see:
if (!$url)
        {
            $uri = JURI::getInstance();
            $url = $uri->toString(array('scheme', 'host', 'path', 'query'));
        }
Update the 2nd to last line so it looks like:
$url = $uri->toString(array('path', 'query'));
Please test, again, and let us know how that goes.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 10 months ago #35218 by agmnet
Replied by agmnet on topic logout redirection 404 error
sorry but i think i answered but it seems not! well i also tried changing this code but it didn't give any value! i will install sh404sef to see if sth changes !
The topic has been locked.
Support Specialist
12 years 10 months ago #35221 by alzander
The difference now is that the SCLogin return parameter is being JRoute'd. The return parameter we are setting is /login-register

However, I'm not sure how that's happening. Something strange is definitely happening on your site that I've never seen before. If you try sh404SEF or another extension, let us know how that goes. If you need more assistance from us, just let us know and we'll gladly investigate further.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #35284 by agmnet
Replied by agmnet on topic logout redirection 404 error
well i installed sh404sef and nothing changes, still gets the same error while loging out using sclogin! usres sent me emails to tell me about the error :( should i unpblish JFB connect?
The topic has been locked.
Support Specialist
12 years 9 months ago #35319 by alzander
It looks like you disable the SCLogin module from your site. I also can't login to the admin area anymore with the credentials you sent previously to check things.

The main thing I'd like to understand now is why the logout URL that we're setting is SEF and not a standard Joomla route. I think once we determine that, I'll finally be able to provide a fix that works. Can you let me know how the "Logout Redirection URL" was set in the SCLogin module so that we can investigate a little more.

I do apologize for how long it's taking to get things figured out, but this is an issue we've never heard of on any other sites. Your site is very unique in some way, and I simply don't know why you're having the problem yet. The next release of the SCLogin module (due out in about 2 weeks) changes how we generate the Logout URL and may fix the problem as well. Of course, we'd prefer to get you going well before that.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #35537 by agmnet
Replied by agmnet on topic logout redirection 404 error
Dear,
i sent you a pm have you got it? anything new?
The topic has been locked.
Support Specialist
12 years 9 months ago #35564 by alzander
I missed your PM before. Thanks for letting me know about it. I got into the admin area and enabled the SCLogin module. Then, in sh404SEF, I set it to 'skip' JFBConnect URLs. With that configuration, the login with Facebook *and* logout buttons worked for me. It seems that JFBConnect is working now.

In your PM, you mentioned "but i need the opengraph work and user likes my articles". Can you let me know more about what you're trying to do, what you've already tried, and what is, or isn't working? Then, we'll gladly help try to get those features going for you as well.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #35574 by agmnet
Replied by agmnet on topic logout redirection 404 error
no the open graph is not working it keeps giving error. i tried many types and objects. i have already one defined in facebook app. so please if you can have a look on it.
when it works i will enable the fbcconnet on homepage.
thank you in advanced
The topic has been locked.
Support Specialist
12 years 9 months ago #35599 by alzander
Can you help explain a lot more about what you're trying to setup with Open Graph? We'll need a lot more information to help you configure things since I don't know what you're trying to accomplish.

What action have you created in Facebook? What is it supposed to 'do' on your site? Is it for reading articles, voting for content, leaving a comment, etc?

Anything you can let us know about what you want to setup will help us.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #35613 by agmnet
Replied by agmnet on topic logout redirection 404 error
i think now it is better, it is working good, bu t i noticed the "Read" action doesn't display in all categories eventhough i added it and sometimes you need to read the article twice to take effect!
The topic has been locked.