lildog Posted October 10, 2007 Author Share Posted October 10, 2007 Sashaben, I think I found it. try this: in catalog/admin/contrib_tracker.php FIND: tep_db_query("update " . TABLE_CONTRIB_TRACKER . " set contr_last_modified = now(), status = '" . $status . "',contrib_name = '" . $contrib_name_new . "', contrib_link = '" . $contrib_link_new . "', config_comments = '" . $config_comments . "', last_update = '" . $last_update . "', contrib_vers= '" . $contrib_vers . "' where contr_id = '" . $HTTP_POST_VARS['contr_id'] . "'"); REPLACE with: // tep_db_query("update " . TABLE_CONTRIB_TRACKER . " set contr_last_modified = now(), status = '" . $status . "',contrib_name = '" . $contrib_name_new . "', contrib_link = '" . $contrib_link_new . "', config_comments = '" . $config_comments . "', last_update = '" . $last_update . "', contrib_vers= '" . $contrib_vers . "' where contr_id = '" . $HTTP_POST_VARS['contr_id'] . "'"); tep_db_query("update " .TABLE_CONTRIB_TRACKER . " set contr_last_modified = now(), status = '" . $HTTP_POST_VARS['status'] . "',contrib_name = '" . $HTTP_POST_VARS['contrib_name_new'] . "', contrib_link = '" . $HTTP_POST_VARS['contrib_link_new'] . "', config_comments = '" . $HTTP_POST_VARS['config_comments'] . "', last_update = '" .$last_update. "', contrib_vers= '" . $HTTP_POST_VARS['contrib_vers'] . "' where contr_id = '" . $HTTP_POST_VARS['contr_id'] . "'"); FIND: case 'update': if ($old_status!='1' && $status=='1'){ $last_update=date("Y-m-d H:M:S"); } REPLACE WITH: case 'update': // if ($old_status!='1' && $status=='1'){ // $last_update=date("Y-m-d H:M:S"); // } ($old_status!='1' && $status=='1') ? $last_update=date("Y-m-d H:M:S") : $last_update=$HTTP_POST_VARS['last_update']; Quote Link to comment Share on other sites More sharing options...
sashaben Posted October 10, 2007 Share Posted October 10, 2007 Thanks so much for your help! Seems to have done the job :) Quote Link to comment Share on other sites More sharing options...
oldschoo Posted October 19, 2007 Share Posted October 19, 2007 Will someone please help me with setting up the cronjob. I know you do this through cpan. I do not understand the correct code to do this? I have searched the web and find some help. But, what I need to know is EXACTLY what to put in the command to run line. thank you for any help Quote Link to comment Share on other sites More sharing options...
oldschoo Posted October 19, 2007 Share Posted October 19, 2007 Help, please with this error: I have installed this contribution, everything but the cronjob. It does show up in my admin panel. When I open the fine catalog/contrib_tracker.php from my cpan, file manager, I get the following error" Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/shop/rsscache/contrib_rss.html) is not within the allowed path(s): (/home/marquard/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/marquard/public_html/shop/includes/functions/contrib_tracker.php on line 23 Warning: fopen(/shop/rsscache/contrib_rss.html) [function.fopen]: failed to open stream: Operation not permitted in /home/marquard/public_html/shop/includes/functions/contrib_tracker.php on line 23 Warning: curl_setopt(): supplied argument is not a valid File-Handle resource in /home/marquard/public_html/shop/includes/functions/contrib_tracker.php on line 24 en http://www.oscommerce.com osCommerce, Open Source E-Commerce Solutions Copyright (c) 2007 osCommerce hpdl@oscommerce.com http://www.oscommerce.com/images/oscommerce_88x31.gif http://www.oscommerce.com http://addons.oscommerce.com/info/1077 I've attached an updated CGIF class which is available from http://sourceforge.net/tracker/index.php?func=detail&aid=1537502&group_id=114602&atid=668888]]> Sat, 29 Sep 2007 10:50:20 -0400 http://addons.oscommerce.com/info/1540 This is a FULL PACKAGE and can be used for 3 languages (english, german and dutch). I have also updated the readme. Many thanks to Matt Fletcher for this great contribution. NOTE : please note this is a contribution-section, not a helpdesk-section. If you have any problems with this contribution, please do not make any comments here, but look in the support-topic : http://www.oscommerce.com/forums/index.php?showtopic=59589 ]]> Fri, 19 Oct 2007 04:41:54 -0400 http://addons.oscommerce.com/info/2862 The amount of bytes is over 300KiloBytes avaible here. Sorry about that, but no worry you can download the package from (no registration request): https://sourceforge.net/project/showfiles.php?group_id=180805 Find more information about this contribution at http://www.caneblu.com/content/category/4/18/30/ Contact the author at http://www.caneblu.com/component/option,com_contact/Itemid,3/]]> Thu, 02 Nov 2006 14:46:18 -0500 http://addons.oscommerce.com/info/4269 ************************************ DISCLAIMER: I am issuing this warning to all users of this contribution because it looks like no one has addressed this bug or even recognized it. I am NOT one of the original developers of this contribution. I am simply a fan of the contribution who stumbled upon this critcal bug. I mistakenly spent about 3 hours scanning code, thinking that it was a problem with the way I installed it. I'd like to save others the same grief. ************************************ Anyone who downloads this contribution NEEDS to know this once they have successfully installed it: When selecting product categories to exclude from being discounted, you MUST keep both the parent categories AND the sub-categories that you intend to discount. That may sound confusing, so here is an example to illustrate: Say we are selling toy cars and we have them in 2 different categories - Trucks and Autos. Let's say our customer wants to buy a truck, and he/she must choose from a number of sub-categories, such as Dump-trucks, Big-rigs, Pickups, etc. Now, let's say that you want to create a coupon that will discount Pickups ONLY and not the other categories. You cannot simply leave out "Trucks->Pickups" from the list of excluded categories. You MUST ALSO leave out the parent category "Trucks" as well. If you do not leave out the parent category, the coupon code WILL NOT work for your customer even if he/she does add a Pickup truck to the cart and supplies the correct coupon code. I am classifying this as a critical bug, and have chosen to post it on the download page instead of posting in the forums because many osC users do not read the forums before they download a contribution. I will be happy to take this error down once this bug is fixed (I am not code-savvy enough to do it myself). Regardless of this bug, I'd like to thank the original developers of this contribution for doing a great job. I hope this warning helps others.]]> Thu, 18 Oct 2007 23:35:07 -0400 http://addons.oscommerce.com/info/1522 Now when you limit per year or month you are not redirected the "zone" file anymore. Complete package]]> Thu, 18 Oct 2007 21:40:41 -0400 http://addons.oscommerce.com/info/5136 It lists option name with each option values associated, and input for + or - and for option price. I hope this can help;) Benjamin]]> Thu, 18 Oct 2007 16:53:39 -0400 http://addons.oscommerce.com/info/4455 only updated file]]> Thu, 18 Oct 2007 16:23:10 -0400 http://addons.oscommerce.com/info/4312 This v1.2.1 (FULL VERSION): 1.) Is correcting the missing `order by` in the readme.txt here. See: http://www.oscommerce.com/forums/index.php?showtopic=213587&st=20# case 'PRODUCT_LIST_NAME': $listing_sql .= " order by pd.products_name " . ($sort_order == 'd' ? 'desc' : ''); break; case 'PRODUCT_LIST_30SALES': $listing_sql .= " order by p.products_recent_sales desc, pd.products_name desc"; break; 2) Is additionally removing some spaces in file and directory name, which would making you mad on *nix systems otherwise. ]]> Thu, 18 Oct 2007 15:51:37 -0400 http://addons.oscommerce.com/info/2823 I am not sure if it exists or added in this version. Bug description: When one clicks to check review page by clicking review link on product_info page, it redirects to same Product info page. In /catalog/includes/classes/seo.class.php Under function ValidateName Find: if ((strpos($parts[count($parts) - 2], $type)) !== FALSE) Replace with: if ($parts[count($parts) - 2] == $type)]]> Thu, 18 Oct 2007 14:58:43 -0400 http://addons.oscommerce.com/info/1049 Change: DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW To tep_image(DIR_WS_CATALOG_IMAGES . $products['products_image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) Whole section looks like this: <td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products['products_id'] . '&action=new_product_preview&read=only') . '">' . tep_image(DIR_WS_CATALOG_IMAGES . $products['products_image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> ' . $products['products_name']; ?></td> <td class="dataTableContent" align="center"> It's not perfect so improve it if you can]]> Thu, 18 Oct 2007 10:13:15 -0400 http://addons.oscommerce.com/info/5480 When I++ it stopped the query when redirecting to orders.php. It only updated one order. Included, fixed install.txt ]]> Thu, 18 Oct 2007 08:59:53 -0400 http://addons.oscommerce.com/info/4985 This is a hack to the PISS 0.1 contribution and requires piss_0_1_1.zip. ]]> Thu, 18 Oct 2007 07:08:07 -0400 http://addons.oscommerce.com/info/5479 for all installed languages of your osCommerce online shop. It displays the products with pictures, their full descriptions and prices in a Excel, Word, HTML, CSV and XML format . ]]> Thu, 18 Oct 2007 06:21:46 -0400 http://addons.oscommerce.com/info/4794 Wed, 17 Oct 2007 20:45:18 -0400 http://addons.oscommerce.com/info/4609 Wed, 17 Oct 2007 20:35:20 -0400 Warning: fclose(): supplied argument is not a valid stream resource in /home/marquard/public_html/shop/includes/functions/contrib_tracker.php on line 29 could not open XML input Quote Link to comment Share on other sites More sharing options...
sashaben Posted October 20, 2007 Share Posted October 20, 2007 (edited) Make a folder named "rsscache" in your catalog directory and chmod it to 777 Also In catalog & admin/contrib_tracker.php change all instances of DIR_WS_CATALOG. 'rsscache/contrib_rss.html to DIR_FS_CATALOG. 'rsscache/contrib_rss.html Edited October 20, 2007 by sashaben Quote Link to comment Share on other sites More sharing options...
oldschoo Posted October 22, 2007 Share Posted October 22, 2007 Thank you, the DIR_FS_CATALOG. 'rsscache/contrib_rss.html worked perfectly. However, I still need help with the cronjob. Can someone help me with the exactly what you enter in the command line of the cronjob? Thank You Quote Link to comment Share on other sites More sharing options...
sashaben Posted October 22, 2007 Share Posted October 22, 2007 Does your webhost have cpanel or something similar? Quote Link to comment Share on other sites More sharing options...
lildog Posted October 23, 2007 Author Share Posted October 23, 2007 I do not have cron but I use a web service that checks to see if a page on a server is up, this lets me know when my server is down. All that needs to happen is the contrib_tracker page needs to load once in awhile. You could set your index page to do this if you have enough traffic. I believe you could delete the success message and in index.php use a require(). that's my 2 cents, lildog Quote Link to comment Share on other sites More sharing options...
lildog Posted October 23, 2007 Author Share Posted October 23, 2007 if someone posts the cron instructions I will include them in the next version. lildog Quote Link to comment Share on other sites More sharing options...
oldschoo Posted October 24, 2007 Share Posted October 24, 2007 Yes, my cpanel does have cronjob. I am just not sure exactly what I need to put in the command line. I am still learning all this code stuff. Quote Link to comment Share on other sites More sharing options...
oldschoo Posted October 24, 2007 Share Posted October 24, 2007 I thought the FS thing worked. But I am still getting an error. Do I need to change something in my paths on configure file? Warning: fopen(/home/*****/public_html/shop//shoprsscache/contrib_rss.html) [function.fopen]: failed to open stream: No such file or directory in /home/*****/public_html/shop/admin/includes/functions/contrib_tracker.php on line 23 Warning: curl_setopt(): supplied argument is not a valid File-Handle resource in /home/*****/public_html/shop/admin/includes/functions/contrib_tracker.php on line 24 en http://www.oscommerce.com osCommerce, Open Source E-Commerce Solutions Copyright (c) 2007 osCommerce hpdl@oscommerce.com http://www.oscommerce.com/images/oscommerce_88x31.gif http://www.oscommerce.com http://addons.oscommerce.com/info/4449 Paynova AB offers secure payment services on the Internet in addition to providing an electronic wallet that can handle multi-currency payments, down to 10 cents. It is as easy to sign up for and use the Wallet as it is for Merchants to install. Further information and screenshots available in the download package.]]> Thu, 10 Aug 2006 18:47:09 -0400 http://addons.oscommerce.com/info/1155 now you put the amont off percentage and it' add to total cost. thank to oneil for the piece of code. all credits are for original author. full package read the "readme" for install and read me add on for the percent integration. angel2005]]> Wed, 24 Oct 2007 07:29:54 -0400 http://addons.oscommerce.com/info/1041 Wed, 24 Oct 2007 07:14:01 -0400 http://addons.oscommerce.com/info/2337 Wed, 24 Oct 2007 06:34:48 -0400 http://addons.oscommerce.com/info/338 That's all. original credits to the contributor.]]> Wed, 24 Oct 2007 05:43:59 -0400 http://addons.oscommerce.com/info/1540 In catalogincludesmodulespaymentpaypal_ipn.php changle line 254 which looks like this: 'products_options_values' => $attributes_values['products_options_values_name'], to this: 'products_options_values' => $order->products[$i]['attributes'][$j]['value'], ]]> Wed, 24 Oct 2007 04:55:15 -0400 http://addons.oscommerce.com/info/2144 Only admin/action_news.php is changed. Regards from spain. Visit spanish oscommerce forums http://oscommerce.qadram.com/modules.php?name=Forums]]> Wed, 24 Oct 2007 04:40:58 -0400 http://addons.oscommerce.com/info/3778 Multilanguage and now, date entry order is automatically set acording to country.(US UK - EU mode) This modification is based on Marco S. original file]]> Tue, 23 Oct 2007 16:10:36 -0400 http://addons.oscommerce.com/info/5307 The entire product list can load fairly slowly if your inventory includes thousands of products. After adding several fields for editing, including some custom fields for my heavily modified store, I found the wait time for full loading to become interminable - and impractical when the main objective was to edit fields like stock levels quickly. Even if I waited for the full inventory to load, I'd still almost immediately initiate a search anyway to get to the items in which I was interested. The easiest solution for me was simply to bypass the full product listing, and go directly to the search page. Though a full alternative package might entail a re-named files and re-configured and -formatted pages, with extraneous code removed, I found a simple hack to be satisfactory. If you just go to line 22 of the product_list.php, you can replace $product_query = tep_db_query("select p.products_id, p.products_model, pd.products_name, p.products_format, p.products_condition, p.products_price, p.products_quantity, p.products_status from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'"); with $product_query = 0; You can also of course comment out the tep_db_query statement if you wish to preserve the snipped for possible future re-use or re-installation. As in $product_query = 0 //tep_db_query("select p.products_id, p.products_model, pd.products_name, p.products_format, p.products_condition, p.products_price, p.products_quantity, p.products_status from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'") ; Note that if you comment out in the above manner, you need to keep the semi-colon to terminate the statement, so you'll have to give it its own line, as above. You'll be fine. Clicking on Product List in admin/catalog will take you immediately to a page whose main area is blank, but with the search box readily available. Searches will execute quickly, and you can then perform whatever desired edits or stock adjustments on the products and fields that are found. At some point I may produce a full Product Search and Edit alternative that could be uploaded instead of or alongside Product Inventory Editor, but I'm still researching issues related to Search itself in mysql (upgrading to the latest versions in order to deal with apostrophes is a primary issue). --note: ATTACHED FILE IS NOT A FULL PACKAGE - it's just a copy of this text]]> Tue, 23 Oct 2007 13:44:01 -0400 http://addons.oscommerce.com/info/5490 Tue, 23 Oct 2007 12:22:48 -0400 http://addons.oscommerce.com/info/2679 Added parameter 'charset' in the button code so the character set can be defined. Added Shipping tax displayed as an item if 'Per Item' mode selected. Now you can add tax to shipping cost and won't mess up the amounts displayed at PayPal. ************************************************* Full Package Support thread: http://www.oscommerce.com/forums/index.php?showtopic=179917 This is exact the same package as the previous one (the second v2.3.1), just correcting the version number listed.]]> Tue, 23 Oct 2007 11:49:36 -0400 http://addons.oscommerce.com/info/1524 STS 4.5.4 Full version + STS 4.5 SP5 + STS 4.5.6 No other changes. Changelog updated.]]> Tue, 23 Oct 2007 10:42:49 -0400 http://addons.oscommerce.com/info/4269 The zip file includes the new discount_coupon.php and table.php files. There are two readme files included - one for users who have already installed the previous fix, and one for users who have not installed either of the fixes. NOTE: This is a temporary fix for anyone who needs it. It is NOT official, and is only meant to tide users over until KGT or one of the other developers includes such a fix in their official releases. DO NOT message me for support on this bug fix or any other problems you may have with DCC. If you have a problem with this bug fix, simply uninstall it and wait for something more official. Good luck, Agra]]> Tue, 23 Oct 2007 05:59:24 -0400 http://addons.oscommerce.com/info/5489 This solves reliability issues that occure when the customer does not return to the seller's website to finalize the transaction.]]> Mon, 22 Oct 2007 19:15:44 -0400 http://addons.oscommerce.com/info/2138 ]]> Mon, 22 Oct 2007 19:15:39 -0400 Warning: fclose(): supplied argument is not a valid stream resource in /home/*****/public_html/shop/admin/includes/functions/contrib_tracker.php on line 29 could not open XML input Quote Link to comment Share on other sites More sharing options...
mickeymouse Posted November 3, 2007 Share Posted November 3, 2007 I thought the FS thing worked. But I am still getting an error. Do I need to change something in my paths on configure file? Warning: fopen(/home/*****/public_html/shop//shoprsscache/contrib_rss.html) [function.fopen]: failed to open stream: No such file or directory in /home/*****/public_html/shop/admin/includes/functions/contrib_tracker.php on line 23 Change the name of your rsscache directory from shoprsscache to rsscache. Quote I only do what my Rice Krispies tell me to do! Link to comment Share on other sites More sharing options...
Guest Posted November 5, 2007 Share Posted November 5, 2007 Can someone please explain how to fix this??? I'm using version 1.6.1 on RC1 I get the following error: Warning: fopen(): open_basedir restriction in effect. File(/storefront/rsscache/contrib_rss.html) is not within the allowed path(s): (/home/signsnsu/:/usr/lib/php:/usr/local/lib/php:/tmp:/var/tmp:/home/vdeck/tmp/:/usr/local/bin/mogrify:/usr/local/bin/convert:/usr/sbin/sendmail) in /home/signsnsu/public_html/storefront/includes/functions/contrib_tracker.php on line 23 Warning: fopen(/storefront/rsscache/contrib_rss.html): failed to open stream: Operation not permitted in /home/signsnsu/public_html/storefront/includes/functions/contrib_tracker.php on line 23 Warning: curl_setopt(): supplied argument is not a valid File-Handle resource in /home/signsnsu/public_html/storefront/includes/functions/contrib_tracker.php on line 24 en http://www.oscommerce.com osCommerce, Open Source E-Commerce Solutions Copyright © 2007 osCommerce hpdl@oscommerce.com http://www.oscommerce.com/images/oscommerce_88x31.gif http://www.oscommerce.com http://addons.oscommerce.com/info/5043 http://addons.oscommerce.com/info/5111 [TiM's osC Modules] Posten AB - Brevsändning (Utrikes) http://addons.oscommerce.com/info/5516 [TiM's osC Modules] Posten AB - Paketsändning (Inrikes) http://addons.oscommerce.com/info/5112 [TiM's osC Modules] Posten AB - Paketsändning (Utrikes) http://addons.oscommerce.com/info/5517 [TiM's osC Modules] Posten AB - Postförskott http://addons.oscommerce.com/info/5044]]> Sun, 04 Nov 2007 20:35:50 -0500 http://addons.oscommerce.com/info/5175 Sun, 04 Nov 2007 20:32:38 -0500 http://addons.oscommerce.com/info/5050 Sun, 04 Nov 2007 20:31:25 -0500 http://addons.oscommerce.com/info/5052 Sun, 04 Nov 2007 20:30:47 -0500 http://addons.oscommerce.com/info/5053 Sun, 04 Nov 2007 20:30:26 -0500 http://addons.oscommerce.com/info/5051 Sun, 04 Nov 2007 20:09:08 -0500 http://addons.oscommerce.com/info/5517 Sun, 04 Nov 2007 20:06:31 -0500 http://addons.oscommerce.com/info/5516 Sun, 04 Nov 2007 20:05:00 -0500 http://addons.oscommerce.com/info/5515 Sun, 04 Nov 2007 20:02:31 -0500 http://addons.oscommerce.com/info/5054 Sun, 04 Nov 2007 19:55:42 -0500 http://addons.oscommerce.com/info/5144 Sun, 04 Nov 2007 19:53:33 -0500 http://addons.oscommerce.com/info/5143 Sun, 04 Nov 2007 19:52:35 -0500 http://addons.oscommerce.com/info/5112 Sun, 04 Nov 2007 19:51:37 -0500 http://addons.oscommerce.com/info/5111 Sun, 04 Nov 2007 19:50:09 -0500 http://addons.oscommerce.com/info/5044 Sun, 04 Nov 2007 19:46:55 -0500 Warning: fclose(): supplied argument is not a valid stream resource in /home/signsnsu/public_html/storefront/includes/functions/contrib_tracker.php on line 29 could not open XML input Quote Link to comment Share on other sites More sharing options...
oldschoo Posted November 12, 2007 Share Posted November 12, 2007 signsnsuch check post on previous pages. I did the following, although I am still getting errors. It looks like your problem is the same, or almost the same as mine was on the previous page, along with a few others. Read the prior post and see if this will help you. Make a folder named "rsscache" in your catalog directory and chmod it to 777 Also In catalog & admin/contrib_tracker.php change all instances of DIR_WS_CATALOG. 'rsscache/contrib_rss.html to DIR_FS_CATALOG. 'rsscache/contrib_rss.html Quote Link to comment Share on other sites More sharing options...
oldschoo Posted November 12, 2007 Share Posted November 12, 2007 This is getting frustrating. I guess that's what happens when you have a heavily modified shop. I have a new error. This error is on the amin panel when I click on tools, contrib tracker. It shows where all the contribtions should be listed. Fatal error: Call to undefined function: get_http_headers() in /home/marquard/public_html/shop/admin/contrib_tracker.php on line 354 At the TOP of the admin page, I get the following error: Warning: unlink(/home/marquard/public_html/shop/rsscache/contrib_rss.html/) [function.unlink]: Not a directory in /home/marquard/public_html/shop/admin/contrib_tracker.php on line 59 Please, someone help. I would really like to get this contribution to work. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
sashaben Posted November 12, 2007 Share Posted November 12, 2007 Sounds like it's not looking in the right directory, is your configure file set correctly? How about in your admin/contrib_tracker.php file did you accidently add a "/" after one of the DIR_FS_CATALOG. 'rsscache/contrib_rss.html Quote Link to comment Share on other sites More sharing options...
oldschoo Posted November 14, 2007 Share Posted November 14, 2007 I did manage to get the error at the top of the admin page when I click on contribution tracker to go away. But I am still getting the second error: Fatal error: Call to undefined function: get_http_headers() in /home/*****/public_html/shop/admin/contrib_tracker.php on line 354 Lines 351 to 363 <?php if (tep_not_null($admin_quer['contrib_link'])){ $array = get_http_headers($admin_quer['contrib_link']); if ($array[result] == '200'){ echo '<a target="_blank" href="' . $admin_quer['contrib_link'] . '" name="' . $admin_quer['contrib_name'] . '">' . $admin_quer['contrib_name'].'</a>'; }else{ echo $admin_quer['contrib_name']; } }else{ // the url is empty echo $admin_quer['contrib_name']; } ?> Any Ideas what the problem is and how to fix? Quote Link to comment Share on other sites More sharing options...
sashaben Posted November 14, 2007 Share Posted November 14, 2007 Do you have a contrib_tracker.php function file in admin/includes/functions/ Do you gave this line at the top of your admin/contrib_tracker.php require(DIR_WS_FUNCTIONS . 'contrib_tracker.php'); What does the define('DIR_WS_FUNCTIONS') line look like in your admin/includes/configure.php? Quote Link to comment Share on other sites More sharing options...
oldschoo Posted November 15, 2007 Share Posted November 15, 2007 Do you have a contrib_tracker.php function file inadmin/includes/functions/ Do you gave this line at the top of your admin/contrib_tracker.php require(DIR_WS_FUNCTIONS . 'contrib_tracker.php'); What does the define('DIR_WS_FUNCTIONS') line look like in your admin/includes/configure.php? Yest I do have contrib_tracker.php in admin/includes/functions Yes I have require(DIR_WS_FUNCTIONS . 'contrib_tracker.php'); in admin/contrib_tracker.php This is my DIR_WS_FUNCTIONS: define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); Thank you so much for your help Quote Link to comment Share on other sites More sharing options...
sashaben Posted November 15, 2007 Share Posted November 15, 2007 In admin/contrib_tracker.php try changing require(DIR_WS_FUNCTIONS . 'contrib_tracker.php'); to require('includes/functions/contrib_tracker.php'); Or just to see if this does anything Try pasting this at the end of your admin/includes/functions/general.php // check to see if the address is a valid url function get_http_headers ($url,$proto= "HTTP/1.0") { if(!eregi( "^http://", $url)) { $url = "http://".$url; } $uri = parse_url($url); $port = ( $uri[ "port"] ? $uri[ "port"] : 80 ); # open a socket to the server $sock = fsockopen($uri[host],$port); if(!$sock) { return(-1); } if (!strlen($uri[path])) {$uri[path] = "/";} $req=sprintf( "HEAD %s %s\n\n", $uri[path], $proto); # send the request fputs($sock, $req); # get the headers while(!feof($sock)): $this_out = fgets($sock,100); $output.= $this_out; endwhile; fclose($sock); # parse them into a hash $hdr=split( "\n",$output); list($array[ "protocol"], $array[ "result"], $array[ "message"]) = split("[[:space:]]+", $hdr[0], 3); for($i=1,$num=count($hdr);$i<$num;$i++) { list($key, $val)=split( ":[[:space:]]*", $hdr[$i],2); $array[strtolower($key)]=$val; } return($array); } Save the general.php file Then got to your contrib_tracker page and see if it makes a difference to anything. Make a note of what happens then go back to your general.php file and remove what you just added. Quote Link to comment Share on other sites More sharing options...
oldschoo Posted November 16, 2007 Share Posted November 16, 2007 Sashaben Thank you so much for all your help. I managed to get it working thanks to you. Again, thank you so very much. This is a great contribution, it was driving me nuts for a while, but thanks to you it is working!!! Again, Thank You Sashaben! Just to let you know, I am not sure how I fixed It. I did your first change about the function file name, and received the following errors: Warning: main(shop/includes/functions/contrib_tracker.php) [function.main]: failed to open stream: No such file or directory in /home/marquard/public_html/shop/admin/contrib_tracker.php on line 30 Warning: main(shop/includes/functions/contrib_tracker.php) [function.main]: failed to open stream: No such file or directory in /home/marquard/public_html/shop/admin/contrib_tracker.php on line 30 Fatal error: main() [function.require]: Failed opening required 'shop/includes/functions/contrib_tracker.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/marquard/public_html/shop/admin/contrib_tracker.php on line 30 So, I just uploaded the contrib_tracker.php in the functions file again, and wala, it worked after I changed the function file name back to the original require(DIR_WS_FUNCTIONS . 'contrib_tracker.php'). Quote Link to comment Share on other sites More sharing options...
Guest Posted December 4, 2007 Share Posted December 4, 2007 (edited) in the cron-job for c-panel enter: php -q path-to-the-home/path/contrib_tracker.php ex: php -q public_html/test/contrib_tracker.php in the documentation was: php -q /public_html/test/contrib_tracker.php but don't work if I put "/" forward to the "public_html/test/contrib_tracker.php" if I set up a e-mail adress for the cron-job to report it send to me "<br /> <b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent in <b>/home/rcyb5201/public_html/test/includes/functions/sessions.php</b> on line <b>97</b><br /> <br /> <b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/rcyb5201/public_html/test/includes/functions/sessions.php:97) in <b>/home/rcyb5201/public_html/test/includes/functions/sessions.php</b> on line <b>97</b><br /> success<br /> <b>Warning</b>: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in <b>Unknown</b> on line <b>0</b><br />" I don't know why send this error but is doing his job. Sorry for my english. best regards P.S. verry nice and usefull contribution congratulation ! Edited December 4, 2007 by navomodele Quote Link to comment Share on other sites More sharing options...
Guest Posted December 5, 2007 Share Posted December 5, 2007 in the cron-job for c-panel enter: php -q path-to-the-home/path/contrib_tracker.php ex: php -q public_html/test/contrib_tracker.php in the documentation was: php -q /public_html/test/contrib_tracker.php but don't work if I put "/" forward to the "public_html/test/contrib_tracker.php" if I set up a e-mail adress for the cron-job to report it send to me "<br /> <b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent in <b>/home/rcyb5201/public_html/test/includes/functions/sessions.php</b> on line <b>97</b><br /> <br /> <b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/rcyb5201/public_html/test/includes/functions/sessions.php:97) in <b>/home/rcyb5201/public_html/test/includes/functions/sessions.php</b> on line <b>97</b><br /> success<br /> <b>Warning</b>: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in <b>Unknown</b> on line <b>0</b><br />" I don't know why send this error but is doing his job. Sorry for my english. best regards P.S. verry nice and usefull contribution congratulation ! this is the corect command for the cronjob for my site wget http://cyber-ro.ro/test/contrib_tracker.php best regards Quote Link to comment Share on other sites More sharing options...
lildog Posted March 20, 2008 Author Share Posted March 20, 2008 For anyone here, the contrib is not updating contribs with a & sign in the name, I do not think any errors are being spit out, just not letting you know there is an update. If anyone has anyideas let me know and we can fix it. Meanwhile I will try to suss it out. CHECK YOUR CONTRIBS WITH & signs in them. lildog Quote Link to comment Share on other sites More sharing options...
skhuu Posted March 23, 2008 Share Posted March 23, 2008 For anyone here, the contrib is not updating contribs with a & sign in the name, I do not think any errors are being spit out, just not letting you know there is an update. If anyone has anyideas let me know and we can fix it. Meanwhile I will try to suss it out. CHECK YOUR CONTRIBS WITH & signs in them. lildog Can someone help, I installed the Contribution trcaker and it gives me the following error. I tried checking all the suggestion above, but without help. We tried fetching http://www.mzansimp3.co.za/contrib_tracker.php but it did not return the string "success" as required by Uptime. Instead, it returned Warning: fopen(/rsscache/contrib_rss.html) [function.fopen]: failed to open stream: No such file or directory in /home/****/public_html/includes/functions/contrib_tracker.php on line 23 Warning: curl_setopt(): supplied argument is not a valid File-Handle resource in /home/*****/public_html/includes/functions/contrib_tracker.php on line 24 en http://www.oscommerce.com osCommerce, Open Source E-Commerce Solutions Copyright © 2007 osCommerce hpdl@oscommerce.com http://www.oscommerce.com/images/oscommerce_88x31.gif http://www.oscommerce.com http://addons.oscommerce.com/info/888 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.