Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Error on page when loading index.php

    Hello,

    I'm getting this error on one computer but not the other. They both have the same browser version of IE v8.0. IE reports the message on the bottom left of the browser 'Error on Page' when I visit the website.

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6.5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Media Center PC 5.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C)
    Timestamp: Sun, 3 Oct 2010 18:26:16 UTC

    Message: 'document.login.email_address' is null or not an object
    Line: 421
    Char: 39
    Code: 0
    URI: https://www.mydomain.com/index.php?main_page=login

    When I look at line 421 in view source this is what I see:

    <body id="loginBody" onload="update_zone(document.create_account); document.login.email_address.focus();">

    I noticed that on the browser that does not get this error, it doesn't have the zenid appended in the url.

    Any idea on where to get started in trying to get rid of this error?

    Thanks.


    ** EDITED *** Never ever post in a forum, email, newsletter etc. the zenid or zenAdminID or you will be doomed!!
    Last edited by Ajeh; 3 Oct 2010 at 07:44 PM. Reason: remove zenid

  2. #2
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Re: Error on page when loading index.php

    Hi Ajeh,
    Yeah I read that some where about the zenid thing. That zenid I posted was actually modified. I changed a whole bunch of characters. So any idea what I should start looking at in regards to the problem? Thanks.

  3. #3
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Re: Error on page when loading index.php

    Hello,

    So after some research I found that the file being loaded is
    includes/modules/pages/login/on_load_main.js

    Which has this line of code:
    update_zone(document.create_account); document.login.email_address.focus();

    Question is can i delete this line? And what will it affect if I do remove it. Anyone have any ideas?

    Thanks.

  4. #4
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Re: Error on page when loading index.php

    I have decided to remove that line of javascript code entirely. So far with preliminary testing, it has fixed the error and no issues.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Error on page when loading index.php

    By removing that line you break the ability for the cursor to be automatically placed in the login box. AND it prevents the country/state updates from setting up properly on first load if someone is creating an account on that page.

    Your problem will be a broken file or a broken browser.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Re: Error on page when loading index.php

    Hi DrByte,

    Thank you for your reply. I'm not concern about the cursor automatically placed in the login field (email address field). However I am concern about the updates you are talking about. When they visit the website they are presented with just an informational page. Then when they click on Login or Create Account they are presented with the login page.

    Are you talking about that at this login page the states/country cannot be updated when someone is creating an account? I did a test with creating an account and and also updating the state/country under My Account after login and both tests updated successfully.

    Is it suppose to update somewhere else that I'm not aware of? Please let me know DrByte. Thanks.

 

 

Similar Threads

  1. Blank page — index.php / Store not loading
    By sportbiker in forum General Questions
    Replies: 2
    Last Post: 7 Jan 2010, 02:08 AM
  2. internal error 500 when using admin/index.php
    By mobs in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 29 Apr 2008, 10:48 PM
  3. Error when loading admin page
    By iamperez247 in forum General Questions
    Replies: 1
    Last Post: 19 Mar 2008, 02:55 PM
  4. Error when editing index.php
    By gotalkaboutit in forum Basic Configuration
    Replies: 2
    Last Post: 6 Aug 2007, 04:07 PM
  5. error when loading create_account.php
    By lenertolson in forum General Questions
    Replies: 1
    Last Post: 24 Jun 2007, 06:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR