Guest Posted October 13, 2007 Share Posted October 13, 2007 I have been using SPPC successfully for some time now. However, I would like to add software for sale by download. When I tried to enable downloads in the Configuration I found that on adding products they would not save but gave errors. Before I proceed further I wondered whether SPPC would have affected this feature in any way. Regards, peter_of_stirling Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted October 13, 2007 Share Posted October 13, 2007 I have been using SPPC successfully for some time now. However, I would like to add software for sale by download. When I tried to enable downloads in the Configuration I found that on adding products they would not save but gave errors. Before I proceed further I wondered whether SPPC would have affected this feature in any way. A. It is more wise to ask questions about a contribution in its own thread. B. Download is an attribute, so how can it give errors on categories.php? C. Not knowing what errors you get doesn't help. D. Did you add any contributions for downloads in categories.php? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 14, 2007 Share Posted October 14, 2007 Hi Jan, I am currently using OSCommerce-2.2ms2-060817 with SPPC-4.15 I went into Admin, Configuration, Download, Enable Download set to true, and Download by Redirect set to true. Then I went to Catalog, Categories/Products and thought that I was entering a new product. However, when I tried to enter a new product then went to Preview I get Warning Variable passed to each() is not an array or object in /vhosts/webaddress/html/catalog/admin/includes/classes/object_info.php on line 17 Warning Variable passed to each() is not an array or object in /vhosts/webaddress/html/catalog/admin/includes/classes/object_info.php on line 18 I wonder what could have changed since I entered the last product? Regards, peter_of_stirling Quote Link to comment Share on other sites More sharing options...
Guest Posted October 14, 2007 Share Posted October 14, 2007 Many people get advise to set redirection to false.Try it. Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted October 14, 2007 Share Posted October 14, 2007 Then I went to Catalog, Categories/Products and thought that I was entering a new product. However, when I tried to enter a new product then went to Preview I get Warning Variable passed to each() is not an array or object in /vhosts/webaddress/html/catalog/admin/includes/classes/object_info.php on line 17 Warning Variable passed to each() is not an array or object in /vhosts/webaddress/html/catalog/admin/includes/classes/object_info.php on line 18 I wonder what could have changed since I entered the last product? Is it possible that your host changed the PHP-settings, so that you now need a register globals fix? The preview starts with: } elseif ($action == 'new_product_preview') { if (tep_not_null($HTTP_POST_VARS)) { $pInfo = new objectInfo($HTTP_POST_VARS); Maybe a quick check would be to change these lines (around 690) to: } elseif ($action == 'new_product_preview') { if (tep_not_null($_POST)) { $pInfo = new objectInfo($_POST); That will not solve it, but would give at least other errors. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.