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

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

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

What can I do to help fix this?

Login / Search

 [ Join | More ]
 Add topic 
#94815 (In Topic #18887)


Trying to find a fix for fb login edge cases.

I know this is more of a bug fix type of post but here is my issue anyway.

If a user already has an account and then decides to login with Facebook they get this message...

This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
PHP WARNING [2] mysql_real_escape_string() expects parameter 1 to be string, array given in sources/database/mysql.php on line 188 (version: 9.0.2, PHP version: 5.2.17, URL: /index.php?page=join&

Is there anything that can be done to smooth out this whole process.  I understand that there is a similar problem for everyone who tries to install the addon resulting in them having to go through the password reset process but is there anything that can be done to make sure users don't ever have this problem.  One idea would be to maybe only show the fb login link to people who don't have accounts and only show the "login using your 'fubar' account below to people who haven't already logged in with facebook before.  This seems hacky though.  I'm sure there is a better way.  Does anybody know it?
Back to the top

This was fixed quite a while back in a newer version of the facebook addon.

Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Support me on Patreon
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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: