HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Getting a critical error with the facebook add-on

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#100483 (In Topic #19725)
Avatar

Well-settled

I installed the Facebook add-on awhile ago and it had been working fine. But today for some reason when I click the FB log-in button in the side_personal_stats block at first nothing happens (the page does not refresh). Then if you try to refresh the page I'm getting this critical error:



I have deactivate the Facebook add-on for the time being to avoid confusing my members, but can anyone help me understand why this suddenly changed and what I can do to correct it?

Any help is appreciated and thanks in advance.

- The LocalMC
Back to the top
 
Posted
Rating:
#100484
Avatar

Well-settled

Well, it seems like I may have managed to fix the critical error. Only because it doesn't appear after logging in with the Facebook add-on. However when a user first clicks the Facebook log in button on the side_personal_stats block, and the Facebook login window appears, the page doesn't refresh showing the user now logged in to my website.

I hope that makes sense. Also when a user logs out of my website it used to log them out of their Facebook account as well. But now when you log out of my site the user remains logged into their Facebook account forcing my website to automatically re-log them back in.

I'm really struggling with this one and would truly appreciate anyones help in resolving it.

Thank you,
:dry:  Mike (The LocalMC)
Back to the top
 
Posted
Rating:
#100489
Avatar

Hi,

There was a bug in the "Automatically enable syndication", now fixed.

I found unslider was not working, due to an old jquery version. That can happen if the activities addon is installed after, because that comes with an older version of the file (we backported unslider from a v10 addon, so it's bundled dependencies are newer).

I then tested Facebook and it worked for me, not with the issues above. When logging out it is important to wait for the logout page to fully load, as only then will the JS call to log out from Facebook run.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100490
Avatar

To be clear, the Unslider issue could have caused the Facebook issue, if Javascript execution was being terminated mid-processing.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100491
Avatar

Well-settled

I understand what you are saying about the un-slider, but up until today both the facebook add-on worked perfectly as well did the un-silder. when a user clicked the facebook log, they logged in to both their localmc account and their facebook account. And when they logged, they simply logged out.

I just tried it again myself and it did allow me to log in using the facebook button but it did not log me into my facebook account. Also, it wont let me log out at all. Whether i'm logged into facebook or not, my website takes me to the logged out page and when i click any other link i'm suddenly logged back in.

do you have any suggestions on what I can do to correct this? Like I said it was all working perfectly up until today for no apparent reason.
Back to the top
 
Posted
Rating:
#100492
Avatar

Well-settled

Now it wont let me log in at all.
Back to the top
 
Posted
Rating:
#100493
Avatar

I see you're using Safari. I just tested in that, with a fresh Facebook login, and didn't have a problem.

Maybe you have an addon for Safari that is causing problems.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100494
Avatar

Well-settled

I've tested the log in in 2 different browsers. Safari and Firefox. Both will let me log in as long as I manually refresh the page after entering my lon in info. Also they both will let me log out but I have to go through the log out process twice before successfully logging out. There still seems to be a mis connection between Facebook and my website as well. When I logged into my website fully it had not logged me into my Facebook account. Same goes for logging out. 
Back to the top
 
Posted
Rating:
#100496
Avatar

I just did fix an intermittent problem with logout.

Regarding login, make sure you're not starting a login from a URL with &refreshed_once=1 or &keep_refreshed_once=1 in it. That is an indicator to the addon that auth has happened once. It is necessary to stop nasty refresh loops that can happen when various kinds of security barrier are in place (e.g. cookie limits, or inter-server communication blocks, or just if sites are down). If you navigate back to such a URL in your history, or are logging out and in and letting that propagate, it will act funny as you describe.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100688
Avatar

Well-settled

I'm also getting the same problem with the Facebook login, I also get "&refreshed_once=1 or &keep_refreshed_once=1"

Were is the fix that you mentioned ?

I would like to fix this as I want the option for users to log in via there facebook account.


Robert W.
Back to the top
 
Posted
Rating:
#100689
Avatar

If you're getting that error, disable the "Automatically enable syndication" option for now. A new version of the addon/hotfix has not yet been released.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100717
Avatar

Well-settled

Chris,

FYI

I disabled the "Automatically enable syndication" option and it work correctly one time, and trying it again does not work. It's doing it again.

Finish Member Profile

I will wait until you provide a fix


ocPortal is great!

Thanks,


Robert W
Back to the top
 
Posted
Rating:
#100718
Avatar

Hi,

Thanks :).

The original poster mentioned three distinct issues. One was a particular stack trace, one was generally the login not refreshing, and one [in his second post] was an issue with logout.

You didn't mention which one, but because the stack trace was the more specific one, I went with that. I understand it may look like one issue, but actually they are not at all related. It's just the Facebook addon is particularly complex.

Are you then referring to the issue with logging out, or the issue with the login not refreshing?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100719
Avatar

Well-settled

I cannot seam to log in with the "&refreshed_once=1 or &keep_refreshed_once=1"
happening the screen shot that I provided in the last post is the what I get with the refreshed_once.

I fill out the "Finish member Profile" and the same screen comes back blank.

I will shut down all syndication's in the Facebook setup and see if that stops it and let you know.


Thanks,

Robert W.
Back to the top
 
Posted
Rating:
#100720
Avatar

Ah, I didn't notice the screenshot. This may be a different issue entirely. It might be ocPortal is not able to stall the login while going through these additional steps.
This particular screen comes up when you have required CPFs.

I will try and have a look either tomorrow or Saturday. If you could post a bug report ticket with FTP access that could help me test a fix on your actual server.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: