Results 1 to 10 of 858

Hybrid View

  1. #1
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: User tracking mod

    Thanks for the updates. Just upgraded to 1.4.3b and I am getting the following error:
    [26-Nov-2013 08:54:28 America/New_York] PHP Fatal error: Call to undefined function right() in /includes/functions/extra_functions/user_tracking.php on line 78
    This means your change suggested above is not included in the downloaded mod. Here is the code from lines 78 and 79:
    PHP Code:
    while (strpos(right($wo_last_page_url1), '\\') !== false) {
            
    $wo_last_page_url substr($wo_last_page_url0, -1);    
        } 
    Once I applied your change I started getting another error:
    [26-Nov-2013 09:01:45 America/New_York] PHP Fatal error: Call to undefined function right() in /includes/functions/extra_functions/user_tracking.php on line 84
    I believe this is because you erroneous use "right" in this section of the code:
    PHP Code:
    /* Start - User tracking v1.4.3b modification*/
        
    while (strpos(right($wo_last_page_url1), '\\') !== false) {
            
    $wo_last_page_url substr($wo_last_page_url0, -1);    
        }
        
    /* End - User tracking v1.4.3b modification*/

        /* Start - User tracking v1.4.3b modification*/
        
    while (strpos(right($referer_url1), '\\') !== false) {
            
    $referer_url substr($referer_url0, -1);    
        }
        
    /* End - User tracking v1.4.3b modification*/ 
    Can you please kindly provide the fix for that? Thanks!

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: User tracking mod

    Quote Originally Posted by BlessIsaacola View Post
    Thanks for the updates. Just upgraded to 1.4.3b and I am getting the following error: This means your change suggested above is not included in the downloaded mod. Here is the code from lines 78 and 79:
    PHP Code:
    while (strpos(right($wo_last_page_url1), '\\') !== false) {
            
    $wo_last_page_url substr($wo_last_page_url0, -1);    
        } 
    Once I applied your change I started getting another error:I believe this is because you erroneous use "right" in this section of the code:
    PHP Code:
    /* Start - User tracking v1.4.3b modification*/
        
    while (strpos(right($wo_last_page_url1), '\\') !== false) {
            
    $wo_last_page_url substr($wo_last_page_url0, -1);    
        }
        
    /* End - User tracking v1.4.3b modification*/

        /* Start - User tracking v1.4.3b modification*/
        
    while (strpos(right($referer_url1), '\\') !== false) {
            
    $referer_url substr($referer_url0, -1);    
        }
        
    /* End - User tracking v1.4.3b modification*/ 
    Can you please kindly provide the fix for that? Thanks!
    See last post on previous page. http://www.zen-cart.com/showthread.p...03#post1228003
    I had uploaded a more recent rev b, but apparently the earlier version made it. Conceptually I had the right idea, but implemented the wrong version of coding for it to work in PHP and provided that change here in case things went amiss.

    In playing with the changes made I also found a problem in user_tracking_config.php where a variable $gID is used in place of $UserTrackgID. I'll make the change and upload a newer version as well. Maybe I can do this upload one time right the first time.

    It was a little difficult to test a problem I personally was not experiencing, but found a way using information you had provided. So thank you for that.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: User tracking mod

    Quote Originally Posted by mc12345678 View Post
    See last post on previous page. http://www.zen-cart.com/showthread.p...03#post1228003
    I had uploaded a more recent rev b, but apparently the earlier version made it. Conceptually I had the right idea, but implemented the wrong version of coding for it to work in PHP and provided that change here in case things went amiss.

    In playing with the changes made I also found a problem in user_tracking_config.php where a variable $gID is used in place of $UserTrackgID. I'll make the change and upload a newer version as well. Maybe I can do this upload one time right the first time.

    It was a little difficult to test a problem I personally was not experiencing, but found a way using information you had provided. So thank you for that.
    The last set of the code you provided in the link is still problematic because of the two instances of this: strpos(right I will wait for your upload. I have disabled the mod on the Admin side and that seems to stop the madness. Before disabling it, I had 100+ error in the log in less than 2 minutes.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: User tracking mod

    Quote Originally Posted by BlessIsaacola View Post
    The last set of the code you provided in the link is still problematic because of the two instances of this: strpos(right I will wait for your upload. I have disabled the mod on the Admin side and that seems to stop the madness. Before disabling it, I had 100+ error in the log in less than 2 minutes.
    Dag goneit, I hate making errors.

    Code:
    /* Start - User tracking v1.4.3b modification*/
        while (strpos(substr($wo_last_page_url, -1), '\\') !== false) {
            $wo_last_page_url = substr($wo_last_page_url, 0, -1);    
        }
        /* End - User tracking v1.4.3b modification*/
    
        /* Start - User tracking v1.4.3b modification*/
        while (strpos(substr($referer_url, -1), '\\') !== false) {
            $referer_url = substr($referer_url, 0, -1);    
        }
        /* End - User tracking v1.4.3b modification*/
    Sheesh, guess I had a long weekend. Sorry to inflict so much confusion. Will repost the total corrected code shortly. I must have not copied over the change properly when posting and then fed the site the wrong update. Sorry Zenners.
    Last edited by mc12345678; 26 Nov 2013 at 06:26 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. User Tracking Mod only shows the Admin Session
    By Griff1324 in forum General Questions
    Replies: 6
    Last Post: 29 May 2008, 10:56 PM
  2. User Tracking Mod issue: repeated Logins: Admin: View Sessions
    By dharma in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 20 Feb 2008, 04:48 AM
  3. Search log mod vs. user tracking
    By ashton0603 in forum General Questions
    Replies: 4
    Last Post: 30 Jan 2008, 08:43 AM
  4. Google Analytics vs User Tracking mod
    By miles in forum General Questions
    Replies: 1
    Last Post: 15 Jun 2007, 10:09 AM

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