New Zenner
- Join Date:
- Apr 2006
- Posts:
- 2
- Plugin Contributions:
- 0
blank page & no emails after user registration and order confirmation
I've got a new ZenCart unix installation, and everything is working smoothly. except for two things:
-
When the user gets to the final stage of either the registration process or the ordering process, the final page returned is blank, and,
-
No emails are sent out to either the admin or the user.
I'm not exactly sure, but I think what's happening is that, because the email is unable to go out, the final page isn't rendering.
I took at look at htdocs/includes/modules/checkout_process.php, and the final two steps are:
// store the product info to the order
$order->create_add_products($insert_id);
$_SESSION['order_number_created'] = $insert_id;
$zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_AFTER_ORDER_CREATE_ADD_PRODUCTS');
This happens. The order shows up in the administrative interface. However, when the following chunk of code is executed:
//send email notifications
$order->send_order_email($insert_id, 2);
$zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_AFTER_SEND_ORDER_EMAIL');
It doesn't seem to happen. After poking around in the code, I can see that zco_notifier is an instantiation of a notifier object, but I can't really tell what it's doing. If I had to guess, I'd guess that it was telling the checkout process to send an email confirmation and return a confirmation page to the user, but because it's failing (maybe on the email), neither is happening. Does this sound plausible ?
Now, if I look at htdocs/includes/modules/create_account.php, I can see how the process succeeds until it gets to the end:
// send welcome email
zen_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_NAME, EMAIL_FROM, $html_msg, 'welcome');
which doesn't happen, as well as
zen_redirect(zen_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));
Which also doesn't seem to happen. Is there supposed to be a value in the second argument position, before 'SSL' ?
Other than these problems (which are keeping our site from launching), everything else has been pretty smooth.
If anyone has any ideas as to what's going on here, I'd be most grateful to hear them.