sijo 4 Posted March 26, 2010 I've just added the supertracker to my website but as soon as I add the lines to application_top.php I get the following error Warning: main(../../Backup files/includes/configure.php) [function.main]: failed to open stream: No such file or directory in /home/xxxxxx/public_html/includes/application_top.php on line 28 Fatal error: main() [function.require]: Failed opening required '../../Backup files/includes/configure.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxx/public_html/includes/application_top.php on line 28 Line 28 is this // include server parameters require('../../Backup files/includes/configure.php'); but I have no idea what this refers to as everything has worked fine before and this has always been part of that file. Any ideas why this error should occur and what I can do about it? Do you have a path that says Backup files/includes/ ? I have this in my application_top.php : // include server parameters require('includes/configure.php'); --------------- regards sijo --------------- Contrib: JMrating10 - Rate your products / osCommerce VTS - Virus & Threat Scanner (osCommerce VTS now also checks for leading and trailing whitespace and also have a grep function) Share this post Link to post Share on other sites
cmjennings21 0 Posted March 28, 2010 Do you have a path that says Backup files/includes/ ? I have this in my application_top.php : // include server parameters require('includes/configure.php'); Thanks, that sorted the error out. Now I just need to get it to record as there is nothing going into the Database? Share this post Link to post Share on other sites
minipassat 0 Posted March 29, 2010 Hello, This solved my problem too! Thank you very much for sharing! But there are still same problems (redirected to login page) if you choose "Last Ten Site Visitors" or "Product Viewed Report" from the drop down menu. These two pages hve the "filter" functions by giving the selection via drop down menu and the input textfield. This function didn't work and will be redirected to the login page. I believe this is related to the admin level access issue but can't find the solutions. Could you share how to fix? Thanks again!! I fixed it by editing the following code in catalog/admin/supertracker.php after line 125 : Replace: <option value=""><?php echo TABLE_TEXT_MENU_TEXTE; ?></option> <option value="supertracker.php?report=refer"><?php echo TEXT_TOP_REFERRERS; ?></option> <option value="supertracker.php?report=success_refer"><?php echo TEXT_TOP_SALES;?></option> <option value="supertracker.php?special=geo"><?php echo TEXT_VISITORS;?></option> <option value="supertracker.php?special=keywords"><?php echo TEXT_SEARCH_KEYWORDS;?></option> <option value="supertracker.php?special=keywords_last24"><?php echo TEXT_SEARCH_KEYWORDS_24;?></option> <option value="supertracker.php?special=keywords_last72"><?php echo TEXT_SEARCH_KEYWORDS_3;?></option> <option value="supertracker.php?special=keywords_lastweek"><?php echo TEXT_SEARCH_KEYWORDS_7;?></option> <option value="supertracker.php?special=keywords_lastmonth"><?php echo TEXT_SEARCH_KEYWORDS_30;?></option> <option value="supertracker.php?report=exit"><?php echo TEXT_TOP_EXIT_PAGES;?></option> <option value="supertracker.php?report=exit_added"><?php echo TEXT_TOP_EXIT_PAGES_NO_SALE;?></option> <option value="supertracker.php?report=ave_clicks"><?php echo TEXT_AVERAGE_CLICKS;?></option> <option value="supertracker.php?report=ave_time"><?php echo TEXT_AVERAGE_TIME_SPENT;?></option> <option value="supertracker.php?special=prod_coverage"><?php echo TEXT_PRODUCTS_VIEWED_REPORT;?></option> <!-- modifed by azer//--> <option value="supertracker.php?special=last_ten"><?php echo TEXT_LAST_TEN_VISITORS;?></option> <?php if (SUPERTRACKER_USE_PPC) {?> <option value="supertracker.php?special=ppc_summary"><?php echo TEXT_PPC_REFERRAL;?></option> With This: <div class="supertracker_text"> <?php echo TABLE_TEXT_MENU_DESC_TEXTE; ?> <form name="report_select"><select name="report_selector" onchange="page_redirect(this)"> <option value=""><?php echo TABLE_TEXT_MENU_TEXTE; ?></option> <?php //Begin compatibility with Admin Level Access ?> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&report=refer' ?>"><?php echo TEXT_TOP_REFERRERS; ?></option> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&report=success_refer' ?>"> <?php echo TEXT_TOP_SALES;?></option> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&special=geo' ?>"><?php echo TEXT_VISITORS;?></option> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&special=keywords' ?>"><?php echo TEXT_SEARCH_KEYWORDS;?></option> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&special=keywords_last24' ?>"><?php echo TEXT_SEARCH_KEYWORDS_24;?></option> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&special=keywords_last72' ?>"><?php echo TEXT_SEARCH_KEYWORDS_3;?></option> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&special=keywords_lastweek' ?>"><?php echo TEXT_SEARCH_KEYWORDS_7;?></option> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&special=keywords_lastmonth' ?>"><?php echo TEXT_SEARCH_KEYWORDS_30;?></option> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&report=exit' ?>"><?php echo TEXT_TOP_EXIT_PAGES;?></option> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&report=exit_added' ?>"><?php echo TEXT_TOP_EXIT_PAGES_NO_SALE;?></option> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&report=ave_clicks' ?>"><?php echo TEXT_AVERAGE_CLICKS;?></option> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&report=ave_time' ?>"><?php echo TEXT_AVERAGE_TIME_SPENT;?></option> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&special=prod_coverage' ?>"><?php echo TEXT_PRODUCTS_VIEWED_REPORT;?></option> <!-- modifed by azer//--> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&special=last_ten' ?>"><?php echo TEXT_LAST_TEN_VISITORS;?></option> <?php if (SUPERTRACKER_USE_PPC) {?> <option value="<?php echo $PHP_SELF . '?osCAdminID=' . $osCAdminID . '&special=ppc_summary' ?>"><?php echo TEXT_PPC_REFERRAL;?></option> <?php //End compatibility with Admin Level Access ?> Share this post Link to post Share on other sites
AndreD 0 Posted April 9, 2010 i too get this error : Fatal error: Call to a member function add_current_page() on a non-object in /home/eacarpar/public_html/includes/application_top.php on line 312 Anyone knows what causes this? - same browser on another computer can load just fine, but I'd rather not have my customers see this ! Share this post Link to post Share on other sites
fmco 0 Posted May 8, 2010 Great Contribution! I am hoping someone can please help me though. I am getting this error: Fatal error: error traversing database - perhaps it is corrupt? in xxxx/catalog/includes/geoip.inc on line 416 Admin side works fine from what I can tell. I've added the CityLite upgrade Fix. And now I'm stuck. I've tried, re-downloading the GeoLiteCity.dat file from MaxMind.com. (the binary form). I've double checked my file uploads... twice. Added the necessary fields in the db table for city, and region with varchar 100. I'm stuck. Any help is greatly appreciated. Share this post Link to post Share on other sites
jubez 0 Posted June 8, 2010 I've been using this add-on in my oscommerce store for quite some time, it's one of the most valuable apps I have ever used on my site! I am switching over to a Virtuemart store now, and can not find anything like this for virtuemart. How hard would it be to re-write the script for virtuemart?? You can also sell an app like this on virtuemart's website, I would definitely buy it! Thanks, Angie Share this post Link to post Share on other sites
bowen 1 Posted August 17, 2010 Hi, I am having an issue with supertracker 3.3. i have just installed it and all seemed ok....no errors and the database info shows it has info there, but when i select any of the fields from the drop down menu i get thrown back to the login screen?? any advice on how to fix this please?? cheers - Mark Share this post Link to post Share on other sites
artur78 0 Posted November 11, 2010 Hi Guys, I have been using this great contribution for some time now and it's been very useful. Recently I am getting this error when I go to my website: Fatal error: Cannot redeclare geoip_country_code_by_name() in /includes/geoip.inc on line 351 I don't really know what is going on, no changes made to the script neither the server. I t just came up with the error two days ago. I have commented out the code including suppertracker in aplication_top.php Does anyone know what is causing the problem? Share this post Link to post Share on other sites
artur78 0 Posted November 30, 2010 I still can't get this working properly. Any ideas guys? Share this post Link to post Share on other sites
montana_girl 0 Posted January 14, 2011 just got this error on my main page... 145 - Table './montanaw_osc/supertracker' is marked as crashed and should be repaired select * from supertracker where browser_string ='Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF)' and ip_address like '174.45%' and last_click > '2011-01-13 19:17:04' and this one shows in admin/supertracker how can i fix... Database Info: 145 - Table './montanaw_osc/supertracker' is marked as crashed and should be repaired select tracking_id, time_arrived from supertracker order by tracking_id ASC Share this post Link to post Share on other sites
@lex@nder 0 Posted January 21, 2011 I have an Issue with the version 3.4 Fatal error: Cannot redeclare draw_geo_graph() (previously declared in /Applications/XAMPP/xamppfiles/htdocs/oscommerce/catalog/admin/supertracker.php:35) in /Applications/XAMPP/xamppfiles/htdocs/oscommerce/catalog/admin/includes/languages/english/supertracker.php on line 52 some knows why this happen? Share this post Link to post Share on other sites
judas78 1 Posted May 7, 2011 i too get this error : Fatal error: Call to a member function add_current_page() on a non-object in /home/eacarpar/public_html/includes/application_top.php on line 312 Anyone knows what causes this? - same browser on another computer can load just fine, but I'd rather not have my customers see this ! Same heppens to me. Anyone knows what is happening? Share this post Link to post Share on other sites
germ 233 Posted May 7, 2011 Follow the links in my posts here: Click Me If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Share this post Link to post Share on other sites
judas78 1 Posted May 8, 2011 Follow the links in my posts here: Click Me Thank you very much. Share this post Link to post Share on other sites
apolyshow 5 Posted July 22, 2011 Good morning i am having a blank page when i am putting the code // Supertracker require(DIR_WS_CLASSES . 'supertracker.php'); $tracker = new supertracker; $tracker->update(); to catalog/includes/application_top.php . What can i do? When i am deleting everything is ok. 1 spc456 reacted to this One amateur made the Arc, 5.000 pro made the Titanic... Share this post Link to post Share on other sites
apolyshow 5 Posted July 22, 2011 Fix it now , and everything looks fine. One amateur made the Arc, 5.000 pro made the Titanic... Share this post Link to post Share on other sites
Toasted 0 Posted July 27, 2011 (edited) Im getting the following error: Fatal error: Call to a member function count_contents() on a non-object in mysite.com/admin/includes/classes/supertracker.php on line 122 How do I fix this? Edited July 27, 2011 by Toasted Share this post Link to post Share on other sites
Toasted 0 Posted July 27, 2011 Heres my code Line 101 //Having worked out if we have a new or existing user session lets record some details....! if ($existing_session) { //Existing tracked session, so just update relevant existing details $tracking_data = tep_db_fetch_array($result); $tracking_id = $tracking_data['tracking_id']; $products_viewed=$tracking_data['products_viewed']; $added_cart = $tracking_data['added_cart']; $completed_purchase = $tracking_data['completed_purchase']; $num_clicks = $tracking_data['num_clicks']+1; $categories_viewed = unserialize($tracking_data['categories_viewed']); $cart_contents = unserialize($tracking_data['cart_contents']); $cart_total = $tracking_data['cart_total']; $order_id = $tracking_data['order_id']; if (isset($customer_id)) $cust_id=$customer_id; else $cust_id=$tracking_data['customer_id']; $current_page=addslashes(tep_db_input(urldecode($_SERVER['PHP_SELF']))); $last_click = date('Y-m-d H:i:s'); Line 121 //Find out if the customer has added something to their cart for the first time Line 122 if (($added_cart!='true') && ($cart->count_contents()>0)) $added_cart = 'true'; //Has a purchase just been completed? if ((strstr($current_page, 'checkout_success.php'))&& ($completed_purchase!='true')) { $completed_purchase='true'; $order_q = "select orders_id from orders where customers_id = '" . $cust_id . "' ORDER BY date_purchased DESC"; $order_result = tep_db_query($order_q); if (tep_db_num_rows($order_result) > 0) { $order_row = tep_db_fetch_array($order_result); Line 131 $order_id = $order_row['orders_id']; } } Share this post Link to post Share on other sites
countrygirlcandles 1 Posted July 27, 2011 I am getting alot of these errors at the top of my main page any ideas on how to fix it? [27-Jul-2011 18:25:37] PHP Deprecated: Function eregi() is deprecated in /home/country/public_html/includes/classes/supertracker.php on line 216 [26-Jul-2011 16:41:56] PHP Deprecated: Function eregi() is deprecated in /home/country/public_html/includes/classes/supertracker.php on line 42 1 maxemus reacted to this Share this post Link to post Share on other sites
ftrippie 0 Posted December 26, 2011 Hi, This addon is working perfectly for me for my spanish site. But now trying to watch the site from the Netherlands, it fails with a SQL error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's-heerenberg', '', '','/noneedtoknow.html','/product_info.php','2011-12-26 1' at line 1 INSERT INTO `supertracker` (`ip_address`, `browser_string`, `country_code`, `country_name`, `country_region`, `country_city`, `referrer`,`referrer_query_string`,`landing_page`,`exit_page`,`time_arrived`,`last_click`,`browser`) VALUES ('ip-noneedtoknow','Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0','nl', 'Netherlands', 'Gelderland', ''s-heerenberg', '', '','/noneedtoknow.html','/product_info.php','2011-12-26 11:41:55','2011-12-26 11:41:55','Mozilla Firefox') I think I know exactly where it comes from; the city it found starts with a comma ('s-heerenberg) and therefore confuses the comma-delimited input. Anybody knows how to solve that (check and remove commas from the inputfields)? Cheers! Share this post Link to post Share on other sites
ftrippie 0 Posted December 26, 2011 Right, sorted already. Just added it to be stripped in the /includes/classes/supertracker.php: $city_name= preg_replace('/[\']/', '', $city_name); Cheers Share this post Link to post Share on other sites
vmjarala 1 Posted January 12, 2012 Hi! I am posting this at the risk of sounding like a complete newbie. BUT I followed the links on the installation file and only got to MaxMind to poke around and not find the downloads nor how to create an account. I was only able to dowload the CSV version of CityLite. In reading through many pages of this forum, all I could do was confirm that I actually need the binary version to upload, am I right in thinking this? What really obvious part did I miss? THANKS! Veroncia Share this post Link to post Share on other sites
vmjarala 1 Posted January 12, 2012 Sorry! I had to post to this thread, so then I could turn around and find what I needed. Share this post Link to post Share on other sites
rabon33 3 Posted January 29, 2012 Hi! I am posting this at the risk of sounding like a complete newbie. BUT I followed the links on the installation file and only got to MaxMind to poke around and not find the downloads nor how to create an account. I was only able to dowload the CSV version of CityLite. In reading through many pages of this forum, all I could do was confirm that I actually need the binary version to upload, am I right in thinking this? What really obvious part did I miss? THANKS! Veroncia http://www.maxmind.com/app/geoip_country http://www.maxmind.com/app/geolitecity Share this post Link to post Share on other sites
♥DunWeb 921 Posted January 29, 2012 I am getting alot of these errors at the top of my main page any ideas on how to fix it? [27-Jul-2011 18:25:37] PHP Deprecated: Function eregi() is deprecated in /home/country/public_html/includes/classes/supertracker.php on line 216 [26-Jul-2011 16:41:56] PHP Deprecated: Function eregi() is deprecated in /home/country/public_html/includes/classes/supertracker.php on line 42 Deprecated ereg error correction: Line 42 is this: if (eregi($bot, $agent)) { Change it to this: if (preg_match('/$bot/', '/$agent/')) { Line 216 is this: if (eregi($pattern, $user_agent)) change it to this: if (preg_match('/$pattern/', '/$user_agent/')) Chris :|: Was this post helpful ? Click the LIKE THIS button :|: See my Profile to learn more about add ons, templates, support plans and custom coding (click here) Share this post Link to post Share on other sites