Zen Cart Logo
Forums / All Other Contributions/Addons / User tracking mod

User tracking mod

Views: 183,783

Results 821 to 840 of 861
7 Feb 2018, 11:15 AM
#821
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

User tracking mod

I think you looked in the wrong directory:
admin/includes/auto_loaders

In a default install of this module, there would be two files beginning with config.user_tracking present.

Also, in the future, please use code tags when posting code. They are generated when clicking the # button in the message box toolbar.

Deletion of a file simply named config.user_tracking.php from either catalog or admin will prevent data collection of the module.

7 Feb 2018, 11:30 AM
#822
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Re: User tracking mod

You're right. Thank you very much, problem solved.

Really appreciate you help.

good day.

7 Feb 2018, 12:44 PM
#823
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

solo_400:

You're right. Thank you very much, problem solved.

Really appreciate you help.

good day.

Actually, not quite. The symptom of the problem has been solved, but the problem is still in a combination of your server's configuration and the plugin_support.php file.

With the following error log:

Trying http instead.,  /var/www/html/mywebsite/includes/functions/plugin_support.php, 72, Array  ([plugin_file_id] => 159,[version_string_to_compare] =>  1.5.8,[new_version_available] => ,[lookup_index] => 0,[url1] =>  [URL]https://plugins.zen-cart.com/versioncheck/159[/URL],[url2] => [URL]https://www.zen-cart.com/versioncheck/159[/URL],[ch] => Resource id #175,[response] => ,[error] => SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate  verify failed,[errno] => 60,[ctx] => Resource id  #176,[http_response_header] => Array ([0] => HTTP/1.0 400 Bad  Request,[1] => Date: Wed, 07 Feb 2018 10:35:24 GMT,[2] => Server:  Apache/2.4.18 (Ubuntu),[3] => Cache-Control: private,  must-revalidate,[4] => pragma: no-cache,[5] => expires: -1,[6]  => X-RateLimit-Limit: 60,[7] => X-RateLimit-Remaining: 57,[8]  => Content-Length: 60,[9] => Connection: close,[10] =>  Content-Type: application/json)))
#1  trigger_error(file_get_contents() error checking plugin versions.
Trying http instead.) called at [/var/www/html/mywebsite/includes/functions/plugin_support.php:72]
#2  plugin_version_check_for_updates(159, 1.5.8) called at  [/var/www/html/mywebsite/myadmin/includes/init_includes/init_user_tracking.php:164]
#3   require(/var/www/html/mywebsite/myadmin/includes/init_includes/init_user_tracking.php)  called at [/var/www/html/mywebsite/includes/autoload_func.php:48]
#4  require(/var/www/html/mywebsite/includes/autoload_func.php) called  at [/var/www/html/mywebsite/myadmin/includes/application_top.php:171]
#5   require(/var/www/html/mywebsite/myadmin/includes/application_top.php)  called at [/var/www/html/mywebsite/myadmin/index.php:10]

[07-Feb-2018 12:35:25] PHP Notice:  file_get_contents() error checking plugin versions.
Trying http instead. in /var/www/html/mywebsite/includes/functions/plugin_support.php on line 72
[07-Feb-2018 12:35:25] Request URI: /mywebsite/myadmin/index.php, IP address: xxx.xxx.xxx.xxx
, /var/www/html/mywebsite/includes/functions/plugin_support.php, 73,  Array ([plugin_file_id] => 159,[version_string_to_compare] =>  1.5.8,[new_version_available] => ,[lookup_index] => 0,[url1] =>  [URL]https://plugins.zen-cart.com/versioncheck/159[/URL],[url2] => [URL]https://www.zen-cart.com/versioncheck/159[/URL],[ch] => Resource id #175,[response] => ,[error] => SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate  verify failed,[errno] => 60,[ctx] => Resource id  #176,[http_response_header] => Array ([0] => HTTP/1.0 404 Not  Found,[1] => Date: Wed, 07 Feb 2018 10:35:25 GMT,[2] => Server:  Apache/2.4.18 (Ubuntu),[3] => Cache-Control: no-cache, private,[4]  => Connection: close,[5] => Content-Type: text/html;  charset=UTF-8)))
#1  file_get_contents([URL]http://plugins.zen-cart.com/versioncheck/159[/URL], , Resource id #176) called at [/var/www/html/mywebsite/includes/functions/plugin_support.php:73]
#2  plugin_version_check_for_updates(159, 1.5.8) called at  [/var/www/html/mywebsite/myadmin/includes/init_includes/init_user_tracking.php:164]
#3   require(/var/www/html/mywebsite/myadmin/includes/init_includes/init_user_tracking.php)  called at [/var/www/html/mywebsite/includes/autoload_func.php:48]
#4  require(/var/www/html/mywebsite/includes/autoload_func.php) called  at [/var/www/html/mywebsite/myadmin/includes/application_top.php:171]
#5   require(/var/www/html/mywebsite/myadmin/includes/application_top.php)  called at [/var/www/html/mywebsite/myadmin/index.php:10]

[07-Feb-2018 12:35:25] PHP Warning:  file_get_contents([URL="http://plugins.zen-cart.com/versioncheck/159%29:"]http://plugins.zen-cart.com/versioncheck/159):[/URL] failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
 in /var/www/html/mywebsite/includes/functions/plugin_support.php on line 73
[07-Feb-2018 12:35:25] Request URI: /mywebsite/myadmin/index.php, IP address: xxx.xxx.xxx.xxx
Aborting.,  /var/www/html/mywebsite/includes/functions/plugin_support.php, 76, Array  ([plugin_file_id] => 159,[version_string_to_compare] =>  1.5.8,[new_version_available] => ,[lookup_index] => 0,[url1] =>  [URL]https://plugins.zen-cart.com/versioncheck/159[/URL],[url2] => [URL]https://www.zen-cart.com/versioncheck/159[/URL],[ch] => Resource id #175,[response] => ,[error] => SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate  verify failed,[errno] => 60,[ctx] => Resource id  #176,[http_response_header] => Array ([0] => HTTP/1.0 404 Not  Found,[1] => Date: Wed, 07 Feb 2018 10:35:25 GMT,[2] => Server:  Apache/2.4.18 (Ubuntu),[3] => Cache-Control: no-cache, private,[4]  => Connection: close,[5] => Content-Type: text/html;  charset=UTF-8)))
#1  trigger_error(file_get_contents() error checking plugin versions.
Aborting.) called at [/var/www/html/mywebsite/includes/functions/plugin_support.php:76]
#2  plugin_version_check_for_updates(159, 1.5.8) called at  [/var/www/html/mywebsite/myadmin/includes/init_includes/init_user_tracking.php:164]
#3   require(/var/www/html/mywebsite/myadmin/includes/init_includes/init_user_tracking.php)  called at [/var/www/html/mywebsite/includes/autoload_func.php:48]
#4  require(/var/www/html/mywebsite/includes/autoload_func.php) called  at [/var/www/html/mywebsite/myadmin/includes/application_top.php:171]
#5   require(/var/www/html/mywebsite/myadmin/includes/application_top.php)  called at [/var/www/html/mywebsite/myadmin/index.php:10]

[07-Feb-2018 12:35:25] PHP Notice:  file_get_contents() error checking plugin versions.
Aborting. in /var/www/html/mywebsite/includes/functions/plugin_support.php on line 76

One can look through the includes/functions/plugin_support.php file and see what is going on (although it is not specifically clear what rendition of ZC 1.5.5 is being used):
For example the ZC 1.5.5f version of that file has been rewritten to use an overrideable admin class and does not include quite the same checks as seen in the above path. It also shows that there are modifications coming to the plugin version check capability to require some specific information be sent to the server in order to respond with appropriate data (that is addressed/covered in the VersionServer class). Anyways, either there is something wrong with your server, there are restrictions in place that prevent any of the four methods in your plugin_support file from doing a version check and or when the file is in place there is either a database define missing or the plugin check setting in the admin for user tracking was on and should be turned off until the above issue is resolved by some other means... (ie. Upgrade the plugin check process to what is used by ZC 1.5.5f, the entire store to that version, etc...)

9 Feb 2018, 8:52 AM
#824
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Re: User tracking mod

Thank you. My ZC version is (You are presently using: v1.5.5) without any letter ( a or f ) . I would say first 1.5.5 version.

My server is for testing purpose and is not hosted by any provider. Could be this the real problem ?

I hope in not having any issue when I put the new user tracking on live server.

9 Feb 2018, 12:48 PM
#825
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

solo_400:

Thank you. My ZC version is (You are presently using: v1.5.5) without any letter ( a or f ) . I would say first 1.5.5 version.

My server is for testing purpose and is not hosted by any provider. Could be this the real problem ?

I hope in not having any issue when I put the new user tracking on live server.

Well regardless of having a host or not, the system on which it is currently installed is having some form of an issue executing the communication outside. Local servers though would tend to have the issue. If your live site is able to check for updates without error, then the version checking performed by this module is expected to also have no issues.

Having 1.5.5 only at the top right does indicate that the software version currently installed is reported to be 1.5.5 (no sub-version). There have been 6 cases of changes to that software made since then and it would be advised to incorporate those changes by a one time upgrade to 1.5.5f if continuing to work with 1.5.5 of any version.

4 Jul 2018, 5:59 PM
#826
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

Re: User tracking mod

I installed this mod on afresh installation of Zen Cart 1.5.5f, I added the lines of code for the admin and the storefront

<?php $zco_notifier->notify('NOTIFY_ADMIN_FOOTER_END'); ?>

and

<?php $zco_notifier->notify('NOTIFY_FOOTER_END'); ?>

respectively, but i am only tracking admin pages and no tracking of storefront pages.

Another problem i am getting not found when i click on"User Tracking Config",I searched the mod files but i could not find the file user_tracking_config.php, Where is it located?

4 Jul 2018, 6:31 PM
#827
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

TamyA:

I installed this mod on afresh installation of Zen Cart 1.5.5f, I added the lines of code for the admin and the storefront

<?php $zco_notifier->notify('NOTIFY_ADMIN_FOOTER_END'); ?>

and

<?php $zco_notifier->notify('NOTIFY_FOOTER_END'); ?>

respectively, but i am only tracking admin pages and no tracking of storefront pages.

Another problem i am getting not found when i click on"User Tracking Config",I searched the mod files but i could not find the file user_tracking_config.php, Where is it located?
In ZC 1.5.5, there is no additional action for the catalog side (ie. do not have to do anything to add $zco_notifier->notify('NOTIFY_FOOTER_END', $current_page_base); which is located in includes/templates/template_default/common/tpl_main_page.php and includes/templates/responsive_classic/common/tpl_main_page.php

As to User Tracking Config, that feature is added as part of the installation which generates configuration options to be selected from the configuration menu. As stated in a thread where installation appeared to occur continuously the install files need to be installed in their correct location (and also not in their incorrect location) to be able to perform the installation one time and one time only... Again, request to verify that the files located within the YOUR_ADMIN directory are not also duplicated to the catalog side.

For example, the following files should not be found on the catalog side:
includes/auto_loaders/config.user_tracking_install.php
includes/init_includes/init_user_tracking.php
includes/languages/english/user_tracking.php
includes/languages/english/extra_definitions/user_tracking.php
Also, the following files should be removed from the admin side of the store if a previous version had been installed. In particular if the server does not support/allow unlinking (deleting) files by code. The most recent
version does not include code files that were previously included as the code has been moved into other areas. Which if this is/was a fresh install of ZC with a fresh install of User tracking (no database entries existing from a previous version), then the only database related action of the version install would be to update the version number and none of the actions in the 1.5.8.php version file would be executed.

So more specifically: admin/init_includes/init_user_tracking.php initiates the install process and then it is in the version 1.5.3 installer where the configuration menu is first installed and it is then edited as necessary in later versions.

4 Jul 2018, 7:38 PM
#828
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

Re: User tracking mod

mc12345678:

In ZC 1.5.5, there is no additional action for the catalog side (ie. do not have to do anything to add $zco_notifier->notify('NOTIFY_FOOTER_END', $current_page_base); which is located in includes/templates/template_default/common/tpl_main_page.php and includes/templates/responsive_classic/common/tpl_main_page.php

As to User Tracking Config, that feature is added as part of the installation which generates configuration options to be selected from the configuration menu. As stated in a thread where installation appeared to occur continuously the install files need to be installed in their correct location (and also not in their incorrect location) to be able to perform the installation one time and one time only... Again, request to verify that the files located within the YOUR_ADMIN directory are not also duplicated to the catalog side.

For example, the following files should not be found on the catalog side:
includes/auto_loaders/config.user_tracking_install.php
includes/init_includes/init_user_tracking.php
includes/languages/english/user_tracking.php
includes/languages/english/extra_definitions/user_tracking.php
Also, the following files should be removed from the admin side of the store if a previous version had been installed. In particular if the server does not support/allow unlinking (deleting) files by code. The most recent
version does not include code files that were previously included as the code has been moved into other areas. Which if this is/was a fresh install of ZC with a fresh install of User tracking (no database entries existing from a previous version), then the only database related action of the version install would be to update the version number and none of the actions in the 1.5.8.php version file would be executed.

So more specifically: admin/init_includes/init_user_tracking.php initiates the install process and then it is in the version 1.5.3 installer where the configuration menu is first installed and it is then edited as necessary in later versions.

I just downloaded the plugin again, unzipped it, change
"YOURADMIN" to my admin Directory name, Dragged the 2 folders (includes and admin) to the root of my store and the same result again.

Also i got some extra this time and these will load on top of the admin page unless i delete the files from Admin/includes/installers/user_tracking/.

Updated sort order configuration for User Tracking
Installed User Tracking v1.5.3
Installed User Tracking v1.5.4
Installed User Tracking v1.5.5
Installed User Tracking v1.5.6
Installed User Tracking v1.5.7
Installed User Tracking v1.5.8
4 Jul 2018, 8:44 PM
#829
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

TamyA:

I just downloaded the plugin again, unzipped it, change
"YOURADMIN" to my admin Directory name, Dragged the 2 folders (includes and admin) to the root of my store and the same result again.

Also i got some extra this time and these will load on top of the admin page unless i delete the files from Admin/includes/installers/user_tracking/.

Updated sort order configuration for User Tracking |

  Installed User Tracking v1.5.3 | 
  Installed User Tracking v1.5.4 | 
  Installed User Tracking v1.5.5 | 
  Installed User Tracking v1.5.6 | 
  Installed User Tracking v1.5.7 | 
  Installed User Tracking v1.5.8 | 

Ok, so let's go a little more systematically.

Please identify all of the files located in the following directories:
catalog/includes/auto_loaders
catalog/init_includes

I just installed it on a ZC 1.5.5a site, received an initial report upon first admin navigation, but did not receive any further user tracking notifications.

7 Jul 2018, 1:25 PM
#830
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

Re: User tracking mod

Problem Solved.

I uninstalled the database configuration using the SQL provided with the mod and installed again. Thanks.

7 Jul 2018, 2:52 PM
#831
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

TamyA:

Problem Solved.

I uninstalled the database configuration using the SQL provided with the mod and installed again. Thanks.
Unfortunately, some of the earlier installation process steps had a tendency to leave behind some remnants that could get in the way of an upgrade install where it may not have been realized to be an upgrade... ie. if the software had previously been installed or attempted to be installed to the database, but then not fully removed (even if the removal instruction of the time were followed). Happens and why it is part of the instructions when problems have been identified with installation and why it was suggested in the previous referenced thread.

1 Jan 2019, 9:33 PM
#832
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: User tracking mod

Will this plugin run on ZC 1.5.6?

2 Jan 2019, 7:46 PM
#833
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

jodean:

Will this plugin run on ZC 1.5.6?
Yes and no... I installed it to a store that is running PHP 7.2 and strict error reporting and had a few debug logs to address. I did also notice that the visualization of the results needed something other than the default store's table structure. At any rate, I've updated github for the moment to account for all of the minor notifications provided and to add in a table structure that at least provides a way to sensibly look at the data. Should be modified to use more of a responsive design, but haven't worked on that yet...

Anyways, latest test of it can be seen: https://github.com/mc12345678/User_Tracking

Currently Version 1.5.9 on GitHub.
I hadn't yet updated the geoip data nor added flags for a few of the newly identified countries... As usual, the instructions have not yet been updated significantly. I have roughly identified in the installation file what has been modified in the package.

30 Jul 2019, 12:20 AM
#834
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,686
Plugin Contributions:
56

Re: User tracking mod

Note that the READFIRST.txt file references an upgrading document which no longer exists.

26 Nov 2019, 10:21 PM
#835
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,686
Plugin Contributions:
56

Re: User tracking mod

The data collected by this mod seems to grow without bounds - has there been any consideration to trimming the user_tracking table? Perhaps more recent versions of this mod already do this and I'm looking at old code?

26 Nov 2019, 11:55 PM
#836
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

swguy:

The data collected by this mod seems to grow without bounds - has there been any consideration to trimming the user_tracking table? Perhaps more recent versions of this mod already do this and I'm looking at old code?

Ummm, yeah, six years ago delete capability was added first in version 1.4.3... Yeah, old code indeed...

27 Nov 2019, 12:04 AM
#837
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,686
Plugin Contributions:
56

Re: User tracking mod

I was hoping for something automatic.

27 Nov 2019, 12:16 AM
#838
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: User tracking mod

swguy:

I was hoping for something automatic.
Is on a todo list, though have always wondered to what extent it would occur: every admin page change, every visit by a visitor, when the plugin is activated to see the results? Even with that, say if someone wanted to keep data for a relatively extended period, once a month, once a week, etc...

Make it cron capable only? So many options, positive and negative.

27 Nov 2019, 12:40 AM
#839
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,686
Plugin Contributions:
56

Re: User tracking mod

Noodle on it as a suggestion. The reason it came up is that someone had an old user_tracking table (likely created in 1.3.x) but a 1.5 installation without the software, so I had no way of getting in an trimming the table from the admin (it's easy enough to use phpMyAdmin of course, which is what I wound up doing).

1 Jan 2021, 1:42 PM
#840
markau avatar

markau

New Zenner

Join Date:
Oct 2020
Location:
australia
Posts:
31
Plugin Contributions:
0

Re: User tracking mod

mc12345678:

Yes and no... I installed it to a store that is running PHP 7.2 and strict error reporting and had a few debug logs to address. I did also notice that the visualization of the results needed something other than the default store's table structure. At any rate, I've updated github for the moment to account for all of the minor notifications provided and to add in a table structure that at least provides a way to sensibly look at the data. Should be modified to use more of a responsive design, but haven't worked on that yet...

Anyways, latest test of it can be seen: https://github.com/mc12345678/User_Tracking

Currently Version 1.5.9 on GitHub.
I hadn't yet updated the geoip data nor added flags for a few of the newly identified countries... As usual, the instructions have not yet been updated significantly. I have roughly identified in the installation file what has been modified in the package.

Will this plugin run on ZC 1.5.7?