cancel
Showing results for 
Search instead for 
Did you mean: 

Zend JSON Exception Decoding failed: Syntax error when saving Products

SOLVED

Zend JSON Exception Decoding failed: Syntax error when saving Products

We have just encountered a JSON Syntax Error on our Magento CE v1.9.1.1 site when saving products in admin view. Product updates and changes will now not save at all, instead generating a ‘Zend_Json_Exception - Decoding failed: Syntax error’. No configuration or programming changes were made immediately prior to this error first occurring and the site has been running without issue for months. The MySQL database seems healthy (the current database runs without error on an earlier fileset). It appears the problem is somewhere in the fileset. This may have been triggered by running out of disk space, which occurred around the same time frame. Has anyone come across this specific error before and have any ideas how to fix it? Or, have any helpful suggestions how to debug and track it down?

The error Stack Trace is as follows:
2016-08-21T02:01:55+00:00 ERR (3): exception 'Zend_Json_Exception' with message 'Decoding failed: Syntax error' in /var/www/html/magentostore/lib/Zend/Json.php:97 Stack trace: #0 /var/www/html/magentostore/app/code/local/Magestore/Webpos/Model/Observer.php(223): Zend_Json::decode('{"3568":1469961...')
#1 /var/www/html/magentostore/app/code/core/Mage/Core/Model/App.php(1339): Magestore_Webpos_Model_Observer->catalogProductSaveAfter(Object(Varien_Event_Observer))
#2 /var/www/html/magentostore/app/code/core/Mage/Core/Model/App.php(1318): Mage_Core_Model_App->_callObserverMethod(Object(Magestore_Webpos_Model_Observer), 'catalogProductS...', Object(Varien_Event_Observer))
#3 /var/www/html/magentostore/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('catalog_product...', Array)
#4 /var/www/html/magentostore/app/code/core/Mage/Core/Model/Abstract.php(466): Mage::dispatchEvent('catalog_product...', Array)
#5 /var/www/html/magentostore/app/code/core/Mage/Catalog/Model/Product.php(549): Mage_Core_Model_Abstract->_afterSave()
#6 /var/www/html/magentostore/app/code/core/Mage/Core/Model/Abstract.php(319): Mage_Catalog_Model_Product->_afterSave()
#7 /var/www/html/magentostore/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php(728): Mage_Core_Model_Abstract->save()
#8 /var/www/html/magentostore/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_Catalog_ProductController->saveAction()
#9 /var/www/html/magentostore/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('save')
#10 /var/www/html/magentostore/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#11 /var/www/html/magentostore/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#12 /var/www/html/magentostore/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#13 /var/www/html/magentostore/index.php(87): Mage::run('', 'store')
#14 {main}

We are running:
Linux Debian GNU/Linux 8 \n \l
Magento CE v1.9.1.1
PHP v5.6.17

Extensions installed include:
Magestore - Rewards Points 0.2.5, WebPOS 0.2.3, Gift Voucher 0.4.4 & OneStepCheckout 3.4.0
Ecomus Mediabox (YouTube Easy Light Box)

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Zend JSON Exception Decoding failed: Syntax error when saving Products

Resolved:

 

For anyone else who experiences this, it was caused by the webserver disk filling up during a product save, which corrupted the file

 /media/webpos/product_updated.txt.

 

This file is related to the Magestore WebPoS extension installed. Deleting (Linux->TRUNCATE) the contents of this file resolved the issue.

View solution in original post

1 REPLY 1

Re: Zend JSON Exception Decoding failed: Syntax error when saving Products

Resolved:

 

For anyone else who experiences this, it was caused by the webserver disk filling up during a product save, which corrupted the file

 /media/webpos/product_updated.txt.

 

This file is related to the Magestore WebPoS extension installed. Deleting (Linux->TRUNCATE) the contents of this file resolved the issue.