<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pleasanton Web Design &#187; oscommerce</title>
	<atom:link href="http://pleasantonwebdesignblog.com/category/oscommerce/feed" rel="self" type="application/rss+xml" />
	<link>http://pleasantonwebdesignblog.com</link>
	<description>Information on Web design, technology, and culture from my vantage point here in Pleasanton, California.</description>
	<lastBuildDate>Fri, 04 May 2012 18:22:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>OsCommerce Category Image Problem: &#8216;IMAGE DOES NOT EXIST&#8217;</title>
		<link>http://pleasantonwebdesignblog.com/2008/07/oscommerce-category-image-problem-image-does-not-exist.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oscommerce-category-image-problem-image-does-not-exist</link>
		<comments>http://pleasantonwebdesignblog.com/2008/07/oscommerce-category-image-problem-image-does-not-exist.html#comments</comments>
		<pubDate>Thu, 24 Jul 2008 03:40:00 +0000</pubDate>
		<dc:creator>Troy Philis</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[oscommerce]]></category>

		<guid isPermaLink="false">http://pleasantonwebdesign.tpdevspace.com/?p=157</guid>
		<description><![CDATA[Here is the solution to a minor, but annoying problem I was having with some installations of OsCommerce. When saving an edit for a category, which already had an image file in the database, the image association would be lost and the error &#8216;IMAGE DOES NOT EXIST&#8217; would be displayed. The workaround was to use [...]]]></description>
			<content:encoded><![CDATA[<div class="none"><div class="g-plusone" data-href="http://pleasantonwebdesignblog.com/2008/07/oscommerce-category-image-problem-image-does-not-exist.html" size="small" count="true"></div></div><p>Here is the solution to a minor, but annoying problem I was having with some installations of OsCommerce. When saving an edit for a category, which already had an image file in the database, the image association would be lost and the error &#8216;IMAGE DOES NOT EXIST&#8217; would be displayed.  The workaround was to use the browse field to populate the image field each time you edited a record.</p>
<p>I had searched for the solution a number of times, but came up dry. Recently, however, when researching a contribution that added a text description for a category, I found the solution in the readme file (not available to search engines):</p>
<blockquote><p>CHANGES TO admin/categories.php</p>
<p>CAREFUL: These are not trivial changes.  There is a lot of code here.</p>
<p>1) Locate the following line (approximately  line 80) (image update bug repair provided in the bugs section on  oscommerce.com):<br />if ($categories_image = new upload(&#8216;categories_image&#8217;,  DIR_FS_CATALOG_IMAGES)) {<br />tep_db_query(&#8220;update &#8221; . TABLE_CATEGORIES . &#8221; set  categories_image = &#8216;&#8221; . tep_db_input($categories_image->filename) . &#8220;&#8216; where  categories_id = &#8216;&#8221; . (int)$categories_id . &#8220;&#8216;&#8221;);<br />}</p>
<p>REPLACE those 3  lines with the following 5 lines:<br />$categories_image = new  upload(&#8216;categories_image&#8217;);<br />$categories_image->set_destination(DIR_FS_CATALOG_IMAGES);<br />if  ($categories_image->parse() &amp;&amp; $categories_image->save())  {<br />tep_db_query(&#8220;update &#8221; . TABLE_CATEGORIES . &#8221; set categories_image = &#8216;&#8221; .  tep_db_input($categories_image->filename) . &#8220;&#8216; where categories_id = &#8216;&#8221; .  (int)$categories_id . &#8220;&#8216;&#8221;);<br />}</p></blockquote>
<p><!--QuoteEnd-->The comment says &#8220;image update bug repair provided in the bugs section on  oscommerce.com,&#8221; which I was never able to find.
<p>
<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-8315023803230274";
/* 468x60, created 1/7/09 */
google_ad_slot = "2170958206";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
]]></content:encoded>
			<wfw:commentRss>http://pleasantonwebdesignblog.com/2008/07/oscommerce-category-image-problem-image-does-not-exist.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

