Uploaded image for project: 'PrestaShop 1.7'
  1. PrestaShop 1.7
  2. BOOM-4431

[Webservice] Error GET product with Cache enable

    Details

    • Type: Bug
    • Status: Need more Infos
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.7.2.0, 1.7.2.1, 1.7.2.2, 1.7.2.3, 1.7.2.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Epic Link:
    • How to reproduce the issue ?:
      Hide
      Install Prestashop.
      Install Memcached server (Or APC).
      Activate cache.
      Create a product via the webservice.
      Get the product just created via the Webservice.

      Show
      Install Prestashop. Install Memcached server (Or APC). Activate cache. Create a product via the webservice. Get the product just created via the Webservice.
    • Tests & Expected Results:
      N/A
    • Documentation Change:
      N/A

      Description

      Hi,

      I'm experiencing a problem with the prestashop webservice when the cache is enable.

      I'm currently running on a prestashop 1.7.2.4 base install with apache and PHP 7.0.

      I sent a POST to create a product and anythings goes well. But when I try to GET it, it return an XML with error like this:

       

      <error><message><![CDATA[[PHP Notice #8] Undefined index: id_image ([...]/classes/Product.php, line 5558)]]></message></error>
      

       

      I've try to trash cache cache manually, same result.

      I've try both memcached (even memcache) and APCu the result is the same.

      If I desactivate the cache and retry the same GET request, the webservice returns me a good response.

       

      I think this is weird that a "notice" Level breaks the webservice response and I don't see why it occurs only when cache enable.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              loyant Adrien Loyant
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: