-----
利用のサーバ:GMOクラウドVPS
MODXのバージョン:modx-1.0.8J
PHPのバージョン:PHP 5.3.3
MySQLのバージョン:5.1.66
ブラウザ:IE9、Google Chrome
-----
リソースに作成した所属グループを設定し更新すると以下のようなエラーがでます。
« MODX Parse Error »
MODX encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - 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 'IN (16)' at line 1 »
SQL:UPDATE `△△△`.`modx_site_content` SET `privatemgr`='1' WHERE IN (16)
Basic info
REQUEST_URI : /test/manager/index.php
Manager action : 5 - Saving resource
Referer : http://ドメイン名/test/manager/index.php?a=27&id=16
User Agent : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17
IP : ○.○.○.○
Parser timing
MySQL : 0.0052 s (17 Requests)
PHP : 0.0524 s
Total : 0.0576 s
Backtrace
1 include_once("/var/www/vhosts/ドメイン名/http...")
manager/index.php on line 245
2 secureMgrDocument("/var/www/vhosts/ドメイン名/http...", "16")
manager/processors/save_content.processor.php on line 622
3 update("/var/www/vhosts/ドメイン名/http...", "16", "[+prefix+]site_content", "IN (16)")
manager/includes/secure_mgr_documents.inc.php on line 31
4 query("/var/www/vhosts/ドメイン名/http...", "16", "[+prefix+]site_content", "IN (16)", "UPDATE `△△△`.`modx_sit...")
manager/includes/extenders/dbapi.mysql.class.inc.php on line 248
◆管理権限>グループ管理>ユーザーグループ
サイト管理者を作成
◆管理権限>グループ管理>ユーザーグループ>リソースグループ
ページAを作成
◆管理権限>グループ管理>ユーザーグループ>グループリンク
グループリンクを新規作成で、サイト管理者+ページAでグループリンクを作成しました。
そして、リソースの投函にてリソースを作成して、所属グループをページAに設定し、更新するとエラー上記のようなエラーが発生します。
※所属グループをグループ制限なしに設定するとエラーは発生しません。
以上、プログラムのエラーなのでしょうか?何か設定のミスなのでしょうか?
ご返答の程、よろしくお願い申し上げます。
所属グループでのエラー
Re: 所属グループでのエラー
http://forum.modx.jp/viewtopic.php?p=5984#p5984
上記を試していただけますでしょうか。
manager/includes/secure_mgr_documents.inc.php をテキストエディタで開いて、31行目あたりの"IN ({$ids})"を"id IN ({$ids})"に書き換えます。
上記を試していただけますでしょうか。
manager/includes/secure_mgr_documents.inc.php をテキストエディタで開いて、31行目あたりの"IN ({$ids})"を"id IN ({$ids})"に書き換えます。
Re: 所属グループでのエラー
ありがとうございます!!
エラーが発生しなくなりました。
既にレスがあったのですね。しっかり調べなくて申し訳ございませんでした。
ありがとうございました。
エラーが発生しなくなりました。
既にレスがあったのですね。しっかり調べなくて申し訳ございませんでした。
ありがとうございました。