PrestaShop Webservices, операции PUT не выполняются - PullRequest
0 голосов
/ 25 апреля 2020

Я долго пользовался веб-сервисами prestashop для загрузки и обновления своих продуктов. Пока все было хорошо. Недавно я обнаружил, что обновление действий не удается, но get операций нет. Я прикрепляю XML, который использовал для обновления своего продукта.

<?xml version='1.0' encoding='UTF-8'?>
 <prestashop xmlns:xlink='http://www.w3.org/1999/xlink'>
     <product>
        <id>511</id>
        <id_manufacturer></id_manufacturer>
        <id_supplier></id_supplier>
        <id_category_default>42</id_category_default>
        <new></new>
        <cache_default_attribute></cache_default_attribute>
        <id_default_image></id_default_image>
        <id_default_combination></id_default_combination>
        <id_tax_rules_group>1</id_tax_rules_group>
        <position_in_category></position_in_category>
        <type></type>
        <id_shop_default></id_shop_default>
        <reference>CMSA16GX3M2A1333C9</reference>
        <supplier_reference></supplier_reference>
        <location></location>
        <width></width>
        <height></height>
        <depth></depth>
        <weight>0</weight>
        <quantity_discount></quantity_discount>
        <ean13></ean13>
        <isbn></isbn>
        <upc></upc>
        <cache_is_pack></cache_is_pack>
        <cache_has_attachments></cache_has_attachments>
        <is_virtual></is_virtual>
        <state>1</state>
        <additional_delivery_times></additional_delivery_times>
        <delivery_in_stock><language id='2'></language></delivery_in_stock>
        <delivery_out_stock><language id='2'></language></delivery_out_stock>
        <on_sale></on_sale>
        <online_only></online_only>
        <ecotax></ecotax>
        <minimal_quantity>1</minimal_quantity>
        <low_stock_threshold></low_stock_threshold>
        <low_stock_alert></low_stock_alert>
        <price>114.67</price>
        <wholesale_price></wholesale_price>
        <unity></unity>
        <unit_price_ratio></unit_price_ratio>
        <additional_shipping_cost></additional_shipping_cost>
        <customizable></customizable>
        <text_fields></text_fields>
        <uploadable_files></uploadable_files>
        <active>1</active>
        <redirect_type></redirect_type>
        <id_type_redirected></id_type_redirected>
        <available_for_order>1</available_for_order>
        <available_date></available_date>
        <show_condition></show_condition>
        <condition></condition>
        <show_price>1</show_price>
        <indexed></indexed>
        <visibility></visibility>
        <advanced_stock_management></advanced_stock_management>
        <date_add></date_add>
        <date_upd></date_upd>
        <pack_stock_type></pack_stock_type>
        <meta_description><language id='2'></language></meta_description>
        <meta_keywords><language id='2'></language></meta_keywords>
        <meta_title><language id='2'></language></meta_title>
        <link_rewrite><language id='2'>16Gb-2x8Gb-DDR3-1333MHz-SODIMM</language></link_rewrite>
        <name><language id='2'><![CDATA[16Gb 2x8Gb DDR3 1333MHz SODIMM]]></language></name>
        <description><language id='2'><![CDATA[]]></language></description>
        <description_short><language id='2'></language></description_short>
        <available_now><language id='2'></language></available_now>
        <available_later><language id='2'></language></available_later>
        <associations>
            <categories>
                <category>
                <id>42</id>
                </category>
            </categories>
            <images>
                <image>
                <id></id>
                </image>
            </images>
            <combinations>
                <combination>
                <id></id>
                </combination>
            </combinations>
            <product_option_values>
                <product_option_value>
                <id></id>
                </product_option_value>
            </product_option_values>
            <product_features>
                <product_feature>
                <id></id>
                <id_feature_value></id_feature_value>
                </product_feature>
            </product_features>
            <tags>
                <tag>
                <id></id>
                </tag>
            </tags>
            <stock_availables>
                <stock_available>
                <id></id>
                <id_product_attribute></id_product_attribute>
                </stock_available>
            </stock_availables>
            <accessories>
                <product>
                <id></id>
                </product>
            </accessories>
            <product_bundle>
                <product>
                <id></id>
                <quantity></quantity>
                </product>
            </product_bundle>
        </associations>
    </product>
</prestashop>

Ответ всегда один и тот же:

<html>
<head><title>524 Origin Time-out</title></head>
<body bgcolor="white">
<center><h1>524 Origin Time-out</h1></center>
<hr><center>cloudflare-nginx</center>
</body>
</html>

кажется, это связано с конфигурацией сервера, я проверил в следующем файле:

  • prestashop htaccess
  • apache конфигурация apache2.conf
  • prestashop var / logs file

но я не нашел ни одного случая PUT, и в журналах prestashop нет ничего

Я не ошибся в php_error.log или apache error.log

Что я могу Делать?

...