Thank you Simon,
I replaced these:
if( $_SESSION['customer_id'] ) {
if (!$_SESSION['customer_id']) {
with
if(zen_is_logged_in()) {
That stopped the Undefined index: customer_id from appearing in the logs.
Now these are the remaining error logs generated:
Error Log generates as a (Guest/Not Logged In) when you click on Write Review (Before Submitting Review):
Error Log generates as a (Guest/Not Logged In) when you click submit the information on the Write Review Page (After Submitting Review):Code:Request URI: /01/index.php?main_page=product_reviews_write&products_id=16&cPath=1, #1 require(/01/includes/templates/responsive_classic/templates/tpl_product_reviews_write_default.php) called at [/01/includes/templates/responsive_classic/common/tpl_main_page.php:178] #2 require(/01/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/01/index.php:94] --> PHP Notice: Trying to get property 'fields' of non-object in /01/includes/templates/responsive_classic/templates/tpl_product_reviews_write_default.php on line 42. --> PHP Notice: Trying to access array offset on value of type null in /01/includes/templates/responsive_classic/templates/tpl_product_reviews_write_default.php on line 42. --> PHP Notice: Trying to get property 'fields' of non-object in /01/includes/templates/responsive_classic/templates/tpl_product_reviews_write_default.php on line 42. --> PHP Notice: Trying to access array offset on value of type null in /01/includes/templates/responsive_classic/templates/tpl_product_reviews_write_default.php on line 42. Line 42: <?php echo SUB_TITLE_FROM . zen_output_string_protected($customer->fields['customers_firstname'] . ' ' . $customer->fields['customers_lastname']) . '</h3>';}?> Request URI: /01/index.php?main_page=product_reviews_write&products_id=16&cPath=1, #1 require(/01/includes/templates/responsive_classic/templates/tpl_product_reviews_write_default.php) called at [/01/includes/templates/responsive_classic/common/tpl_main_page.php:178] #2 require(/01/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/01/index.php:94] --> PHP Notice: Trying to get property 'fields' of non-object in /01/includes/templates/responsive_classic/templates/tpl_product_reviews_write_default.php on line 45. --> PHP Notice: Trying to access array offset on value of type null in /01/includes/templates/responsive_classic/templates/tpl_product_reviews_write_default.php on line 45. --> PHP Notice: Trying to get property 'fields' of non-object in /01/includes/templates/responsive_classic/templates/tpl_product_reviews_write_default.php on line 45. --> PHP Notice: Trying to access array offset on value of type null in /01/includes/templates/responsive_classic/templates/tpl_product_reviews_write_default.php on line 45. Line 45: <div id="textAreaReviews"><?php echo sprintf(SUB_TITLE_REVIEW, $customer->fields['customers_firstname'], $customer->fields['customers_lastname']); ?></div>
Error Log generates as a (Logged In Customer) when you click submit the information on the Write Review Page (After Submitting Review):Code:Request URI: /01/index.php?main_page=product_reviews_write&action=process&products_id=48, #1 require(/01/includes/modules/pages/product_reviews_write/header_php.php) called at [/01/index.php:35] --> PHP Notice: Undefined variable: extra_info in /01/includes/modules/pages/product_reviews_write/header_php.php on line 137. --> PHP Notice: Trying to access array offset on value of type null in /01/includes/modules/pages/product_reviews_write/header_php.php on line 137. Line 137: zen_mail('', SEND_EXTRA_REVIEW_NOTIFICATION_EMAILS_TO, $email_subject, $email_text . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'reviews_extra');
Code:Request URI: /01/index.php?main_page=product_reviews_write&action=process&products_id=16, #1 require(/01/includes/modules/pages/product_reviews_write/header_php.php) called at [/01/index.php:35] --> PHP Notice: Undefined index: review_name in /01/includes/modules/pages/product_reviews_write/header_php.php on line 57. Line 57: $review_name = zen_db_prepare_input($_POST['review_name']); Request URI: /01/index.php?main_page=product_reviews_write&action=process&products_id=16, #1 require(/01/includes/modules/pages/product_reviews_write/header_php.php) called at [/01/index.php:35] --> PHP Notice: Undefined variable: name in /01/includes/modules/pages/product_reviews_write/header_php.php on line 133. --> PHP Notice: Undefined variable: email_address in /01/includes/modules/pages/product_reviews_write/header_php.php on line 133. Line 133: $extra_info=email_collect_extra_info($name,$email_address, $customer->fields['customers_firstname'] . ' ' . $customer->fields['customers_lastname'] , $customer->fields['customers_email_address'] );


Reply With Quote
Cindy!!!
