All,
I have this error in my system error logs can someone help me with it? I have no idea what is could be.
PHP Notice: Undefined index: zone_id in /home3/superwe5/public_html/aquariusfountainsnmore/catalog/controller/account/register.php on line 322
Thank you for you assistance!
Wildfire67
I have this error in my system error logs can someone help me with it? I have no idea what is could be.
PHP Notice: Undefined index: zone_id in /home3/superwe5/public_html/aquariusfountainsnmore/catalog/controller/account/register.php on line 322
Thank you for you assistance!
Wildfire67
Thanks!
Wildfire67
v1.5.2.1
Your registration control is looking for a variable in your registration form that is not there:
Make sure this line of code is in your registration form:
File: catalog/view/theme/your_theme/template/account/register.tpl
Your registration control is looking for a variable in your registration form that is not there:
Code: Select all
if ($this->request->post['zone_id'] == '') {
$this->error['zone'] = $this->language->get('error_zone');
}
AND THIS:
if (isset($this->request->post['zone_id'])) {
$this->data['zone_id'] = $this->request->post['zone_id'];
} else {
$this->data['zone_id'] = '';
}
Code: Select all
<tr>
<td><span class="required">*</span> <?php echo $entry_zone; ?></td>
<td><select name="zone_id">
</select>
<?php if ($error_zone) { ?>
<span class="error"><?php echo $error_zone; ?></span>
<?php } ?></td>
</tr>
Thank you so much for your quick reply. I do not have that line, so where do I paste that code in the register.tpl?
Thank you
Wildfire67
Thank you
Wildfire67
Thanks!
Wildfire67
well, I only offered v1.5.2.1 because you didn't tell us what version you had. What version are you using?
The answer is yes, you paste it where you want it to show up. It needs to be near the address information between the <table></table> tags.
The answer is yes, you paste it where you want it to show up. It needs to be near the address information between the <table></table> tags.
Sorry about that I thought I put thew version before. It is Version 1.5.2.1. Also I'm sorry but I gave you incorrect information. I do have the following line below in the file: catalog/view/theme/your_theme/template/account/register.tpl
<tr>
<td><span class="required">*</span> <?php echo $entry_zone; ?></td>
<td><select name="zone_id">
</select>
<?php if ($error_zone) { ?>
<span class="error"><?php echo $error_zone; ?></span>
<?php } ?></td>
</tr>
I had it all along. I was looking for this in that statement before:
if ($this->request->post['zone_id'] == '') {
$this->error['zone'] = $this->language->get('error_zone');
}
AND THIS:
if (isset($this->request->post['zone_id'])) {
$this->data['zone_id'] = $this->request->post['zone_id'];
} else {
$this->data['zone_id'] = '';
}
So I guess I'm back to the square 1? I have that statement in the correct file as you stated but, I'm still getting that error. I'm very sorry for all the confusion.
Regards
Wildfire
<tr>
<td><span class="required">*</span> <?php echo $entry_zone; ?></td>
<td><select name="zone_id">
</select>
<?php if ($error_zone) { ?>
<span class="error"><?php echo $error_zone; ?></span>
<?php } ?></td>
</tr>
I had it all along. I was looking for this in that statement before:
if ($this->request->post['zone_id'] == '') {
$this->error['zone'] = $this->language->get('error_zone');
}
AND THIS:
if (isset($this->request->post['zone_id'])) {
$this->data['zone_id'] = $this->request->post['zone_id'];
} else {
$this->data['zone_id'] = '';
}
So I guess I'm back to the square 1? I have that statement in the correct file as you stated but, I'm still getting that error. I'm very sorry for all the confusion.
Regards
Wildfire
Thanks!
Wildfire67
I have this error in my system error logs can someone help me with it? I have no idea what is could be. I'm currently using version 1.5.2.1
PHP Notice: Undefined index: zone_id in /home3/superwe5/public_html/aquariusfountainsnmore/catalog/controller/account/register.php on line 322
PHP Notice: Undefined index: zone_id in /home3/superwe5/public_html/aquariusfountainsnmore/catalog/controller/account/register.php on line 322
Thanks!
Wildfire67
I already answered this.
This is the line that is generating the error:
Make sure that in your registration form that the select box for zone_id is there and that it is named correctly.
This is the line that is generating the error:
Code: Select all
if ($this->request->post['zone_id'] == '') {
$this->error['zone'] = $this->language->get('error_zone');
}
Sorry,
I know you anserwed this before but the code that you said was missing was in that file. I'm new to this. I've checked this File: catalog/view/theme/your_theme/template/account/register.tpl and it has this code it it like you said:
So what do I look for next? Thank you so much for you cooperation and assistance.
I know you anserwed this before but the code that you said was missing was in that file. I'm new to this. I've checked this File: catalog/view/theme/your_theme/template/account/register.tpl and it has this code it it like you said:
Code: Select all
<tr>
<td><span class="required">*</span> <?php echo $entry_zone; ?></td>
<td><select name="zone_id">
</select>
<?php if ($error_zone) { ?>
<span class="error"><?php echo $error_zone; ?></span>
<?php } ?></td>
</tr>
Thanks!
Wildfire67
Yes, I'm positive that the file is the one in that path. No I'm using the default theme. I did some modifications but not with this file. I never touch this file. Just touched the header and footer. also did added a mods to show the weight and sizes on the product pages. But never touched that file.
Regards
John
Regards
John
Thanks!
Wildfire67
It's a bug. It doesn't happen all the time. It's sounding like it's happening when ajax fails to return the list of zones for the buyer to select. It's another one of those ajax bugs. Most times it's OK but it fails when ajax fails.wildfire67 wrote:All,
I have this error in my system error logs can someone help me with it? I have no idea what is could be.
PHP Notice: Undefined index: zone_id in /home3/superwe5/public_html/aquariusfountainsnmore/catalog/controller/account/register.php on line 322
Thank you for you assistance!
Wildfire67
But I don't know how to fix it or what the workaround is.
my code is the following and i still get a error every now and then, i hope it isnt preventing people to order, i cannot duplicate the error
2012-09-23 19:22:59 - PHP Notice: Undefined index: zone_id in /home/openboxc/public_html/catalog/controller/account/register.php on line 423
rregister php 282-289:
if (isset($this->request->post['zone_id'])) {
$this->data['zone_id'] = $this->request->post['zone_id'];
} elseif (isset($this->session->data['shipping_zone_id'])) {
$this->data['zone_id'] = $this->session->data['shipping_zone_id'];
} else {
$this->data['zone_id'] = '';
}
line 323 giving the error:
if ($this->request->post['zone_id'] == '') {
PLEASE HELP!
THANKS
2012-09-23 19:22:59 - PHP Notice: Undefined index: zone_id in /home/openboxc/public_html/catalog/controller/account/register.php on line 423
rregister php 282-289:
if (isset($this->request->post['zone_id'])) {
$this->data['zone_id'] = $this->request->post['zone_id'];
} elseif (isset($this->session->data['shipping_zone_id'])) {
$this->data['zone_id'] = $this->session->data['shipping_zone_id'];
} else {
$this->data['zone_id'] = '';
}
line 323 giving the error:
if ($this->request->post['zone_id'] == '') {
PLEASE HELP!
THANKS
I have similar problem and i was browsing this solution from indonesian forum.
download http://code.jquery.com/jquery-1.7.2.js or http://code.jquery.com/jquery-1.7.2.min.js
and place it in folder /catalog/view/javascript/jquery
and change your catalog/view/theme/default/template/common/header.tpl and change related .js javascript with the one you downloaded above.
Clear your cache and wait.
After a 1 week i have no more error.
download http://code.jquery.com/jquery-1.7.2.js or http://code.jquery.com/jquery-1.7.2.min.js
and place it in folder /catalog/view/javascript/jquery
and change your catalog/view/theme/default/template/common/header.tpl and change related .js javascript with the one you downloaded above.
Clear your cache and wait.
After a 1 week i have no more error.
Selling Kristik - Jasa Foto Aura - Kapas Vapor - supplier baju anak -
Who is online
Users browsing this forum: Amazon [Bot] and 26 guests