Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Feb 2009
    Location
    BC, Canada
    Posts
    10
    Plugin Contributions
    0

    Default Customer log in issue with SEO mod installed

    [Initial info]
    Version: Zen Cart v1.3.8a/v1.3.8
    Changes: There were some code changes but unfortunately I know nothing about them
    URL: https://amazingdiscoveries.org/store
    [/Initial info]

    Hi,

    I have a problem with customer logging in. (Our store uses SSL ) Here is what to reproduce problem:

    1) Restart web browser (probably cookies or other data need to be shreded)
    2) Enter https://amazingdiscoveries.org/store
    3) Fill in the log in form:

    Code:
    <form method="post" action="https://amazingdiscoveries.org/store/index.php?main_page=login&action=process&zenid=b231ce7a01753cc8bbcf6e0da29b1ccc" name="login"/>
    Email: <input id="login-email-address" type="text" value="Email address ..." onfocus="this.value=(this.value=='Email address ...')? '' : this.value ;" onblur="if (this.value == '') this.value = 'Email address ...';" size="15" name="email_address"/>
    Password: <input id="login-password" type="password" size="15" name="password"/>
    <input type="hidden" value="8682c8e2d1459ff9da73c49dd17236ce" name="securityToken"/>
    </form>
    and click submit button.

    4) A user will be directed back to the same place (will not be logged in). The only difference is that URL will change to f.ex.:
    https://amazingdiscoveries.org/store...cf6e0da29b1ccc



    When a user tries to log in again the same story repeats.

    The way to log in is to first click on any product (f.ex. http://amazingdiscoveries.org/store/...41f67333720ca8) or to delete ?zenid=b231ce7a01753cc8bbcf6e0da29b1ccc (sample id) from URL and log in again.

    Can you please help me to fix it. Or give me any suggestion which files should I look into for making changes.

  2. #2
    Join Date
    Feb 2009
    Location
    BC, Canada
    Posts
    10
    Plugin Contributions
    0

    Default Re: Customer log in issue

    Let me add one more thing. A webstore visitor cannot log in as long as all the links have zenid in get paramiters. As soon as zenid is cleared (in one of two ways describet in previous post) everything is as it should be.

    I don't know if it changes enything but we use SEO for Zen Cart.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Customer log in issue

    It's almost certainly your so-called "SEO" addon causing your problems.
    .

    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.

  4. #4
    Join Date
    Feb 2009
    Location
    BC, Canada
    Posts
    10
    Plugin Contributions
    0

    Default Re: Customer log in issue

    Thanks, you were right. After turning off Search Engine Optimization the problem is gone. Of course this is not a solution but now I know what is the cause of the problem.

  5. #5
    Join Date
    Feb 2009
    Location
    BC, Canada
    Posts
    10
    Plugin Contributions
    0

    Default Re: Customer log in issue

    Maybe someone will find it useful. The problem described above could be solved for our webstore by adding following three lines to includes/classes/seo.url.php to the end of SEO_URL class constructor:

    Code:
    if(!empty($this->attributes['SID']) && !empty($_COOKIE[zen_session_name()])) {
            $this->attributes['SID'] = '';
    }

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Customer log in issue

    Sounds like a dangerous edit to be making. Future readers are advised to use with caution.
    .

    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.

  7. #7
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Customer log in issue with SEO mod installed

    You should also state which SEO module you are using as well :)
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  8. #8
    Join Date
    Feb 2009
    Location
    BC, Canada
    Posts
    10
    Plugin Contributions
    0

    Default Re: Customer log in issue with SEO mod installed

    Quote Originally Posted by DrByte View Post
    Sounds like a dangerous edit to be making. Future readers are advised to use with caution.
    That's true, but as you said:

    "The zenid parameter is ONLY added by Zen Cart when the visitor's browser has not yet set a cookie to track that session ID. For most people, the 2nd click anywhere on your site causes the zenid parameters to disappear because the cookie has been set and takes over instead."

    and SEO_URL->attributes['SID'] variable is storing just zenid and it's used only for creating links.


    Quote Originally Posted by yellow1912 View Post
    You should also state which SEO module you are using as well :)
    "Ultimate SEO URLs For Zen Cart, version 2.101"

  9. #9
    Join Date
    May 2007
    Location
    San Diego, CA
    Posts
    4
    Plugin Contributions
    0

    Default Re: Customer log in issue with SEO mod installed

    I'm not sure if this helps but I found a solution for my "zenid" problem with Ultimate SEO Module.

    PROBLEM: I'm using the Ultimate SEO Module and my EZPages links are broken on the first visit to the site. This is because the zenid=xxxxxxx appends to the URI like
    index.php&zenid=xxxxxx
    I placed a regular expression in "includes/functions/html_output.php" to set the $separator variable to "?" when the URI ends with ".html" or ".php".
    if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) {
    while (strstr($link, '&&')) $link = str_replace('&&', '&', $link);

    $link = str_replace('&amp;', '/', $link);
    $link = str_replace('?', '/', $link);
    $link = str_replace('&', '/', $link);
    $link = str_replace('=', '/', $link);

    $separator = '?';
    }

    /* ===== BEGIN Fix for zenid =====*/

    // set "$separator" to "?" if URL ends with ".php" or ".html"
    if (ereg('\.php$', $link)) {
    $separator = '?';
    }
    if (ereg('\.html$', $link)) {
    $separator = '?';
    }
    /* ===== END Fix for zenid ===== */

    if (isset($sid)) {
    $link .= $separator . zen_output_string($sid);
    }

    // clean up the link after processing
    while (strstr($link, '&amp;&amp;')) $link = str_replace('&amp;&amp;', '&amp;', $link);

    $link = ereg_replace('&', '&amp;', $link);
    return $link;
    }
    I understand that we should not modify "html_output.php" directly because it can be overwritten by any updates. I found another thread on this forum that uses a copy of "init_general_funcs.php" in a subdirectory called "overrides". This file is modified to point to the new "html_output.php" file. I can't remember where I found it but I'm sure you can find it with a simple search.

  10. #10

    Default Re: Customer log in issue with SEO mod installed

    Hi

    Just wondering if anyone has used "smatric" bug fix with any success. this login issue will effect anyone using Chemos SEO URLS, if you want to keep your existing customers we will need to fix this problem. Oh how I wish i never used this mod in the first place

    Thanks!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Combine the order for customer mod with the customer tax exempt mod.
    By itcetera in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Jun 2014, 10:01 PM
  2. Log in as customer issue
    By MB1 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 27 Jul 2010, 02:24 AM
  3. Customer Log in Issue
    By dewispel in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Mar 2008, 05:36 PM
  4. wrong url on express checkout - SEO mod installed
    By hedgepig in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 3 Oct 2007, 09:03 AM
  5. Replies: 3
    Last Post: 23 Jul 2007, 06:58 PM

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