<?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>Karina Myers &#187; OsCommerce</title>
	<atom:link href="http://www.karinamyers.com/category/oscommerce/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.karinamyers.com</link>
	<description>A blog about Karina Myers, technology, trends, programming, scripts, wordpress, plugins, ajax, php, mysql. .. and many more!</description>
	<lastBuildDate>Wed, 07 Dec 2011 16:26:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>HowTo: Solution to Errors when Configuring OsCommerce with PayPal or Upgrading OsCommerce to PHP5</title>
		<link>http://www.karinamyers.com/2009/04/howto-solution-to-errors-when-configuring-oscommerce-with-paypal-or-upgrading-oscommerce-to-php5/</link>
		<comments>http://www.karinamyers.com/2009/04/howto-solution-to-errors-when-configuring-oscommerce-with-paypal-or-upgrading-oscommerce-to-php5/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 19:34:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OsCommerce]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.karinamyers.com/?p=266</guid>
		<description><![CDATA[A couple weeks ago I was in charge of configuring an OsCommerce account with PayPal Module. Unfortunately, when searching on the internet I came to find out that there wasn&#8217;t a lot of documentation on the web about this subject. So I had to spend a few more minutes trying to figure out some things [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-267" title="configure" src="http://www.karinamyers.com/wp-content/uploads/2009/04/configure.jpg" alt="configure" width="209" height="207" />A couple weeks ago I was in charge of configuring an OsCommerce account with PayPal Module. Unfortunately, when searching on the internet I came to find out that there wasn&#8217;t a lot of documentation on the web about this subject. So I had to spend a few more minutes trying to figure out some things that I wasn&#8217;t familiar with. Fortunately, I didn&#8217;t run into many problems, since I had configured OsCommerce a little while ago already, and I only had to take care of configuring PayPal.</p>
<p>However, there were a couple problems that  I noticed there wasn&#8217;t a lot of help documentation available online, so here I leave you a pretty short and specific post which I think is going to be very helpful for those who are looking to fix some problems while configuring their OsCommerce with Paypal or upgrading.</p>
<p><em><strong>Problem: </strong></em><strong></strong></p>
<p><strong>Shipping Modules not showing up in OsCommerce Admin Module</strong></p>
<p><em><strong>Solution:</strong></em></p>
<p>On the live server  login to the Admin page, and go to Tools &gt; Server Info. Search for &#8220;DOCUMENT_ROOT&#8221; then copy and paste the value for that field into admin/configure.php and add the catalog directory onto the end of it, like this:</p>
<blockquote><p>define(&#8216;DIR_FS_CATALOG&#8217;, &#8216;/home2/www/public_html/catalog/&#8217;);</p></blockquote>
<p>This fixed both the images folder issue and the modules issue. I have tested installing/removing modules and it&#8217;s all working ok.</p>
<p><em><strong>Problem: </strong></em></p>
<p><strong>Error When Clicking on Customers in the OsCommerce Admin page.<br />
</strong></p>
<blockquote><p>Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/xxxxxx/public_html/admin/customers.php on line 733</p>
<p>Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/xxxxxx/public_html/admin/customers.php on line 733</p>
<p>Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/xxxxxx/public_html/admin/customers.php on line 735</p>
<p>Warning: reset() [function.reset]: Passed variable is not an array or object in /home/xxxxxx/public_html/admin/includes/classes/object_info.php on line 17</p>
<p>Warning: Variable passed to each() is not an array or object in /home/xxxxxx/public_html/admin/includes/classes/object_info.php on line 18</p></blockquote>
<p><em><strong>Solution:</strong></em></p>
<p>This problem usually happens when you upgrade your OsCommerce site to PHP5 version.  So , if you are using PHP version 5, then this might be the answer.</p>
<p>Find these lines:</p>
<blockquote><p>$customer_info = array_merge($country, $info, $reviews);</p>
<p>$cInfo_array = array_merge($customers, $customer_info);</p></blockquote>
<p>and change them to:</p>
<blockquote><p>$customer_info = array_merge((array)$country, (array)$info, (array)$reviews);</p>
<p>$cInfo_array = array_merge((array)$customers, (array)$customer_info);</p></blockquote>
<p>I hope you find this short tutorial useful. When I run into this problems I wished I would have found a post like this, so here it is in a nutshell just for you. Until next time!</p>



Share & Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.karinamyers.com%2F2009%2F04%2Fhowto-solution-to-errors-when-configuring-oscommerce-with-paypal-or-upgrading-oscommerce-to-php5%2F&amp;title=HowTo%3A%20Solution%20to%20Errors%20when%20Configuring%20OsCommerce%20with%20PayPal%20or%20Upgrading%20OsCommerce%20to%20PHP5&amp;bodytext=A%20couple%20weeks%20ago%20I%20was%20in%20charge%20of%20configuring%20an%20OsCommerce%20account%20with%20PayPal%20Module.%20Unfortunately%2C%20when%20searching%20on%20the%20internet%20I%20came%20to%20find%20out%20that%20there%20wasn%27t%20a%20lot%20of%20documentation%20on%20the%20web%20about%20this%20subject.%20So%20I%20had%20to%20spend%20a%20f" title="Digg"><img src="http://www.karinamyers.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.karinamyers.com%2F2009%2F04%2Fhowto-solution-to-errors-when-configuring-oscommerce-with-paypal-or-upgrading-oscommerce-to-php5%2F&amp;t=HowTo%3A%20Solution%20to%20Errors%20when%20Configuring%20OsCommerce%20with%20PayPal%20or%20Upgrading%20OsCommerce%20to%20PHP5" title="Facebook"><img src="http://www.karinamyers.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.karinamyers.com%2F2009%2F04%2Fhowto-solution-to-errors-when-configuring-oscommerce-with-paypal-or-upgrading-oscommerce-to-php5%2F&amp;title=HowTo%3A%20Solution%20to%20Errors%20when%20Configuring%20OsCommerce%20with%20PayPal%20or%20Upgrading%20OsCommerce%20to%20PHP5&amp;notes=A%20couple%20weeks%20ago%20I%20was%20in%20charge%20of%20configuring%20an%20OsCommerce%20account%20with%20PayPal%20Module.%20Unfortunately%2C%20when%20searching%20on%20the%20internet%20I%20came%20to%20find%20out%20that%20there%20wasn%27t%20a%20lot%20of%20documentation%20on%20the%20web%20about%20this%20subject.%20So%20I%20had%20to%20spend%20a%20f" title="del.icio.us"><img src="http://www.karinamyers.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="" title="TwitThis"><img src="http://www.karinamyers.com/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=HowTo%3A%20Solution%20to%20Errors%20when%20Configuring%20OsCommerce%20with%20PayPal%20or%20Upgrading%20OsCommerce%20to%20PHP5&amp;body=http%3A%2F%2Fwww.karinamyers.com%2F2009%2F04%2Fhowto-solution-to-errors-when-configuring-oscommerce-with-paypal-or-upgrading-oscommerce-to-php5%2F" title="email"><img src="http://www.karinamyers.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.karinamyers.com%2F2009%2F04%2Fhowto-solution-to-errors-when-configuring-oscommerce-with-paypal-or-upgrading-oscommerce-to-php5%2F&amp;title=HowTo%3A%20Solution%20to%20Errors%20when%20Configuring%20OsCommerce%20with%20PayPal%20or%20Upgrading%20OsCommerce%20to%20PHP5" title="StumbleUpon"><img src="http://www.karinamyers.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.karinamyers.com/2009/04/howto-solution-to-errors-when-configuring-oscommerce-with-paypal-or-upgrading-oscommerce-to-php5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

