Post by wildfire67 » Fri Apr 27, 2012 7:45 am

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

Thanks!

Wildfire67


User avatar
Newbie

Posts

Joined
Thu Feb 23, 2012 11:57 am

Post by Avvici » Fri Apr 27, 2012 10:49 am

v1.5.2.1
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'] = '';
    	}
Make sure this line of code is in your registration form:

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>
File: catalog/view/theme/your_theme/template/account/register.tpl

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by wildfire67 » Sat Apr 28, 2012 7:12 pm

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

Thanks!

Wildfire67


User avatar
Newbie

Posts

Joined
Thu Feb 23, 2012 11:57 am

Post by Avvici » Sat Apr 28, 2012 8:11 pm

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.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by wildfire67 » Sun Apr 29, 2012 12:53 am

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

Thanks!

Wildfire67


User avatar
Newbie

Posts

Joined
Thu Feb 23, 2012 11:57 am

Post by wildfire67 » Sat May 05, 2012 1:09 pm

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

Thanks!

Wildfire67


User avatar
Newbie

Posts

Joined
Thu Feb 23, 2012 11:57 am

Post by Avvici » Sat May 05, 2012 8:57 pm

I already answered this.
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');
    	}
Make sure that in your registration form that the select box for zone_id is there and that it is named correctly.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by wildfire67 » Sun May 06, 2012 3:24 am

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:

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>
So what do I look for next? Thank you so much for you cooperation and assistance.

Thanks!

Wildfire67


User avatar
Newbie

Posts

Joined
Thu Feb 23, 2012 11:57 am

Post by Avvici » Sun May 06, 2012 5:19 am

And, you are sure you are looking in the correct TPL? Maybe you are using a custom theme

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by wildfire67 » Sun May 06, 2012 11:05 am

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

Thanks!

Wildfire67


User avatar
Newbie

Posts

Joined
Thu Feb 23, 2012 11:57 am

Post by jty » Sun Jun 24, 2012 2:14 pm

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
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.
But I don't know how to fix it or what the workaround is.

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by lodownlv » Mon Sep 24, 2012 10:04 am

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

Newbie

Posts

Joined
Wed Feb 15, 2012 12:35 am

Post by byens » Sat Apr 20, 2013 10:39 am

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.

Selling Kristik - Jasa Foto Aura - Kapas Vapor - supplier baju anak -


Active Member

Posts

Joined
Sat Dec 11, 2010 12:29 pm
Location - Surabaya

Post by byens » Sun Jun 09, 2013 10:58 am

Sorry above solution not working

Selling Kristik - Jasa Foto Aura - Kapas Vapor - supplier baju anak -


Active Member

Posts

Joined
Sat Dec 11, 2010 12:29 pm
Location - Surabaya
Who is online

Users browsing this forum: Amazon [Bot] and 27 guests