Zen Follower
- Join Date:
- Jan 2006
- Posts:
- 109
- Plugin Contributions:
- 0
Gift Voucher admin page crashes my DB
My gift card page (gv_mail.php) in the admin will not load. It tries to load, and gets partway, and then just keeps looking like it's trying to finish loading the page, but times out eventually.
It gets to the point where the menu bar is loaded, and the loaded html ends at <li><a href="[path]/gv_admin_redemption_edit.php">Gift Certificate Admin Editor (Redeemed)</a></li>
</UL> </li>(that's the last item in the menu bar) and then after little bit (or immediately, I'm not entirely sure, but I'm pretty sure it takes a few moments), it crashes the zc database and I need to get the host to reset/repair it. This has happened a number of times in the past few days, but only just today was I able to attribute it to this page (or at very least, this page among others).
The page has two modifications from the default 1.3.8a code, which were added to accomodate the Gift Voucher Edit mod (Here is a comparisson of the original and new code for the first change, and the 2nd change is a new addition after the existing line shown)
$gv_query_raw = "select c.coupon_amount, c.coupon_code, c.coupon_id, et.sent_firstname, et.sent_lastname, et.customer_id_sent, et.emailed_to, et.date_sent, crt.redeem_date, c.coupon_id from.....
$gv_query_raw = "select c.coupon_amount, c.coupon_code, c.coupon_id, et.sent_firstname, et.sent_lastname, et.customer_id_sent, et.emailed_to, et.date_sent, crt.redeem_date, c.coupon_id, c.date_modified from.....
$contents[] = array('text' => TEXT_INFO_DATE_SENT . ' ' . zen_date_short($gInfo->date_sent));
//Add modified date (gv edit module):
if (($gInfo->date_modified) != '0001-01-01 00:00:00') { $contents[] = array('text' => 'Date Modified:'. ' ' . $gInfo->date_modified); }
Nothing SEEMS to be problematic with that to me, but I can't be 100% sure. The only way to test that would be to delete the lines and open the page, but crashing the Database on purpose with a 3+ hour turnaround for a reset from my host's support department is not something I relish if it isn't those lines.
Has anyone seen this issue before or have any idea what might be causing it?