I'm just trying to install this contribution (http://www.oscommerce.com/community/contributions,936/)
I am running osCommerce 2.2-MS2 on an Apache Server with MySQL v4.1.10 and PHP v4.3.11
After many hours of errors and searching for answers to them, including instances of tep_array_merge, which for my site, at least, should read array-merge,
I must admit to being stumped.
When I click the 'Submit' button for a new ticket (http://slantdigital.co.uk/shop/support.php?action=new), I am, eventually, taken to an 'Error 500' page.
The error log, on the server, reads:
[Wed May 25 11:37:50 2005] [error] [client 62.254.0.48] malformed header from script. Bad header=No recipient addresses found i: support.php, referer: http://slantdigital.co.uk/shop/support.php?action=new
If I comment out:
// now send an email to the default administrator to let them know of new ticket
$default_admin_email = tep_db_query("SELECT admin_id FROM " . TABLE_SUPPORT_TICKETS . " where ticket_id = '" . $HTTP_GET_VARS['ticket_id'] . "' and customers_id = '" . $customer_id . "'");
$default_email = tep_db_fetch_array($default_admin_email);
$admin_email_query = tep_db_query("SELECT support_assign_email, support_assign_name FROM " . TABLE_SUPPORT_ASSIGN . " where support_assign_id = '" . $default_email['admin_id'] . "' and language_id = '" . $languages_id . "'");
$admin_email = tep_db_fetch_array($admin_email_query);
/*
$email_text_admin = EMAIL_TEXT_TICKET_ADMIN;
$email_text_admin .= EMAIL_THANKS_ADMIN . EMAIL_TEXT_ADMIN . EMAIL_CONTACT_ADMIN . EMAIL_WARNING_ADMIN;
tep_mail($admin_email['support_assign_name'], $admin_email['support_assign_email'], EMAIL_SUBJECT_UPDATE .' #' . $ticket_id, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
*/
// redirect to confirmation
It works fine, except no admin email is sent (obviously).
I've checked the admin emails and even created a new admin name & email, which I've set to default.
Another issue that I'm having, is:
On the same page, at the bottom of my ticket list (which only has 16 tickets, on 1 page) I'm getting:
Result Pages: -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0
when I should only be getting (I assume):
Result Pages: 1
trangely, when I click on one of these negative numbers, it takes me to the new tcket form.
Can anyone, please suggest where I may be going wrong.
Many thanks.