Keyword

SQL 1064 Error on Front-End Article Save

  • Nelson Elliott
  • Nelson Elliott's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 3 months ago #114487 by Nelson Elliott
SQL 1064 Error on Front-End Article Save was created by Nelson Elliott
Hello,
I'm building a new site with K2 2.6.6 and Joomla 3.0. I am trying to setup a site that users can contribute to. Users can open and edit an article form with no problem, but on trying save the article, the site throws this error:

---

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND trash = 0' at line 1 SQL=SELECT MAX(ordering) FROM joom_k2_items WHERE catid = AND trash = 0

---

I am using sh404sef, but the error occurs whether the component is enabled or not. Any ideas?

Thanks,
Nelson

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

  • Nelson Elliott
  • Nelson Elliott's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 3 months ago #114488 by Nelson Elliott
Replied by Nelson Elliott on topic Re: SQL 1064 Error on Front-End Article Save
PS - Everything works fine from the backend.

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

  • Nelson Elliott
  • Nelson Elliott's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 3 months ago #114489 by Nelson Elliott
Replied by Nelson Elliott on topic Re: SQL 1064 Error on Front-End Article Save
Ah, getting closer to a resolution. It appears to be something I changed in the form style. When I set the form style to "-default-" instead of my custom style, that fixes the problem.

In case anyone else ever makes the same mistake, I'll update here when I figure out exactly what I changed that caused the issue.

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

More
10 years 6 months ago #114490 by chomz
:woohoo: finally..
please kindly inform me, how did you resolve this? puhleeeeease :side:
i've got stressed out because i couldn't save or create new k2 items from front submission :pinch:

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 6 months ago - 10 years 6 months ago #114491 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: SQL 1064 Error on Front-End Article Save
Which version of Joomla! and K2 are you using?
Are you using any overrides for the itemform.php file?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
10 years 6 months ago - 10 years 6 months ago #114492 by chomz
Hi...
I am currently on Joomla 3.2.2 and K2 version of 2.6.7 ( now upgraded to 2.6.8 but nothing change)

Sys Info :

System information
Check Result

Web Server Apache
PHP version 5.3.28
MySQL version 5.5.32-cll
GD image library bundled (2.1.0 compatible)
Multibyte string support Enabled
Upload limit 50M
Memory limit 64M
Open remote files (allow url fopen) Yes

attached the screenshot of the error

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

More
10 years 6 months ago #114493 by Lefteris
Replied by Lefteris on topic Re: SQL 1064 Error on Front-End Article Save
@chomz

Hi. Are you using any third party K2 or content plugins ? I just tested under Joomla! 3.2.2/K2 2.6.8 and had no issues.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
10 years 6 months ago #114494 by chomz
hi... I really dont understand what was wrong .. already tried to put on/off several plugins and modules, switching templates, etc.. no good result at all
finally i decided to re-create the site from zero.. thankfully it's a new site so i only have to rewrite tens k2 articles or so :(

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

More
10 years 6 months ago #114495 by Lefteris
Replied by Lefteris on topic Re: SQL 1064 Error on Front-End Article Save
In order to identify such issues in the future you can enable debugging under Joomla! configuration while you are building the site. This should give you more details regarding the error.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum