lildog Posted March 24, 2008 Author Share Posted March 24, 2008 To me it looks like you need to check your paths... 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...
kebo Posted March 30, 2008 Share Posted March 30, 2008 To me it looks like you need to check your paths... I have the same problem as lilidog :'( Did you get it fixed lildog? Quote Link to comment Share on other sites More sharing options...
kebo Posted March 30, 2008 Share Posted March 30, 2008 To me it looks like you need to check your paths... I have the same problem here lilidog :'( Is there a fix? Quote Link to comment Share on other sites More sharing options...
kebo Posted March 30, 2008 Share Posted March 30, 2008 (edited) Ok I did not copy over the .DS_Store files because have a contribution that use the same files. Do I need to merge the two files? Edited March 30, 2008 by kebo Quote Link to comment Share on other sites More sharing options...
golfman2006 Posted March 31, 2008 Share Posted March 31, 2008 Not sure what happened, but now when I come into Admin and select Contribution Tracker I get the below error. Any idea what could be causing this? XML error: SYSTEM or PUBLIC, the URI is missing at line 1 this is what I have in admin/contrib_tracker.php for line 1 <?php Quote Link to comment Share on other sites More sharing options...
lildog Posted March 31, 2008 Author Share Posted March 31, 2008 Kebo, don't copy the ds.store files. It is a mac(maybe unix also) desktop file and was inadvertantly left in the contrib archive. Just ignore them. lildog Ok I did not copy over the .DS_Store files because have a contribution that use the same files. Do I need to merge the two files? Quote Link to comment Share on other sites More sharing options...
lildog Posted March 31, 2008 Author Share Posted March 31, 2008 Not sure, maybe referring to the line 1 of the uri. Could also be a server error. Not sure what happened, but now when I come into Admin and select Contribution Tracker I get the below error. Any idea what could be causing this? XML error: SYSTEM or PUBLIC, the URI is missing at line 1 this is what I have in admin/contrib_tracker.php for line 1 <?php Quote Link to comment Share on other sites More sharing options...
kebo Posted March 31, 2008 Share Posted March 31, 2008 (edited) I am now getting this error "could not open XML input" after I removed the $ in front of "$sTxtfile" on line 23. I think I saw someone with this error before but I can not find it. And how it was fixed. :blush: Edited March 31, 2008 by kebo Quote Link to comment Share on other sites More sharing options...
kebo Posted March 31, 2008 Share Posted March 31, 2008 (edited) The file I made the change in is the one in the catalog/includes/function/ folder. And I get the error when I run the contrib_tracker.php in catalog/ folder. Also there is no file in the rsscache folder. Edited March 31, 2008 by kebo Quote Link to comment Share on other sites More sharing options...
lildog Posted April 1, 2008 Author Share Posted April 1, 2008 You need the $ in front of sTxtfile.... The file I made the change in is the one in the catalog/includes/function/ folder. And I get the error when I run the contrib_tracker.php in catalog/ folder.Also there is no file in the rsscache folder. Quote Link to comment Share on other sites More sharing options...
kebo Posted April 1, 2008 Share Posted April 1, 2008 I replaced the $ and made another change. I realized that the path for the root file has "catalog" as the root but my site uses the real root. so i changed it to reflect and my first error went away. But now i still get the "could not open XML input" error. Can i create a blank file and put it in the folder? Should it be an xml file? Can i get a sample file to put in? I would like to get this thing to work. Quote Link to comment Share on other sites More sharing options...
0ethos0 Posted May 18, 2008 Share Posted May 18, 2008 (edited) Strange... everything seems to work but the original post from the sql does not show up in contrib tracker. My store is not in catalog directory its in root, would that make a diff? I have tried everything, seems that it give success mesasge, but won't send email when uncommented and won't actually update anything. Tried changing fs as suggested, but that did not work. - curl installed and working. - using latest ver of osc. Edited May 18, 2008 by 0ethos0 Quote Link to comment Share on other sites More sharing options...
0ethos0 Posted May 18, 2008 Share Posted May 18, 2008 (edited) Strange... everything seems to work but the original post from the sql does not show up in contrib tracker. My store is not in catalog directory its in root, would that make a diff? I have tried everything, seems that it give success mesasge, but won't send email when uncommented and won't actually update anything. Tried changing fs as suggested, but that did not work. - curl installed and working. - using latest ver of osc. Here's from the server error log for domain: PHP Warning: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/rsscache/contrib_rss.html) is not within the allowed path(s): (/var/www/vhosts/site.com/httpdocs:/tmp) in /var/www/vhosts/site.com/httpdocs/admin/contrib_tracker.php on line 35, referer: http://site.com/admin/backup.php?selected_box=tools PHP Warning: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/rsscache/contrib_rss.html) is not within the allowed path(s): (/var/www/vhosts/site.com/httpdocs:/tmp) in /var/www/vhosts/site.com/httpdocs/admin/contrib_tracker.php on line 58, referer: http://site.com/admin/backup.php?selected_box=tools PHP Fatal error: Call to undefined function get_http_headers() in /var/www/vhosts/site.com/httpdocs/admin/contrib_tracker.php on line 367, referer: http://site.com/admin/backup.php?selected_box=tools PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/vhosts/site.com/httpdocs/admin/includes/classes/rdf_class.php on line 343, referer: http://site.com/admin/contrib_tracker.php Using PHP Version 5.1.6 Edited May 18, 2008 by 0ethos0 Quote Link to comment Share on other sites More sharing options...
0ethos0 Posted May 19, 2008 Share Posted May 19, 2008 Here's from the server error log for domain: PHP Warning: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/rsscache/contrib_rss.html) is not within the allowed path(s): (/var/www/vhosts/site.com/httpdocs:/tmp) in /var/www/vhosts/site.com/httpdocs/admin/contrib_tracker.php on line 35, referer: http://site.com/admin/backup.php?selected_box=tools PHP Warning: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/rsscache/contrib_rss.html) is not within the allowed path(s): (/var/www/vhosts/site.com/httpdocs:/tmp) in /var/www/vhosts/site.com/httpdocs/admin/contrib_tracker.php on line 58, referer: http://site.com/admin/backup.php?selected_box=tools PHP Fatal error: Call to undefined function get_http_headers() in /var/www/vhosts/site.com/httpdocs/admin/contrib_tracker.php on line 367, referer: http://site.com/admin/backup.php?selected_box=tools PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/vhosts/site.com/httpdocs/admin/includes/classes/rdf_class.php on line 343, referer: http://site.com/admin/contrib_tracker.php Using PHP Version 5.1.6 Anyone? I tried to fix the path but cannot get it to stop giving these errors Quote Link to comment Share on other sites More sharing options...
lildog Posted May 29, 2008 Author Share Posted May 29, 2008 Lines 35 and 58 are lines that are checking for curl...... Anyone? I tried to fix the path but cannot get it to stop giving these errors Quote Link to comment Share on other sites More sharing options...
lildog Posted May 29, 2008 Author Share Posted May 29, 2008 I fixed the new xml urls and added an email feature that will try to let you know if Contrib Tracker is down. Quote Link to comment Share on other sites More sharing options...
carryG Posted May 30, 2008 Share Posted May 30, 2008 This seems like a good mod but it simply does not work. I followed instructions to the T and just did the updates. That's too bad. :blush: Quote Link to comment Share on other sites More sharing options...
carryG Posted May 30, 2008 Share Posted May 30, 2008 After posting that, I am thinking. Is there an RSS feed I need to signup or otherwise use? I am not sure how to "program" the RSS feeds for contributions or does it look for that automatically? The original post added by the SQL just doesn't show up at all even, the page does with the HTML and RSS button but nothing else. Errors posted earlier. Maybe this is not compatible with newest Osc release? Php 5? Quote Link to comment Share on other sites More sharing options...
carryG Posted May 30, 2008 Share Posted May 30, 2008 Found something interesting here: http://www.soderlind.no/archives/2004/11/0...rss-aggregator/ Perhaps it has something to do with this but can't sort it out. Quote Link to comment Share on other sites More sharing options...
pbor1234 Posted May 30, 2008 Share Posted May 30, 2008 Last version is incomplete (it looks like catalog\beheer\contrib_tracker.php is an old version since it still uses get_http_headers while the update manual 162->163 says to remove it. Looks like 1.6.4 has the same problem... Ok i just added this small change after which it seems to do something ;) In admin/contrib_tracker.php: CHANGE: <?php if ($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']; } ?> TO: <?php if ($admin_quer['contrib_link']){ 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']; } ?> Quote Link to comment Share on other sites More sharing options...
lildog Posted June 2, 2008 Author Share Posted June 2, 2008 Thanks pBor1234 for pointing that out. My bad. CarryG, it is compatible with OS Online Merchant 2.2 RC2a. I believe it is the latest version. As for PHP5 I am not sure, my server is using 4.?.?. The newest version of CT automatically looks to the add ons RSS Feed. I am not a php guru like some here, are you recieving any errors in your server scripts log? Make sure your permissions are correct to write the temp rss file. lildog Quote Link to comment Share on other sites More sharing options...
lildog Posted June 2, 2008 Author Share Posted June 2, 2008 I don't know about anyone else, but I like the idea of the email feature will try it out. lildog Quote Link to comment Share on other sites More sharing options...
Phocea Posted June 14, 2008 Share Posted June 14, 2008 Just installed the version1.6.6b of thos contribution, followed all the steps carefully and double checked and it doesnt work I just keep getting this error: could not open XML input both on the catalog and admin side when I run contrib_tracker.php The problem seems to happen at this stage : if (!($fp = @fopen($this->FileName, "r"))) { $theerror=sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($this->xml_parser)), xml_get_current_line_number($this->xml_parser)); tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'Contribution Tracker Error', 'Contribution Tracker could not open XML input. ', STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); die("could not open XML input!!"); } probably because the fopen fails to open the URL http://feedproxy.feedburner.com/osCommerce_Contributions since there is no cache existing yet Any ideas ? Quote Link to comment Share on other sites More sharing options...
carryG Posted June 14, 2008 Share Posted June 14, 2008 Last version is incomplete (it looks like catalog\beheer\contrib_tracker.php is an old version since it still uses get_http_headers while the update manual 162->163 says to remove it. Looks like 1.6.4 has the same problem... Ok i just added this small change after which it seems to do something ;) In admin/contrib_tracker.php: CHANGE: <?php if ($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']; } ?> TO: <?php if ($admin_quer['contrib_link']){ 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']; } ?> That fixed it Paul thanks!! Quote Link to comment Share on other sites More sharing options...
carryG Posted June 14, 2008 Share Posted June 14, 2008 (edited) Two things I noticed. 1) when I add a contribution to this and click TODAY as date of install, the date it puts in is 1969-12-31 19:00:00. Is this a bug? My server has correct time, but it seems like it is coded with y2k bug (lol)? 2) In the title of a contribution, it shows the title twice Improved Order Number Improved Order Number with both clickable links. Is this supposed to be double listed? Any suggestions. Ideally, we could see a column showing date of last install and version number for quick reference (without having to highlight mod). Final suggestion (i swear). We save backup files with numbers of mods installed, so this mod is mod 50 for example. Ideally, there would be a field to save a mod number (other than notes), sortable from admin. That way, in a single glance we could see what the next available number is for installing a new mod...(51) Edited June 14, 2008 by carryG 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.