Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: "/ajax.php" adds itself to the navigation history

    Quote Originally Posted by DrByte View Post
    Simple: it didn't work properly.
    I tested the initial "dirty workaround" against the same environments I listed above (suPHP is used on the Debian box). Can you share which environment(s) it did not work in (so I can add it to my test environments - if possible)?

    Quote Originally Posted by DrByte View Post
    ... But, I know some people swear by them and don't even realize that the browser has a "back" button. Sigh.
    And there is my smile for the day! Currently communicating with a hosting provider who managed to get on one of the mx blacklists (and somehow I found out before they did - which is unusual).
    Last edited by lhungil; 13 Jan 2015 at 10:39 PM.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

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

    Default Re: "/ajax.php" adds itself to the navigation history

    Quote Originally Posted by lhungil View Post
    I tested the initial "dirty workaround" against the same environments I listed above (suPHP is used on the Debian box). Can you share which environment(s) it did not work in (so I can add it to my test environments - if possible)?
    We tested several environments, including developer machines and live hosting servers:
    Debian/Mac with PHP 5.6
    Ubuntu with PHP 5.5
    CentOS with PHP 5.3

    It started removing the wrong things the more we clicked around and added/removed things, and visited other pages, and logged on and logged off, etc, in various combinations, and then finally would just leave the navigation array completely empty, making the button do nothing.
    Last edited by DrByte; 13 Jan 2015 at 10:41 PM. Reason: symptoms
    .

    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. #13
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: "/ajax.php" adds itself to the navigation history

    Quote Originally Posted by DrByte View Post
    We tested several environments, including developer machines and live hosting servers:
    Debian/Mac with PHP 5.6
    Ubuntu with PHP 5.5
    CentOS with PHP 5.3
    Thank You!

    Time for me to add a CentOS box to my list :)
    Last edited by lhungil; 13 Jan 2015 at 10:43 PM.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

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

    Default Re: "/ajax.php" adds itself to the navigation history

    I changed the line number, the regex pattern, and added a return ... in my updated earlier post: http://www.zen-cart.com/showthread.p...99#post1269499
    .

    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.

  5. #15
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: "/ajax.php" adds itself to the navigation history

    Quote Originally Posted by DrByte View Post
    Can someone test whether this works reliably? /includes/classes/navigation_history.php Around line 32 add the highlighted lines:
    Code:
     function add_current_page() { 
     // don't put the ajax handler calls into nav history 
     if (preg_match('|ajax\.php$|', $_SERVER['SCRIPT_NAME']) && isset($_GET['act']) && $_GET['act'] != '') return; 
    global $request_type, $cPath;
    And also test on a Windows server too?
    Works fine on my local development server:

    Linux Mint 17.1

    Server OS: Linux 3.16.0-28-generic Database: MySQL 5.5.40-0ubuntu0.14.04.1
    Server Date: 14/01/2015 18:46:51 Database Date: 14/01/2015 18:46:51
    Server Up Time: Disabled/Unavailable HTTP Server: Apache/2.4.7 (Ubuntu)
    PHP Version: 5.5.9-1ubuntu4.5 (Zend: 2.5.0)

    Clicked around, back/forward button (Firefox), added to cart, updated cart items, logged out, logged in again, back/forward etc - all without problems....

    Cheers / Frank

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 0
    Last Post: 2 Jan 2011, 01:14 PM
  2. Editing the "tpl_product_info_display.php" to change the "call for Price" message
    By camospi13 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Sep 2010, 05:50 AM
  3. Please help, no "my account" or "order history"
    By jaypg1 in forum General Questions
    Replies: 15
    Last Post: 18 Oct 2009, 07:05 PM

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