Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Contribution Tracker


lildog

Recommended Posts

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

[email protected]

 

 

http://www.oscommerce.com/images/oscommerce_88x31.gif

http://www.oscommerce.com

 

 

 

http://addons.oscommerce.com/info/888

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by kebo
Link to comment
Share on other sites

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 by kebo
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...

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 by 0ethos0
Link to comment
Share on other sites

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 by 0ethos0
Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...

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?

Link to comment
Share on other sites

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'];

}

?>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...

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 ?

Link to comment
Share on other sites

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!!

Link to comment
Share on other sites

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 by carryG
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...