Contribution Tracker
#21
Posted 01 March 2007 - 02:44 PM
Let me see if I have this right. You installed a contrib in say 2005 there was an update in 2006 that you missed or did not install and would like to be notified that you are not using the latest version, right? This is exactly why I wrote this contrib. I am in the same boat. I have about a hundred contribs installed and I forget to update them then I do updates and it takes me a week or more. Unfortunately, the names and versions of contribs are all over the board and I am not sure I would be able to get Contrib tracker to reliably check the site. Is the contrib you are talking about on the oscommerce contrib site? This is a feature I will investigate and try to implement, no promises.
For now update all of your contribs, enter them into contrib tracker and from then on you will get notified of updates.
lildog
#22
Posted 02 March 2007 - 02:00 PM
[codeParse error: syntax error, unexpected T_REQUIRE in /home/xxxxxxx/public_html/store/admin/contrib_tracker.php on line 1][/code]
Thinking I may have missed something, I reinstalled v1.2 and it worked fine again. I decided to do a fresh install of v1.5.2 and after, got the same problem. I then brought it back to v1.2 and it works. I installed v1.3 and that is where the problem starts. I'm not coder so I'm not sure where to look.
Line 1 is of course the <?php so I assume it means the first line of code which is require('includes/application_top.php'); on mine.
Thanks for any help and a great contrib!
#23
Posted 02 March 2007 - 02:12 PM
You're right, that's just what I meant.
I've got over 150 contribs running in my shops.
So eager to help you with testing!!!!!!!!!!!!!!!!!!!!!
#24
Posted 06 March 2007 - 03:06 PM
The only thing I can suggest is check the punctuation near line 1 make sure they all have semi colons, etc. Or post the first part of code and i will try to determine the problem.
lildog
#25
Posted 13 March 2007 - 08:19 PM
lildog, on Mar 6 2007, 11:06 AM, said:
The only thing I can suggest is check the punctuation near line 1 make sure they all have semi colons, etc. Or post the first part of code and i will try to determine the problem.
lildog
I tried to install the 1.5.4 version and got the same error. I reinsalled the 1.2 version and it was back to normal. The code is the same code in the 1.5.4 version release on the contribution page. There must be an error in it, but I can't find it.
Tools I'm using: OSC2.2 milestone2, Filezilla for FTP, PHP Designer 2007PE (nice), Araxis Merge 6.5 to compare files, XP(my box), Remote Server is shared Apache 1.3 Cpanel, CURL, and PHPmyAdmin through my hosts Cpanel to mess up the database.
#26
Posted 13 April 2007 - 01:28 AM
Leak-Proof, on Mar 13 2007, 01:19 PM, said:
<?php
/*
$Id: contrib_tracker.php,v .9 2007/01/08 11:25:32 lildog Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
_________________________________________________________________
Contribution Tracker MODULE for osC Admin
By Admin of www.silvermoon-jewelry.com
Based on:
Admin_notes: Original Code By: Robert Hellemans of www.RuddlesMills.com
RSS News for OSC
These are LIVE SHOPS - So please, no TEST accounts etc...
We will report you to your ISP if you abuse our websites!
note_created- original date added to store
contr_last_modified- last time (an update has been issued) modified at OSC Site
last_update- last updated in Store.
DATE_STATUS_CHANGE--DITCH, WHO CARES?
*/
require('includes/application_top.php');
require(DIR_WS_CLASSES . 'rdf_class.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTRIB_TRACKER);
$format = '%Y-%m-%d %H:%M:%S';
function tep_set_contrib_query_status($contr_id, $status,$contr_last_modified) {
// IF THERE IS NO LAST MODIFIED DATE USE NOW ELSE USE THE $contr_last_modified (LAST TIME THE CONTRIB APPEARED IN THE RSS FEED)
if ($contr_last_modified == NULL){
$last_update_date= strftime($format,time());
}else{
$last_update_date= $contr_last_modified;
}
if ($status == '0') {
return tep_db_query("update " . TABLE_CONTRIB_TRACKER . " set status = '0', date_status_change = NULL where contr_id = '" . $contr_id . "'");
} elseif ($status == '1') {
return tep_db_query("update " . TABLE_CONTRIB_TRACKER . " set status = '1', date_status_change = now(), last_update='" .$contr_last_modified. "' where contr_id = '" . $contr_id . "'");
} elseif ($status == '2') {
return tep_db_query("update " . TABLE_CONTRIB_TRACKER . " set status = '3', date_status_change = now(), last_update='" .$contr_last_modified. "' where contr_id = '" . $contr_id . "'");
} else {
return -1;
}
}
and the error reads as followsParse error: syntax error, unexpected T_STRING in /home/gojuryun/public_html/osCommerce/catalog/admin/includes/languages/english/contrib_tracker.php on line 1
#27
Posted 16 April 2007 - 07:17 PM
Quote
We will report you to your ISP if you abuse our websites!
note_created- original date added to store
contr_last_modified- last time (an update has been issued) modified at OSC Site
last_update- last updated in Store.
DATE_STATUS_CHANGE--DITCH, WHO CARES?
*/
Just a thought.
Tools I'm using: OSC2.2 milestone2, Filezilla for FTP, PHP Designer 2007PE (nice), Araxis Merge 6.5 to compare files, XP(my box), Remote Server is shared Apache 1.3 Cpanel, CURL, and PHPmyAdmin through my hosts Cpanel to mess up the database.
#28
Posted 16 April 2007 - 07:49 PM
#29
Posted 17 April 2007 - 10:40 PM
gojuryu, on Apr 12 2007, 09:28 PM, said:
Parse error: syntax error, unexpected T_STRING in /home/gojuryun/public_html/osCommerce/catalog/admin/includes/languages/english/contrib_tracker.php on line 1
The code you posted is from admin/contrib_tracker but your error message is for admin/includes/languages/english/contrib_tracker -- so if you tried to upload the admin/contrib_tracker in binary format and that did not work, try doing the same with ..english/contrib_tracker or checking that file for errors (blank line before the first < ?php or semicolon missing after first define statement, etc)
#30
Posted 17 April 2007 - 10:44 PM
#31
Posted 02 May 2007 - 08:38 PM
candleman, on Apr 16 2007, 03:49 PM, said:
Switching to binary worked for me too, Thank-you.
RJ
Tools I'm using: OSC2.2 milestone2, Filezilla for FTP, PHP Designer 2007PE (nice), Araxis Merge 6.5 to compare files, XP(my box), Remote Server is shared Apache 1.3 Cpanel, CURL, and PHPmyAdmin through my hosts Cpanel to mess up the database.
#32
Posted 21 May 2007 - 04:51 PM
Maureen, on Apr 17 2007, 06:44 PM, said:
I made changes to the update query in admin/contrib_tracker.php to allow the Edit function to work, these changes have not affected any other function, so far
From
case 'update':
if ($old_status!='1' && $status=='1'){
$last_update=date("Y-m-d H:M:S");
}
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'] . "'");
To
case 'update':
if ($old_status!='1' && $status=='1'){
$last_update=date("Y-m-d H:M:S");
}
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 = '" . $HTTP_POST_VARS['last_update'] . "', note_created = '" . $HTTP_POST_VARS['note_created'] . "',contrib_vers= '" . $HTTP_POST_VARS['contrib_vers'] . "' where contr_id = '" . $HTTP_POST_VARS['contr_id'] . "'");
//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'] . "'");
#33
Posted 08 August 2007 - 02:37 AM
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\Program Files\xampp\htdocs\catalog\admin\contrib_tracker.php on line 336
Warning: reset() [function.reset]: Passed variable is not an array or object in C:\Program Files\xampp\htdocs\catalog\admin\includes\classes\object_info.php on line 17
Warning: Variable passed to each() is not an array or object in C:\Program Files\xampp\htdocs\catalog\admin\includes\classes\object_info.php on line 18
Can anyone help?
#34
Posted 09 August 2007 - 07:02 PM
Problem is that our hosting company went and changed a couple settings on our server which they intend to keep. These changes now affect this contribution. When we try to access the Contrib Tracker page on the admin side, we get this error "could not open XML input".
Here are the comments we received from our hosting company after they made the changes:
Quote
Is there a fix or workaround that someone can recommend to help resolve this issue? This only seems to affect this contribution as the rest of the site os working properly since changes were made by the host.
We have applied all updates to this contribution up through the fix posted 8/7/07, and still the error "could not open XML input" is issued when trying to pull up this page in admin.
Edited by golfman2006, 09 August 2007 - 07:04 PM.
#35
Posted 05 September 2007 - 02:24 PM
It appears there is an alternative, using the cURL library. I will work on it after I finish my current project. Give me a couple of days. If you know php moderately, which is all I know. google allow_url_fopen alternative and a number of references will come up. It is probably a good thing, it appears it is a minor security issue and my server will probably follow suit soon.
lildog
#36
Posted 06 September 2007 - 03:38 PM
Todd
#37
Posted 06 September 2007 - 10:45 PM
Warning: fopen(/www/shop/rsscache/contrib_rss.html) [function.fopen]: failed to open stream: No such file or directory in E:\WORK\xampp\htdocs\www\shop\admin\includes\functions\contrib_tracker.php on line 23
Warning: curl_setopt(): supplied argument is not a valid File-Handle resource in E:\WORK\xampp\htdocs\www\shop\admin\includes\functions\contrib_tracker.php on line 24
en [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] osCommerce, Open Source E-Commerce Solutions Copyright © 2006 osCommerce hpdl@oscommerce.com [url="http://www.oscommerce.com/images/oscommerce_88x31.gif"]http://www.oscommerce.com/images/oscommerce_88x31.gif[/url] [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] [url="http://www.oscommerce.com/community/contributions,3009"]http://www.oscommerce.com/community/contributions,3009[/url] Thu, 06 Sep 2007 15:42:58 -0400 [url="http://www.oscommerce.com/community/contributions,2146"]http://www.oscommerce.com/community/contributions,2146[/url] Thu, 06 Sep 2007 14:21:51 -0400 [url="http://www.oscommerce.com/community/contributions,5272"]http://www.oscommerce.com/community/contributions,5272[/url] $keywords = tep_db_input(tep_db_prepare_input($HTTP_GET_VARS['search']));
$where = ' where ';
$search = " ld.links_title like '%" . $keywords . "%' or l.links_url like '%" . $keywords . "%'";
}
if ($showLinkStatus == 'All')
$links_query_raw = "select l.links_id, l.links_url, l.links_image_url, l.links_date_added, l.links_last_modified, l.links_status, l.links_clicked, ld.links_title, ld.links_description, l.links_contact_name, l.links_contact_email, l.links_reciprocal_url, l.links_reciprocal_disable, l.links_status from " . TABLE_LINKS . " l left join ( " . TABLE_LINKS_DESCRIPTION . " ld ) on ( l.links_id = ld.links_id ) " . $where . $search . " order by " . $order;
else
$links_query_raw = "select l.links_id, l.links_url, l.links_image_url, l.links_date_added, l.links_last_modified, l.links_status, l.links_clicked, ld.links_title, ld.links_description, l.links_contact_name, l.links_contact_email, l.links_reciprocal_url, l.links_reciprocal_disable, l.links_status from " . TABLE_LINKS . " l left join ( " . TABLE_LINKS_DESCRIPTION . " ld ) on ( l.links_id = ld.links_id ) " . $where . " l.links_status = '" . $showLinkStatus . "' and " . $search . " order by " . $order;
und ersetze durch:
$where = ' where ';
if (isset($HTTP_GET_VARS['search']) && tep_not_null($HTTP_GET_VARS['search'])) {
$keywords = tep_db_input(tep_db_prepare_input($HTTP_GET_VARS['search']));
$where = ' where ';
$search = " and ld.links_title like '%" . $keywords . "%' or l.links_url like '%" . $keywords . "%'";
}
else if ($showLinkStatus == 'All')
$where = '';
if ($showLinkStatus == 'All')
$links_query_raw = "select l.links_id, l.links_url, l.links_image_url, l.links_date_added, l.links_last_modified, l.links_status, l.links_clicked, ld.links_title, ld.links_description, l.links_contact_name, l.links_contact_email, l.links_reciprocal_url, l.links_reciprocal_disable, l.links_status from " . TABLE_LINKS . " l left join ( " . TABLE_LINKS_DESCRIPTION . " ld ) on ( l.links_id = ld.links_id ) " . $where . $search . " order by " . $order;
else
$links_query_raw = "select l.links_id, l.links_url, l.links_image_url, l.links_date_added, l.links_last_modified, l.links_status, l.links_clicked, ld.links_title, ld.links_description, l.links_contact_name, l.links_contact_email, l.links_reciprocal_url, l.links_reciprocal_disable, l.links_status from " . TABLE_LINKS . " l left join ( " . TABLE_LINKS_DESCRIPTION . " ld ) on ( l.links_id = ld.links_id ) " . $where . " l.links_status = '" . $showLinkStatus . "'" . $search . " order by " . $order]]> Thu, 06 Sep 2007 13:43:51 -0400 [url="http://www.oscommerce.com/community/contributions,1642"]http://www.oscommerce.com/community/contributions,1642[/url] $new_image = $product_info['products_image_med'];
$image_width = MEDIUM_IMAGE_WIDTH;
$image_height = MEDIUM_IMAGE_HEIGHT;
} else {
$new_image = $product_info['products_image'];
$image_width = SMALL_IMAGE_WIDTH;
$image_height = SMALL_IMAGE_HEIGHT;}?>
<script language="javascript"><!--
document.write('<?php echo '<a href="java script:popupWindow(\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . '&image=0') . '\')">' . tep_image(DIR_WS_IMAGES . $new_image, addslashes($product_info['products_name']), $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_med']) . '">' . tep_image(DIR_WS_IMAGES . $new_image . '&image=0', addslashes($product_info['products_name']), $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
</noscript>
<!-- // EOF MaxiDVD: Modified For Ultimate Images Pack! //-->
3 -Finished!
Note: use squre image proportion for best result.
Please email for your question: osi@osicommerce.com
Forum topic for UF: [url="http://forums.oscommerce.com/index.php?showtopic=275418"]http://forums.oscommerce.com/index.php?showtopic=275418[/url]
Demo : [url="http://osicommerce.com/demo1/product_info.php?cPath=2&products_id=6"]http://osicommerce.com/demo1/product_info....p;products_id=6[/url]
(if you want to customize this to your store please email us. -size, color & buttons-)
osicommerce]]> Thu, 06 Sep 2007 13:04:25 -0400 [url="http://www.oscommerce.com/community/contributions,3398"]http://www.oscommerce.com/community/contributions,3398[/url] Thu, 06 Sep 2007 11:50:32 -0400 [url="http://www.oscommerce.com/community/contributions,4815"]http://www.oscommerce.com/community/contributions,4815[/url] Thu, 06 Sep 2007 11:34:05 -0400 [url="http://www.oscommerce.com/community/contributions,160"]http://www.oscommerce.com/community/contributions,160[/url] Thu, 06 Sep 2007 09:17:02 -0400 [url="http://www.oscommerce.com/community/contributions,4061"]http://www.oscommerce.com/community/contributions,4061[/url] Thu, 06 Sep 2007 08:57:57 -0400 [url="http://www.oscommerce.com/community/contributions,2991"]http://www.oscommerce.com/community/contributions,2991[/url] Thu, 06 Sep 2007 07:56:52 -0400 [url="http://www.oscommerce.com/community/contributions,4067"]http://www.oscommerce.com/community/contributions,4067[/url] Thu, 06 Sep 2007 06:47:01 -0400 [url="http://www.oscommerce.com/community/contributions,5402"]http://www.oscommerce.com/community/contributions,5402[/url] Thu, 06 Sep 2007 05:03:02 -0400 [url="http://www.oscommerce.com/community/contributions,4789"]http://www.oscommerce.com/community/contributions,4789[/url] Thu, 06 Sep 2007 03:40:15 -0400 [url="http://www.oscommerce.com/community/contributions,5370"]http://www.oscommerce.com/community/contributions,5370[/url] Thu, 06 Sep 2007 01:59:08 -0400 [url="http://www.oscommerce.com/community/contributions,5308"]http://www.oscommerce.com/community/contributions,5308[/url] Thu, 06 Sep 2007 00:28:04 -0400 [url="http://www.oscommerce.com/community/contributions,5403"]http://www.oscommerce.com/community/contributions,5403[/url] Wed, 05 Sep 2007 13:07:49 -0400
Warning: fclose(): supplied argument is not a valid stream resource in E:\WORK\xampp\htdocs\www\shop\admin\includes\functions\contrib_tracker.php on line 29
could not open XML input
I followed the "Install Contribution Track" file and it's all ok. Could you help me?
#38
Posted 06 September 2007 - 11:00 PM
vWritePageToFile('http://feeds.feedburner.com/osCommerce_Contributions?format=xml' DIR_WS_CATALOG. 'rsscache/contrib_rss.html');
$channel = new rdfFile(DIR_WS_CATALOG. 'rsscache/contrib_rss.html'); //rss cached file path
for some reason, the curl function is not writting the file. Also be sure there is a folder rsscache with write permissions (777) in your catalog folder, check to see that DIR_WS_CATALOG points to your store root in configure.php.
lildog
#39
Posted 11 September 2007 - 09:08 PM
I have drive with this contri since the first version from you.
I have update to 1.5.6 but get this error now.
Fatal error: Call to undefined function: curl_init() in "MY URL/admin/includes/functions/contrib_tracker.php" on line 22
Line 22 is : $sh=curl_init($sHTMLpage);
Hope you can help me
#40
Posted 12 September 2007 - 12:02 AM
Warning: fopen(/catalog/rsscache/contrib_rss.html) [function.fopen]: failed to open stream: No such file or directory in C:\Program Files\xampp\htdocs\catalog\admin\includes\functions\contrib_tracker.php on line 23
Warning: curl_setopt(): supplied argument is not a valid File-Handle resource in C:\Program Files\xampp\htdocs\catalog\admin\includes\functions\contrib_tracker.php on line 24
Warning: fclose(): supplied argument is not a valid stream resource in C:\Program Files\xampp\htdocs\catalog\admin\includes\functions\contrib_tracker.php on line 29
could not open XML input









