<?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>Kansas City Web Developer - Steven Kohlmeyer &#187; OsCommerce</title>
	<atom:link href="http://stevenkohlmeyer.com/category/development/web-development-and-administration/php/ecommerce-e-commerce/oscommerce-os-commerce/feed/" rel="self" type="application/rss+xml" />
	<link>http://stevenkohlmeyer.com</link>
	<description>A Kansas City Web Developer&#039;s Blog for Reference of PHP, Javascript, Software, Web Design, Web Development, Programming, eCommerce Solutions, CMS Solutions, and many other solutions: Zen Cart, OS Commerce, Magento, Wordpress....</description>
	<lastBuildDate>Sat, 14 Apr 2012 02:56:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Moving OS Commerce from php4 to php5</title>
		<link>http://stevenkohlmeyer.com/development/web-development-and-administration/php/ecommerce-e-commerce/oscommerce-os-commerce/moving-os-commerce-from-php4-to-php5/</link>
		<comments>http://stevenkohlmeyer.com/development/web-development-and-administration/php/ecommerce-e-commerce/oscommerce-os-commerce/moving-os-commerce-from-php4-to-php5/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 19:35:00 +0000</pubDate>
		<dc:creator>SteveK</dc:creator>
				<category><![CDATA[OsCommerce]]></category>
		<category><![CDATA[a.authors_id]]></category>
		<category><![CDATA[moving]]></category>
		<category><![CDATA[on clause]]></category>
		<category><![CDATA[os commerce]]></category>
		<category><![CDATA[oscommerce]]></category>
		<category><![CDATA[php4]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[site migration]]></category>
		<category><![CDATA[Web Hosting]]></category>

		<guid isPermaLink="false">http://StevenKohlmeyer.com/2009/12/03/moving-os-commerce-from-php4-to-php5/</guid>
		<description><![CDATA[Select box Plugin option is: fourI&#8217;m not sure if this fix is due to os commerce mods or just cause it&#8217;s needed when migrating a site from php 4 to php 5. After I switched the os commerce site to a new host i had many problems. A few hours and all can be fixed. [...]]]></description>
			<content:encoded><![CDATA[<p style="color: #777;border:1px dashed #999; padding: 6px;">Select box Plugin option is: four</p><p>I&#8217;m not sure if this fix is due to os commerce mods or just cause it&#8217;s needed when migrating a site from php 4 to php 5. After I switched the os commerce site to a new host i had many problems. A few hours and all can be fixed. This is just one of my problems. After moving the site the article link was bring up an error message:</p>
<p>Unknown column &#8216;a.authors_id&#8217; in &#8216;on clause&#8217;</p>
<p>After google searching I found this fix which seems to work.</p>
<p>If anyone else finds this useful please post here and let me know.</p>
<p>Find the following variable in articles.php and change the query inside from:</p>
<p>$articles_all_query_raw = &#8220;select a.articles_id, a.articles_date_added, ad.articles_name, ad.articles_head_desc_tag, au.authors_id, au.authors_name, td.topics_id, td.topics_name from &#8221; . TABLE_ARTICLES . &#8221; a, &#8221; . TABLE_ARTICLES_TO_TOPICS . &#8221; a2t left join &#8221; . TABLE_TOPICS_DESCRIPTION . &#8221; td on a2t.topics_id = td.topics_id left join &#8221; . TABLE_AUTHORS . &#8221; au on a.authors_id = au.authors_id, &#8221; . TABLE_ARTICLES_DESCRIPTION . &#8221; ad where (a.articles_date_available IS NULL or to_days(a.articles_date_available) &lt;= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = &#8217;1&#8242; and a.articles_id = ad.articles_id and ad.language_id = &#8216;&#8221; . (int)$languages_id . &#8220;&#8216; and td.language_id = &#8216;&#8221; . (int)$languages_id . &#8220;&#8216; order by a.articles_date_added desc, ad.articles_name&#8221;;</p>
<p>TO:</p>
<p>$articles_all_query_raw = &#8220;select a.articles_id, a.articles_date_added, ad.articles_name, ad.articles_head_desc_tag, au.authors_id, au.authors_name, td.topics_id, td.topics_name from ((&#8221; . TABLE_ARTICLES . &#8221; a), &#8221; . TABLE_ARTICLES_TO_TOPICS . &#8221; a2t) left join &#8221; . TABLE_TOPICS_DESCRIPTION . &#8221; td on a2t.topics_id = td.topics_id left join &#8221; . TABLE_AUTHORS . &#8221; au on a.authors_id = au.authors_id, &#8221; . TABLE_ARTICLES_DESCRIPTION . &#8221; ad where (a.articles_date_available IS NULL or to_days(a.articles_date_available) &lt;= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = &#8217;1&#8242; and a.articles_id = ad.articles_id and ad.language_id = &#8216;&#8221; . (int)$languages_id . &#8220;&#8216; and td.language_id = &#8216;&#8221; . (int)$languages_id . &#8220;&#8216; order by a.articles_date_added desc, ad.articles_name&#8221;;</p>
]]></content:encoded>
			<wfw:commentRss>http://stevenkohlmeyer.com/development/web-development-and-administration/php/ecommerce-e-commerce/oscommerce-os-commerce/moving-os-commerce-from-php4-to-php5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

