Topic-icon Search Engine Friendly URLs

Active Subscriptions:

None
12 years 2 weeks ago #44210 by zygajunior
Hi,
I installed JFBConnect
and everything is OK until
I turn ON Search Engine Friendly URLs in Global Configuration in Joomla 3.3.0

I can NOT connect via Facebook,
I get error:

404 Not Found
The request /index.php?option=com_jfbconnect&task=authenticate.login&provider=facebook&return=***** was not found on this server.

Please help!
The topic has been locked.
Support Specialist
12 years 2 weeks ago #44227 by alzander
We haven't heard of an issue like that before. We test with SEF URLs enabled and many sites use JFBConnect with SEF URLs enabled, so I'm not sure why you're getting a 404 error on that page.

Looking at your site, the SEF URLs are currently disabled, so it's difficult to test or diagnose further.

Can you let me know if you're using any SEF extensions other than the built-in Joomla SEF features? Are you using any sort of 404 manager?

Let me know any details you can, and please re-enable SEF URLs so we can see what's actually happening on your site. We'll gladly help investigate however we can.

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

None
12 years 2 weeks ago #44241 by zygajunior
Hi,
Thank you for your response.
I turn ON Search Engine Friendly URLs in Global Configuration in Joomla 3.3.0:
fotosnajper.pl/community

Error occurs both when trying to login via FaceBook and Google+.
I'm NOT using any SEF extensions other than the built-in Joomla SEF features.
I'am NOT using any sort of manager 404.

I can provide administrative support to my website,
Please contact a personal opportunity to send any passwords to
back site administrator.

Bartosz
The topic has been locked.
Support Specialist
12 years 2 weeks ago #44269 by alzander
I'm sorry for the delayed response to this. I just tried on your site and see the 404 error as well. Can you let me know if you also have the "Use URL rewriting" setting enabled in the Joomla Global Configuration area? If so, that means the .htaccess file is parsed and used on your site for some of Joomla's SEF functionality. In that case, can you tell me if you've modified that file in any way?

The issue, I think, is the use of the period in our URL for task=authenticate.callback It shouldn't cause an issue, and that's how Joomla expects some URLs to be set. So, it should work, but we've seen some server configurations (either Apache or the .htaccess file) that throw different errors for that URL.

I hope that helps explain, but if you can't get it going or need more assistance, just let me know. You can also Private Message me your admin credentials by clicking the mail icon under my name to the left.

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

None
12 years 1 week ago - 12 years 1 week ago #44319 by zygajunior
Hi,
Just installed a fresh version of Joomla 3.3.0
and component JFBConnect.
I did not change any files or modified the -
only the new version of Joomla 3.3.0 and JFBConnect and sadly:
When enabled Search Engine Friendly URLs in Global Configuration and
try to login through facebook or google+ 404 error:
404 Not Found
The request /index.php?option=com_jfbconnect&task=authenticate.login&provider=facebook&return=***** was not found on this server.
fotosnajper.pl/component/users/?view=login

Please help!
Bartosz

_____________
I have just installed Joomla 3.2.4 - but it is the same: Error 404:
test.fotosnajper.pl/: (
Last edit: 12 years 1 week ago by zygajunior.
The topic has been locked.
Support Specialist
12 years 1 week ago #44327 by alzander
I just tried to login with Google and am seeing a different error than you mention. After I accept the permissions prompt, I'm brought to:
http://fotosnajper.pl/index.php?option=com_users&view=profile
The error I see is:

404 Not Found

The request /index.php?option=com_users&view=profile was not found on this server.

I'm not seeing the error on the URL you mention above. Can you check if you see the different error with Google+?

I do see the error you mention above with Facebook, so that's definitely an issue. Knowing if the error is different for each network will help narrow things down though.

Beyond that, I just tried to login with the credentials you Private Messaged to me. In them, you included my username and email, but I didn't see a password. Can you resend the credentials to me so we can investigate what's happening further?

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

None
12 years 1 week ago #44338 by zygajunior
Hi,
I sent you the login and password.
Error seems to be always the same, ie:
404 Not Found

The request /index.php?option=com_jfbconnect&task=authenticate.login&provider=facebook&return=aW5kZXgucGhwP0l0ZW1pZD0xMDE=&9871c5f6fb9458027e1506c9c224b4ed=1 was not found on this server.

Another error that you noticed, could result from the fact that earlier (2 days ago) you have logged on my website, and today I installed a fresh version of Joomla. Perhaps the message here...

I greet
Bartosz
The topic has been locked.
Support Specialist
12 years 1 week ago #44342 by alzander
Bartosz,
Thanks for the admin account. It seems the problem only occurs when the "Use URL rewriting" setting is enabled in Joomla. That setting requires that you've renamed the htaccess.txt file to .htaccess. I'm assuming you've done that, but I can't check.

If that was properly renamed, it means the issue is something happening with Apache and general routing that it's trying to do. To diagnose further, you'd need to contact your hosting company or technical support to determine the following:
* Do you have mod_security enabled in Apache? If so, is it reporting a security exception when trying to login.
* Are there any errors in the Apache error logs when authentication occurs? If so, let us know what they are.

Unfortunately, we can't determine any of the answers to the above through Joomla itself. Those are all 'lower level' questions than Joomla.

I hope something above helps get you going though. We're unsure of what's happening, but will gladly try to help narrow things down as best as we can.

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

None
12 years 1 week ago #44353 by zygajunior
Hi,
Thank you for your response.
1. Of course, I've renamed the htaccess.txt file to .htaccess
 
2. I do have a new clue that may help solve the problem:
On most pages, module login is on the home page - "/"
On my site also is all OK when I try login from home page, even when the "Use URL rewriting" = ON and "Search Engine Friendly URLs" = ON.
The problem is only when I try to login from another menu, eg:
fotosnajper.pl/test

Could you check?

It seems to me that if the problem was on my server settings, it would be impossible login from each menu, and I see that the problem only occurs when I login with other menu than the "main menu" - "/".

I greet
Bartosz
The topic has been locked.
Active Subscriptions:

None
12 years 1 week ago #44413 by zygajunior
Hello,
I found the cause of the error.

Installation of my joomla 3 is as follows:
Domain refers to the directory /,
in the directory '/' is. htaccess file that rewrites addresses:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?*.fotosnajper\.pl$ [NC]
RewriteCond %{REQUEST_FILENAME} !/strona/
RewriteRule ^(.*)$ /strona/$1 [L]

Joomla is installed in the subdirectory "/strona".

Such an installation in a subdirectory is needed
because joomla requires at times access to the parent directory ".. /", and for safety reasons, my hosting such access blocked.

I replaced the code in the following files and now everything is ok:
components/com_jfbconnect/includes/jfbconnect.js
row 36: self.location = jfbc.base + 'strona/index.php?option=com_jfbconnect&task=authenticate.login&provider=' + name + '&return=' + jfbc.return_url + '&' + jfbc.token + '=1';
row 93: self.location = jfbc.base + 'strona/index.php?option=com_jfbconnect&task=authenticate.login&provider=facebook&return=' + jfbc.return_url + '&' + jfbc.token + '=1';

components/com_jfbconnect/libraries/authentication/oauth2.php
row 61: $this->setOption('redirecturi', JURI::base() . 'strona/index.php?option=com_jfbconnect&task=authenticate.callback&provider=' . strtolower($p->name));

I greet
Bartosz
The topic has been locked.