Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2005
    Location
    Rochester, New York
    Posts
    165
    Plugin Contributions
    0

    Default Security Alert email

    I did the fixes to the 1.3.0.2 version of my cart and got this error:

    Parse error: parse error, unexpected T_STRING in /var/www/html/store/includes/functions/whos_online.php on line 102

    This is what I put in:

    $sql = "UPDATE " . TABLE_WHOS_ONLINE . "
    set session_id = '" . $new_session . "' WHERE session_id = '" . $old_session . "'";
    SET session_id = :newSessionID
    WHERE session_id = :oldSessionID";
    $sql = $db->bindVars($sql, ':newSessionID', $new_session, 'string');
    $sql = $db->bindVars($sql, ':oldSessionID', $old_session, 'string');
    $db->Execute($sql);

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Security Alert email

    you were supposed to replace the first SET line:

    $sql = "UPDATE " . TABLE_WHOS_ONLINE . "
    set session_id = '" . $new_session . "' WHERE session_id = '" . $old_session . "'";
    SET session_id = :newSessionID
    WHERE session_id = :oldSessionID";
    $sql = $db->bindVars($sql, ':newSessionID', $new_session, 'string');
    $sql = $db->bindVars($sql, ':oldSessionID', $old_session, 'string');
    $db->Execute($sql);
    delete that line and things should be fine
    .

    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.

  3. #3
    Join Date
    Nov 2005
    Location
    Rochester, New York
    Posts
    165
    Plugin Contributions
    0

    Default Re: Security Alert email

    Is that the same on the other fixes too? The red line really help me.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Security Alert email

    I have reworded the instructions in the announcment for you. Please refresh your browser when re-reading it.
    .

    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.

 

 

Similar Threads

  1. Security Alert question
    By countrycharm in forum General Questions
    Replies: 5
    Last Post: 13 Sep 2008, 06:34 AM
  2. v1.3.5 Security Alert
    By wilt in forum Zen Cart Release Announcements
    Replies: 1
    Last Post: 2 Oct 2006, 05:51 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