Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount! Get 20% off now with code SPOOKY-2024!

[SOLVED] SQL Syntax Error 1064 when registering new user.

  • MMDoege
  • MMDoege
  • OFFLINE
  • Posts: 98
  • Thanks: 3
  • Karma: 0
8 years 1 week ago - 8 years 5 days ago #287146 by MMDoege
Hello,

I got the message:

1064
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 SQL=SELECT id FROM `#__comprofiler` WHERE cb_user_alias=[value]

... just after hitting "register" button (see image attached)."

There's no such "cb_user_alias" field neither in #_comprofiler nor in #_comprofiler_fields. This is actually also true after having looked up some older DB tables built with previous versions of Joomla and CB where there was no such field either.

Current versions: Joomla 3.6.2 and CB 2.0.15+build.2016.09.16.21.34.37.b2e3df5e1.

Pls.advice. Thank you in advance.
Attachments:
Last edit: 8 years 5 days ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 1 week ago #287157 by krileon
That looks like a Query Validation. Find what field you've added it to then either correct it or remove it. Disable CB Query Field to confirm it's the cause.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: MMDoege

Please Log in or Create an account to join the conversation.

  • MMDoege
  • MMDoege
  • OFFLINE
  • Posts: 98
  • Thanks: 3
  • Karma: 0
8 years 1 week ago #287176 by MMDoege
solved, found query validation in system field "username". Username validation is checked in #_users Joomla table not #_comprofiler. Changed SQL statement into SELECT id FROM #_users WHERE username='[value]'; which does the job.
Thx.
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum