{"id":3574,"date":"2014-03-28T11:02:27","date_gmt":"2014-03-28T11:02:27","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/28\/problem-about-magento-1-6-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:50:19","modified_gmt":"2022-08-30T15:50:19","slug":"problem-about-magento-1-6-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/28\/problem-about-magento-1-6-collection-of-common-programming-errors\/","title":{"rendered":"problem about magento-1.6-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7374a0927a35e40deae799aa83977a1e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPascut<br \/>\nmagento email zend-framework smtp magento-1.6<br \/>\nI have a magento website. I want to send mails using SMTP. I&#8217;ve found the below script hereI created this file: app\/code\/local\/Mage\/Core\/Model\/Email\/Template.php in order to overwrite the original core file.The problem is that I receive this error: Parse error: syntax error, unexpected T_VARIABLE in \/home\/xxx\/public_html\/app\/code\/local\/Mage\/Core\/Model\/Email\/Template.php on line 103public function getMail() {if (is_null($this-&gt;_mail)) { $my_smtp_host = Mage::getStoreConfig(&#8216;system\/smt<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c55271ea774e0adcdfa8eb9a4c54ae0f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBartosz G\u00f3rski<br \/>\nphp magento authentication apache2 magento-1.6<br \/>\nI&#8217;ve set up a new server for my magentocommerce.Unfortunatly when I moved the domain to the new location (tests have been done using another domain) a weird issue started happening: when the login page displays on the frontend, or the backend and I (and customers, of course) do submit the right credentials the page refresh, the cookie gets set but the form is displayed again. It&#8217;s such a cache being served instead of the right content (catalog).The only solution actually is delete the cache on t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1c6d9025166448d344a03ef48cc33ca1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nabnab<br \/>\nphp api magento soap magento-1.6<br \/>\nI am using SOAP V2 to create a cart and add products to it. I am having issues adding product to the cart. Below is my code and the error I am getting. It says &#8220;One item of products do not have identifier or sku&#8221;&lt;? \/*** Example of order creation* Preconditionsare as follows:* 1. Create a customer* 2. ?reate a simple product *\/$user = &#8216;users&#8217;; $password = &#8216;password&#8217;;$proxy = new SoapClient(&#8216;http:\/\/handyimports.com.au\/index.php\/api\/v2_soap?wsdl=1&#8217;);$sessionId = $proxy-&gt;login($user, $password<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3e121ae9ca280e6914597dacdf7c5340?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTheodores<br \/>\nphp javascript mysql magento magento-1.6<br \/>\nI&#8217;ve moved a magento install from the current shared hosting to a new VPS. I also moved it on a staging server.It works very well on the staging server but it doesn&#8217;t on the VPS.The issue I get (when trying to add a product) is:Uncaught ReferenceError: productAddToCartForm is not defined I moved the DB and the full source base, on both systems&#8230; so I can&#8217;t really figure out why it&#8217;s not working on the production VPS.By googling it seems that often it was a conflict between jQuery and Prototype<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d6aaebdcb177550d125de0c21a37bc7f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRonny<br \/>\nphp magento fatal-error magento-1.6<br \/>\ni am trying to clone my webshop again for a test environment. (magento 1.6.2 on a dedicated server)I never had any trouble doing this. I just deleted all the old content in FTP and DB and then i make a copy of the live store and synchronize the db.Then i change the url in the db and the test-db in the local.xml.I also clean the var\/cache and var\/session.This always worked well.But yesterday did the same &#8230; but now i get a http 500 error. (white screen)From the error logs: &#8220;GET \/ HTTP\/1.1&#8221; 500 2<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/bc78ecf1898c83d627f9779e0e47af15?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCarsten Gehling<br \/>\nmagento magento-1.6 magento-admin<br \/>\nI am trying to make a Magento module, to enable our Magento-webshop customers to import all our products automatically. Since I&#8217;m not yet very proficient in Magento development, I run into a few stops on the way&#8230; :-)Right now I try to make a AdminController in which the index page should simply display a text and a button to start the import process. It&#8217;s the &#8220;addButton&#8221; part, that I have trouble with:public function indexAction() {$this-&gt;loadLayout();$block = $this-&gt;getLayout()-&gt;crea<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/qky7R.jpg?s=32&amp;g=1\" \/><br \/>\nchanz<br \/>\nmagento magento-1.6 magento-1.7<br \/>\nBundle product is not visible at the front end maybe due to js issue, after upgrading from 1.6 to 1.7.0.1debugging with firebug i found the following js error&lt;script type=&#8221;text\/javascript&#8221;&gt; var optionsPrice = new Product.OptionsPrice( Fatal error: Call to undefined method Mage_Bundle_Model_Product_Price::getBasePrice() in \/var\/www\/vhosts\/stage.planetjill.com\/httpdocs\/app\/code\/core\/Mage\/Bundle\/Model\/Product\/Price.php on line 117 &lt;\/script&gt;the method in price.phppublic function getFinal<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f12c4f406c1a2a8bf7c4035af0865275?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1744827<br \/>\nmagento magento-1.6 configurable-product<br \/>\nthanks in advance to any help that anyone is able to offer. When a custom option field in magento is set to &#8216;required&#8217; it does not add to cart and asks user to select option. However when I uncheck the required option in admin in then works. I think this issue maybe affecting config products so I would like to find a solution other than not use the required option.Using Magento 1.6Thank you<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/2QehC.jpg?s=32&amp;g=1\" \/><br \/>\nhims056<br \/>\nmagento-1.7 magento-1.6 magento-admin<br \/>\nevery thing has been working well on my localhost but when i have uploaded it in the server after that whenever i am trying to login my admin panel then it is giving the following error.Fatal error: Call to undefined function curl_setopt() in D:\\INETPUB\\VHOSTS\\lostandfound.co.in\\nityapusta\\magento\\jewellery\\lib\\Varien\\Http\\Adapter\\Curl.php on line 87<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/402aa88a31b6f8391908d8a6f8a187a7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nThe Smart Dude<br \/>\nphp sql magento-1.6<br \/>\nHelp. I have been struggling with this error for a few days now and have yet to find an answer. I am trying to add a few columns to the orders grid in Magento 1.6.2 I followed the instructions from: [http:\/\/www.milessebesta.com\/web-design\/magento-customize-backend-order-grid-to-have-sku-e-mail-address-and-phone-number\/][1] Here is the error message: SQLSTATE[42S22]: Column not found: 1054 Unknown column&#8217;main_table.sfo.customer_email&#8217; in &#8216;where clause&#8217;Here is my code:protected function _getColle<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pascut magento email zend-framework smtp magento-1.6 I have a magento website. I want to send mails using SMTP. I&#8217;ve found the below script hereI created this file: app\/code\/local\/Mage\/Core\/Model\/Email\/Template.php in order to overwrite the original core file.The problem is that I receive this error: Parse error: syntax error, unexpected T_VARIABLE in \/home\/xxx\/public_html\/app\/code\/local\/Mage\/Core\/Model\/Email\/Template.php on line 103public function [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,1,8],"tags":[],"class_list":["post-3574","post","type-post","status-publish","format-standard","hentry","category-magento","category-uncategorized","category-zend-framework"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3574"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3574\/revisions"}],"predecessor-version":[{"id":8955,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3574\/revisions\/8955"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}