Topic-icon Site redirected to SITEURL/nullindex.php

Active Subscriptions:

None
8 years 11 months ago - 8 years 11 months ago #61973 by ensis
Hi
After setting in Configuration > Facebook tab > Auto Login Facebook Users to "Yes", I am redirected to SITEURL/nullindex.php (404, as not existing), while I am logged in to FB account in the browser. I expect being logged in instead.
My stack: Joomla 3.7.2 / JFBConnect 7.2.0 / Nginx / PHP 7
Can you help?
Last edit: 8 years 11 months ago by ensis.
The topic has been locked.
Support Specialist
8 years 11 months ago #61980 by mel
A few questions to help narrow down the issue:
* Could you let me know what you've set your Redirect URLs to in your Facebook application?
* Are there an SEF / redirection extensions enabled on your site? You'll have to set them to exclude routing for JFBConnect URLs.
* Could you provide a specific URL where this is happening so that I can see the behavior in action?

-Melissa
The topic has been locked.
Active Subscriptions:

None
8 years 11 months ago #61982 by ensis
Hi Mel
I shared data you requested by PM.
Thanks
Adam
The topic has been locked.
Support Specialist
8 years 11 months ago #61987 by alzander
The issue looks to be issues with our Javascript loading properly. JFBConnect requires our Javascript library file to be loaded first. Then, there's some Javascript parameters we put on the page. The problem is in the following script call on your page:
<script src="/components/com_jfbconnect/includes/jfbconnect.js?v=6" type="text/javascript" defer="defer"></script>
That 'defer="defer"' tag is making our Javascript load later, which is causing the parameters we set to fail.. and that's leading to some null variables.

Can you disable whatever is trying to optimize the page by setting all Javascript files to be deferred? I wasn't able to find whatever was doing it in the admin area. At the very list, our jfbconnect.js file should be excluded.

I hope that helps get you going, but if you need more assistance, please let us know.

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

None
8 years 11 months ago #61990 by ensis
Hi
Template engine was adding "defer" to the script, problem is gone after disabling it.
Your tip was helpful.
Thank you!
The topic has been locked.
Support Specialist
8 years 11 months ago #61992 by alzander
Awesome! I'm glad to hear we could help resolve this for you. If you run into anything else or have any other questions, just let me know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/extensi...l-display/jfbconnect

Thanks,
Alex
The topic has been locked.