title: PrestaShop 1.6: able to add product through Webservices API in localhost, but not in live server
body: <p>In PrestaShop 1.6: I am able to add product through Webservices API in localhost, but not in live server</p>
  
  <p>I am getting this error "Uncaught exception 'PrestaShopWebserviceException' with message 'This call to PrestaShop Web Services failed and returned an HTTP status of 500. That means: Internal Server Error.' in" while executing the below script in linux server for live site, but same works fine localhost, what could be the issue? yes of course I did change the PS_SHOP_PATH and PS_WS_AUTH_KEY value for live site.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  define('DEBUG', true);
  define('_PS_DEBUG_SQL_', true);
  
  define('PS_SHOP_PATH', 'http://localhost/prestashop');
  define('PS_WS_AUTH_KEY', 'your-key-here');
  
  
   
  require_once('PSWebServiceLibrary.php');
  $webService = new PrestaShopWebservice(PS_SHOP_PATH, PS_WS_AUTH_KEY, DEBUG);
   
  
   $xml_product = $webService-&gt;get(array('resource' =&gt; 'products?schema=blank'));
   $resources_product = $xml_product-&gt;children()-&gt;children();
  
   
  $resources_product-&gt;id_manufacturer ='1';
  $resources_product-&gt;id_supplier ='1';
  $resources_product-&gt;id_category_default ='3';
  //$resources_product-&gt;new ='1';
  $resources_product-&gt;cache_default_attribute;
  $resources_product-&gt;id_default_image;
  $resources_product-&gt;id_default_combination;
  $resources_product-&gt;id_tax_rules_group;
  //$resources_product-&gt;position_in_category; 
  $resources_product-&gt;manufacturer_name; 
  //$resources_product-&gt;quantity="3"; 
  $resources_product-&gt;type;
  $resources_product-&gt;id_shop_default;
  $resources_product-&gt;reference='SKUID45';
  $resources_product-&gt;supplier_reference;
  $resources_product-&gt;location;
  $resources_product-&gt;width;
  $resources_product-&gt;height; 
  $resources_product-&gt;depth; 
  $resources_product-&gt;weight;
  $resources_product-&gt;quantity_discount; 
  $resources_product-&gt;ean13;
  $resources_product-&gt;upc;
  $resources_product-&gt;cache_is_pack;
  $resources_product-&gt;cache_has_attachments;
  $resources_product-&gt;is_virtual;
  $resources_product-&gt;on_sale;
  $resources_product-&gt;online_only;
  $resources_product-&gt;ecotax;
  $resources_product-&gt;minimal_quantity;
  $resources_product-&gt;price='20.00';
  $resources_product-&gt;wholesale_price;
  $resources_product-&gt;unity;
  $resources_product-&gt;unit_price_ratio; 
  $resources_product-&gt;additional_shipping_cost;
  $resources_product-&gt;customizable;
  $resources_product-&gt;text_fields;
  $resources_product-&gt;uploadable_files;
  $resources_product-&gt;active='1';
  $resources_product-&gt;redirect_type;
  $resources_product-&gt;id_product_redirected;
  $resources_product-&gt;available_for_order;
  $resources_product-&gt;available_date; 
  $resources_product-&gt;condition ='new'; 
  $resources_product-&gt;show_price; 
  $resources_product-&gt;indexed ='1';
  $resources_product-&gt;visibility = 'both';
  $resources_product-&gt;advanced_stock_management;
  $resources_product-&gt;date_add;
  $resources_product-&gt;date_upd;
  $resources_product-&gt;meta_description-&gt;language ='Product Meta Description';
  $resources_product-&gt;meta_keywords-&gt;language='Product Meta keywords';
  $resources_product-&gt;meta_title-&gt;language='Product Meta Title';
  $resources_product-&gt;link_rewrite-&gt;language='product-url-key'; 
  $resources_product-&gt;name-&gt;language='Product Name'; 
  $resources_product-&gt;description-&gt;language='Product Description';
  $resources_product-&gt;description_short-&gt;language='Product Short Description ';
  $resources_product-&gt;available_now-&gt;language='30/10/14'; 
  $resources_product-&gt;available_later-&gt;language;
  $resources_product-&gt;associations-&gt;categories-&gt;addChild('category')-&gt;addChild('id', 3);
  
  
  $xml_product = $webService-&gt;add(array('resource' =&gt; 'products', 'postXml' =&gt; $xml_product-&gt;asXML())); 
   
     ?&gt;</code></pre>
  </div>
  </div>
  </p>