0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

concrete5のBlock Designerでブロック配置しようとしたらSQLのシンタックスエラーになるとき

Posted at

問題

concrete5にはBlock Designerという簡単にちょっと凝ったブロックが作れるアドオンがあるけど、ブロックを配置しようとしたらエラーが出ることがある。

An exception occurred while executing... 
SQLSTATE[42000]: Syntax error or access violation...

みたいなやつだ。

解決

このエラーはブロックで使ってるパーツのハンドルがSQLのステートメントとかぶってると出る。「description」とかだと内部的には自動で「description_1」として扱われるっぽいけど、時々アドオンの作者が忘れててそのままになってるステートメントがある。(自分の場合はusageだった)

ということで、ハンドルをかぶらないものに差し替えてブロック作り直すと動きました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?