{"action":"created","issue":{"url":"https://api.github.com/repos/Bukimedia/PrestaSharp/issues/222","repository_url":"https://api.github.com/repos/Bukimedia/PrestaSharp","labels_url":"https://api.github.com/repos/Bukimedia/PrestaSharp/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/Bukimedia/PrestaSharp/issues/222/comments","events_url":"https://api.github.com/repos/Bukimedia/PrestaSharp/issues/222/events","html_url":"https://github.com/Bukimedia/PrestaSharp/issues/222","id":178831513,"number":222,"title":"Error adding or updating Product","user":{"login":"Tomash85","id":22391737,"avatar_url":"https://avatars.githubusercontent.com/u/22391737?v=3","gravatar_id":"","url":"https://api.github.com/users/Tomash85","html_url":"https://github.com/Tomash85","followers_url":"https://api.github.com/users/Tomash85/followers","following_url":"https://api.github.com/users/Tomash85/following{/other_user}","gists_url":"https://api.github.com/users/Tomash85/gists{/gist_id}","starred_url":"https://api.github.com/users/Tomash85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tomash85/subscriptions","organizations_url":"https://api.github.com/users/Tomash85/orgs","repos_url":"https://api.github.com/users/Tomash85/repos","events_url":"https://api.github.com/users/Tomash85/events{/privacy}","received_events_url":"https://api.github.com/users/Tomash85/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Bukimedia/PrestaSharp/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"EduLeonPavon","id":3796292,"avatar_url":"https://avatars.githubusercontent.com/u/3796292?v=3","gravatar_id":"","url":"https://api.github.com/users/EduLeonPavon","html_url":"https://github.com/EduLeonPavon","followers_url":"https://api.github.com/users/EduLeonPavon/followers","following_url":"https://api.github.com/users/EduLeonPavon/following{/other_user}","gists_url":"https://api.github.com/users/EduLeonPavon/gists{/gist_id}","starred_url":"https://api.github.com/users/EduLeonPavon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EduLeonPavon/subscriptions","organizations_url":"https://api.github.com/users/EduLeonPavon/orgs","repos_url":"https://api.github.com/users/EduLeonPavon/repos","events_url":"https://api.github.com/users/EduLeonPavon/events{/privacy}","received_events_url":"https://api.github.com/users/EduLeonPavon/received_events","type":"User","site_admin":false},"assignees":[{"login":"EduLeonPavon","id":3796292,"avatar_url":"https://avatars.githubusercontent.com/u/3796292?v=3","gravatar_id":"","url":"https://api.github.com/users/EduLeonPavon","html_url":"https://github.com/EduLeonPavon","followers_url":"https://api.github.com/users/EduLeonPavon/followers","following_url":"https://api.github.com/users/EduLeonPavon/following{/other_user}","gists_url":"https://api.github.com/users/EduLeonPavon/gists{/gist_id}","starred_url":"https://api.github.com/users/EduLeonPavon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EduLeonPavon/subscriptions","organizations_url":"https://api.github.com/users/EduLeonPavon/orgs","repos_url":"https://api.github.com/users/EduLeonPavon/repos","events_url":"https://api.github.com/users/EduLeonPavon/events{/privacy}","received_events_url":"https://api.github.com/users/EduLeonPavon/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-09-23T09:43:07Z","updated_at":"2016-10-03T06:14:41Z","closed_at":null,"body":"I can't find an isue to resolve error when adding or updating Product.\r\nEverything works when I turn on error messages. When the errors are set to efine('_PS_MODE_DEV_', false); I'm geting ann error.\r\nPlease help.\r\n\r\n`<?xml version=\"1.0\" encoding=\"utf-8\"?>`\r\n`<prestashop>`\r\n`<product>`\r\n`<id xmlns=\"\">90133</id>`\r\n `<id_supplier xmlns=\"\">0</id_supplier>`\r\n  `<id_manufacturer xmlns=\"\">111</id_manufacturer>`\r\n  `<id_category_default xmlns=\"\">2</id_category_default>`\r\n  `<id_default_image d2p1:nil=\"true\" xmlns:d2p1=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"\" />`\r\n `<id_default_combination d2p1:nil=\"true\" xmlns:d2p1=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"\" />`\r\n  `<id_tax_rules_group xmlns=\"\">10</id_tax_rules_group>`\r\n`  <id_shop_default xmlns=\"\">2</id_shop_default>`\r\n ` <on_sale xmlns=\"\">1</on_sale>`\r\n`  <online_only xmlns=\"\">0</online_only>`\r\n`  <ean13 xmlns=\"\" />`\r\n`  <upc xmlns=\"\" />`\r\n ` <ecotax xmlns=\"\">0.000000</ecotax>`\r\n`  <minimal_quantity xmlns=\"\">0</minimal_quantity>`\r\n`  <price xmlns=\"\">25</price>`\r\n`  <wholesale_price xmlns=\"\">0.000000</wholesale_price>`\r\n`  <unity xmlns=\"\" />`\r\n`  <unit_price_ratio xmlns=\"\">0.000000</unit_price_ratio>`\r\n`  <additional_shipping_cost xmlns=\"\">0.00</additional_shipping_cost>`\r\n`  <reference xmlns=\"\">I00038435</reference>`\r\n`  <supplier_reference xmlns=\"\" />`\r\n`  <location xmlns=\"\" />`\r\n`  <width xmlns=\"\">0.000000</width>`\r\n`  <height xmlns=\"\">0.000000</height>`\r\n`  <depth xmlns=\"\">0.000000</depth>`\r\n`  <weight xmlns=\"\">0.000000</weight>`\r\n`  <quantity_discount xmlns=\"\">0</quantity_discount>`\r\n`  <customizable xmlns=\"\">0</customizable>`\r\n`  <uploadable_files xmlns=\"\">0</uploadable_files>`\r\n`  <text_fields xmlns=\"\">0</text_fields>`\r\n`  <active xmlns=\"\">1</active>`\r\n`  <redirect_type xmlns=\"\" />`\r\n`  <id_product_redirected xmlns=\"\">0</id_product_redirected>`\r\n`  <available_for_order xmlns=\"\">0</available_for_order>`\r\n`  <available_date xmlns=\"\">0000-00-00</available_date>`\r\n`  <condition xmlns=\"\">new</condition>`\r\n`  <show_price xmlns=\"\">0</show_price>`\r\n`  <indexed xmlns=\"\">1</indexed>`\r\n`  <visibility xmlns=\"\">both</visibility>`\r\n`  <cache_is_pack xmlns=\"\">0</cache_is_pack>`\r\n`  <cache_has_attachments xmlns=\"\">0</cache_has_attachments>`\r\n`  <is_virtual xmlns=\"\">0</is_virtual>`\r\n`  <cache_default_attribute xmlns=\"\">0</cache_default_attribute>`\r\n`  <date_add xmlns=\"\">2016-09-21 12:21:36</date_add>`\r\n`  <date_upd xmlns=\"\">2016-09-23 10:35:13</date_upd>`\r\n`  <advanced_stock_management xmlns=\"\">0</advanced_stock_management>`\r\n`  <meta_description xmlns=\"\">`\r\n`    <language id=\"1\" />`\r\n`  </meta_description>`\r\n`  <meta_keywords xmlns=\"\">`\r\n`    <language id=\"1\" />`\r\n`  </meta_keywords>`\r\n`  <meta_title xmlns=\"\">`\r\n  `  <language id=\"1\" />`\r\n`  </meta_title>`\r\n`  <link_rewrite xmlns=\"\">`\r\n`    <language id=\"1\">I00038435</language>`\r\n`  </link_rewrite>`\r\n`  <name xmlns=\"\">`\r\n`    <language id=\"1\">5255</language>`\r\n`  </name>`\r\n`  <description xmlns=\"\">`\r\n`    <language id=\"1\">OPRAWA EYE WHITE 5255</language>`\r\n`  </description>`\r\n`  <description_short xmlns=\"\">`\r\n`    <language id=\"1\" />`\r\n`  </description_short>`\r\n`  <available_now xmlns=\"\">`\r\n`    <language id=\"1\" />`\r\n`  </available_now>`\r\n`  <available_later xmlns=\"\">`\r\n`    <language id=\"1\" />`\r\n`  </available_later>`\r\n`  <associations xmlns=\"\">`\r\n`    <categories xmlns=\"\" />`\r\n`    <images xmlns=\"\" />`\r\n`    <combinations xmlns=\"\" />`\r\n`    <product_option_values xmlns=\"\" />`\r\n`    <product_features xmlns=\"\" />`\r\n`    <tags xmlns=\"\" />`\r\n`    <stock_availables xmlns=\"\">`\r\n`      <stock_available>`\r\n`        <id>99786</id>`\r\n`        <id_product_attribute>0</id_product_attribute>`\r\n`      </stock_available>`\r\n`    </stock_availables>`\r\n`    <product_bundle xmlns=\"\" />`\r\n`    <accessories xmlns=\"\" />`\r\n`  </associations>`\r\n`</product>`\r\n`</prestashop>`\r\n\r\n`NLS7F5CTL2XHTF6N7HCL84XYAHYT67WD`\r\n\r\n`application/json, application/xml, text/json, text/x-json, text/javascript, text/xml, text/html`\r\n\r\n`<?xml version=\"1.0\" encoding=\"UTF-8\"?>`\r\n`<prestashop xmlns:xlink=\"http://www.w3.org/1999/xlink\">`\r\n`<errors>`\r\n`<error>`\r\n`<message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message>`\r\n`</error>`\r\n`<error>`\r\n`<message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message>`\r\n`</error>`\r\n`<error>`\r\n`<message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message>`\r\n`</error>`\r\n`<error>`\r\n`<message><![CDATA[Internal error. To see this error please display the PHP errors.]]></message>`\r\n`</error>`\r\n`</errors>`\r\n`</prestashop>`\r\n` Odwołanie do obiektu nie zostało ustawione na wystąpienie obiektu. HttpStatusCode: `InternalServerError ---> System.NullReferenceException: Odwołanie do obiektu nie zostało ustawione `na wystąpienie obiektu.`\r\n`   w RestSharp.Deserializers.XmlDeserializer.GetElementByName(XElement root, XName name)`\r\n`   w RestSharp.Deserializers.XmlDeserializer.Map(Object x, XElement root)`\r\n`   w RestSharp.Deserializers.XmlDeserializer.Deserialize[T](IRestResponse response)`\r\n`   w RestSharp.RestClient.Deserialize[T](IRestRequest request, IRestResponse raw)`\r\n`   --- Koniec śladu stosu wyjątków wewnętrznych ---``\r\n "},"comment":{"url":"https://api.github.com/repos/Bukimedia/PrestaSharp/issues/comments/251033764","html_url":"https://github.com/Bukimedia/PrestaSharp/issues/222#issuecomment-251033764","issue_url":"https://api.github.com/repos/Bukimedia/PrestaSharp/issues/222","id":251033764,"user":{"login":"Tomash85","id":22391737,"avatar_url":"https://avatars.githubusercontent.com/u/22391737?v=3","gravatar_id":"","url":"https://api.github.com/users/Tomash85","html_url":"https://github.com/Tomash85","followers_url":"https://api.github.com/users/Tomash85/followers","following_url":"https://api.github.com/users/Tomash85/following{/other_user}","gists_url":"https://api.github.com/users/Tomash85/gists{/gist_id}","starred_url":"https://api.github.com/users/Tomash85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tomash85/subscriptions","organizations_url":"https://api.github.com/users/Tomash85/orgs","repos_url":"https://api.github.com/users/Tomash85/repos","events_url":"https://api.github.com/users/Tomash85/events{/privacy}","received_events_url":"https://api.github.com/users/Tomash85/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T06:14:41Z","updated_at":"2016-10-03T06:14:41Z","body":"The error is thrown when I'm trying to insert an image\r\n\r\n`ImageFactory imFac = new ImageFactory(BaseUrl, Account, password);`\r\n`Byte[] blob = new Byte[0];`\r\n`imFac.AddProductImage(productId, blob);`\r\n\r\n"}}
{"actor":{"display_login":"Tomash85"}}