[[Zorg更新一覧]]
フォトコンテストを新規作成しようとするとエラー907が発生します。
この原因がzorgst.donotfree.comのst_uppict_photocon.phpにあり、
94 $result_pgrp_cnt = Func_mysql_exec($con, $query);
95 $rec = mysql_fetch_array($result_pgrp_cnt);
96 mysql_free_result($result_pgrp_cnt);
97 if ($rec['cnt'] <= 0) {
98 $dispmess = "不正アクセス? CODE907";
99 include("./inc_mess_error.php");
100 Func_mysql_exit($con);
101 }
から、$rec['cnt']が0である事を途中にechoを挟む事で確認しました。
このcntを送っているのはどこだろうと考えた所、
zorg.donotfree.com/manage/testGroup/edit_photocon.php ~
zorg.donotfree.com/manage/testGroup/edit_photocon.php
であると考え検索を掛けた結果、以下が見つかりました。
137 //----------------------------------------------------------------
138 // フォトコン受賞作品数
139 //----------------------------------------------------------------
140
141 $isAward = false;
142
143 $query = "
144 SELECT count(*) cnt
145 FROM grpphotocon_award_photo
146 WHERE gid = " . $DC['gid'] . "
147 AND pcid = " . $DC['pcid'] . "
148 ";
149 $rec = Func_mysql_exec($con, $query);
150 if ($rec) {
151 $result = mysql_fetch_array($rec);
152 if ($result && 0 < $result['cnt']) {
153 $isAward = true;
154 }
155 }
参考 http://q.hatena.ne.jp/1149560656~
試しにDBから検索をかけると
mysql> SELECT * FROM grpphotocon_award_photo;で、54行のラインがえられます。
mysql> SELECT count(*) cnt FROM grpphotocon_award_photo;
+-----+
| cnt |
+-----+
| 54 |
+-----+
1 row in set (0.00 sec)
なので、ここから関連するものを検索します。
新しく作成したプレミアムグループの「TEST」はgid=1970
「SIGMA」はgid=1543です。
そこで、下記を試した。
mysql> SELECT count(*) cnt FROM grpphotocon_award_photo where gid=1543;
+-----+
| cnt |
+-----+
| 12 |
+-----+
1 row in set (0.00 sec)
mysql> SELECT count(*) cnt FROM grpphotocon_award_photo where gid=1970;
+-----+
| cnt |
+-----+
| 0 |
+-----+
1 row in set (0.00 sec)
以下の手順で無理矢理作成した。
mysql> insert into grpphotocon_award_photo(gid,pcid,pid,cid,award_type,subscribed_ins_ut,ins_ut)values(1970,8,1327652,13221,3,UNIX_TIMESTAMP(),UNIX_TIMESTAMP());
Query OK, 1 row affected (0.00 sec)
mysql> SELECT * FROM grpphotocon_award_photo where gid=1970;
+-------+------+------+---------+-------+------------+---------+-------------------+------------+
| keyid | gid | pcid | pid | cid | award_type | comment | subscribed_ins_ut | ins_ut |
+-------+------+------+---------+-------+------------+---------+-------------------+------------+
| 422 | 1970 | 8 | 1327652 | 13221 | 3 | | 1331647105 | 1331647105 |
+-------+------+------+---------+-------+------------+---------+-------------------+------------+
1 row in set (0.00 sec)
そうすると、今度はエラー901が発生した。
901に関する調査を追ってする事になるだろう。
ここまで03/13の段階でしぼる事ができた。
参考になった資料をまた貼付けておきます。
- 作成しました。 -- [[yutaka]] &new{2012-03-13 (火) 22:37:19};
#comment