Note that there are some explanatory texts on larger screens.

plurals
  1. POException raised in Varien_File_Uploader when using XMLRPC to modify categories
    text
    copied!<p>I'm using the Magento (1.6.2.0) XMLRPC-API to assign/remove products from a category. I recently looked into the exception logs and noticed that there are a lot of exceptions. Whenever I update the category the following error occurs:</p> <pre><code>2012-03-14T10:35:33+00:00 ERR (3): exception 'Exception' with message '$_FILES array is empty' in /path/to/magento/includes/src/Varien_File_Uploader.php:461 Stack trace: #0 /path/to/magento/includes/src/Varien_File_Uploader.php(149): Varien_File_Uploader-&gt;_setUploadFileId('image') #1 /path/to/magento/includes/src/Mage_Catalog_Model_Category_Attribute_Backend_Image.php(57): Varien_File_Uploader-&gt;__construct('image') #2 [internal function]: Mage_Catalog_Model_Category_Attribute_Backend_Image-&gt;afterSave(Object(Mage_Catalog_Model_Category)) #3 /path/to/magento/includes/src/__default.php(39967): call_user_func_array(Array, Array) #4 /path/to/magento/includes/src/__default.php(40958): Mage_Eav_Model_Entity_Abstract-&gt;walkAttributes('backend/afterSa...', Array) #5 /path/to/magento/includes/src/Mage_Catalog_Model_Resource_Category.php(235): Mage_Eav_Model_Entity_Abstract-&gt;_afterSave(Object(Mage_Catalog_Model_Category)) #6 /path/to/magento/includes/src/__default.php(40434): Mage_Catalog_Model_Resource_Category-&gt;_afterSave(Object(Mage_Catalog_Model_Category)) #7 /path/to/magento/includes/src/__default.php(5593): Mage_Eav_Model_Entity_Abstract-&gt;save(Object(Mage_Catalog_Model_Category)) #8 /path/to/magento/includes/src/Mage_Catalog_Model_Category_Api.php(528): Mage_Core_Model_Abstract-&gt;save() #9 [internal function]: Mage_Catalog_Model_Category_Api-&gt;removeProduct(23, '2743') #10 /path/to/magento/includes/src/Mage_Api_Model_Server_Handler_Abstract.php(292): call_user_func_array(Array, Array) #11 [internal function]: Mage_Api_Model_Server_Handler_Abstract-&gt;call('[removed]', 'category.remove...', Array) #12 /path/to/magento/includes/src/Zend_Server_Abstract.php(232): call_user_func_array(Array, Array) #13 /path/to/magento/includes/src/Zend_XmlRpc_Server.php(599): Zend_Server_Abstract-&gt;_dispatch(Object(Zend_Server_Method_Definition), Array) #14 /path/to/magento/includes/src/Zend_XmlRpc_Server.php(337): Zend_XmlRpc_Server-&gt;_handle(Object(Zend_XmlRpc_Request_Http)) #15 /path/to/magento/includes/src/Mage_Api_Model_Server_Adapter_Xmlrpc.php(105): Zend_XmlRpc_Server-&gt;handle() #16 /path/to/magento/includes/src/Mage_Api_Model_Server.php(84): Mage_Api_Model_Server_Adapter_Xmlrpc-&gt;run() #17 /path/to/magento/app/code/core/Mage/Api/controllers/XmlrpcController.php(39): Mage_Api_Model_Server-&gt;run() #18 /path/to/magento/includes/src/__default.php(13333): Mage_Api_XmlrpcController-&gt;indexAction() #19 /path/to/magento/includes/src/__default.php(17589): Mage_Core_Controller_Varien_Action-&gt;dispatch('index') #20 /path/to/magento/includes/src/__default.php(17180): Mage_Core_Controller_Varien_Router_Standard-&gt;match(Object(Mage_Core_Controller_Request_Http)) #21 /path/to/magento/includes/src/__default.php(19672): Mage_Core_Controller_Varien_Front-&gt;dispatch() #22 /path/to/magento/app/Mage.php(640): Mage_Core_Model_App-&gt;run(Array) #23 /path/to/magento/index.php(80): Mage::run('brillen', 'website') #24 {main} </code></pre> <p>The category is updated successfully, but I'm still wondering why this happens.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload