cancel
Showing results for 
Search instead for 
Did you mean: 

Fout tijdens opslaan van bestelling: Decoding failed: Syntax error

Fout tijdens opslaan van bestelling: Decoding failed: Syntax error

Bij het bevestigen van een order in admin of via de shop krijg ik de volgende error

 

Fout tijdens opslaan van bestelling: Decoding failed: Syntax error

 

Log file geeft de volgende output, iemand een idee?

 


2019-08-16T09:30:02+00:00 ERR (3):
Zend_Locale_Exception: No date part in '' found. in /lib/Zend/Locale/Format.php:913
Stack trace:
#0 /lib/Zend/Locale/Format.php(1162): Zend_Locale_Format::_parseDate(false, Array)
#1 /app/code/core/Zend/Date.php(2639): Zend_Locale_Format::getDate(false, Array)
#2 /app/code/core/Zend/Date.php(1091): Zend_Date->_calculate('set', false, 'd MMM y HH:mm:s...', 'nl_NL')
#3 /app/code/core/Zend/Date.php(210): Zend_Date->set(false, NULL, 'nl_NL')
#4 /app/code/core/Mage/Core/Model/Locale.php(546): Zend_Date->__construct(false, NULL, Object(Zend_Locale))
#5 /app/code/core/Mage/Sales/Model/Abstract.php(81): Mage_Core_Model_Locale->storeDate(Object(Mage_Core_Model_Store), false, true)
#6 /app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php(296): Mage_Sales_Model_Abstract->getCreatedAtStoreDate()
#7 /app/code/community/Fooman/EmailAttachments/Model/Order/Pdf/Order.php(57): Mage_Sales_Model_Order_Pdf_Abstract->insertOrder(Object(Zend_Pdf_Page), Object(Emagicone_Mobassistantconnector_Model_Order), true)
#8 /app/code/community/Fooman/EmailAttachments/Model/Observer.php(283): Fooman_EmailAttachments_Model_Order_Pdf_Order->getPdf(Array)
#9 /app/code/community/Fooman/EmailAttachments/Model/Observer.php(314): Fooman_EmailAttachments_Model_Observer->_processSendQueueEvent(Object(Zend_Mail), Object(Fooman_EmailAttachments_Model_Core_Email_Queue))
#10 /app/code/core/Mage/Core/Model/App.php(1339): Fooman_EmailAttachments_Model_Observer->beforeSendQueuedOrder(Object(Varien_Event_Observer))
#11 /app/code/core/Mage/Core/Model/App.php(1318): Mage_Core_Model_App->_callObserverMethod(Object(Fooman_EmailAttachments_Model_Observer), 'beforeSendQueue...', Object(Varien_Event_Observer))
#12 /app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('fooman_emailatt...', Array)
#13 /app/code/community/Fooman/EmailAttachments/Model/Core/Email/Queue/Fooman.php(74): Mage::dispatchEvent('fooman_emailatt...', Array)
#14 /app/code/core/Mage/Cron/Model/Observer.php(325): Fooman_EmailAttachments_Model_Core_Email_Queue_Fooman->send(Object(Mage_Cron_Model_Schedule))
#15 /app/code/core/Mage/Cron/Model/Observer.php(72): Mage_Cron_Model_Observer->_processJob(Object(Mage_Cron_Model_Schedule), Object(Mage_Core_Model_Config_Element))
#16 /app/code/core/Mage/Core/Model/App.php(1339): Mage_Cron_Model_Observer->dispatch(Object(Varien_Event_Observer))
#17 /app/code/core/Mage/Core/Model/App.php(1318): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Cron_Model_Observer), 'dispatch', Object(Varien_Event_Observer))
#18 /app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('default', Array)
#19 /cron.php(75): Mage::dispatchEvent('default')
#20 {main}

Next Zend_Date_Exception: No date part in '' found. in /app/code/core/Zend/Date.php:2675
Stack trace:
#0 /app/code/core/Zend/Date.php(1091): Zend_Date->_calculate('set', false, 'd MMM y HH:mm:s...', 'nl_NL')
#1 /app/code/core/Zend/Date.php(210): Zend_Date->set(false, NULL, 'nl_NL')
#2 /app/code/core/Mage/Core/Model/Locale.php(546): Zend_Date->__construct(false, NULL, Object(Zend_Locale))
#3 /app/code/core/Mage/Sales/Model/Abstract.php(81): Mage_Core_Model_Locale->storeDate(Object(Mage_Core_Model_Store), false, true)
#4 /app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php(296): Mage_Sales_Model_Abstract->getCreatedAtStoreDate()
#5 /app/code/community/Fooman/EmailAttachments/Model/Order/Pdf/Order.php(57): Mage_Sales_Model_Order_Pdf_Abstract->insertOrder(Object(Zend_Pdf_Page), Object(Emagicone_Mobassistantconnector_Model_Order), true)
#6 /app/code/community/Fooman/EmailAttachments/Model/Observer.php(283): Fooman_EmailAttachments_Model_Order_Pdf_Order->getPdf(Array)
#7 /app/code/community/Fooman/EmailAttachments/Model/Observer.php(314): Fooman_EmailAttachments_Model_Observer->_processSendQueueEvent(Object(Zend_Mail), Object(Fooman_EmailAttachments_Model_Core_Email_Queue))
#8 /app/code/core/Mage/Core/Model/App.php(1339): Fooman_EmailAttachments_Model_Observer->beforeSendQueuedOrder(Object(Varien_Event_Observer))
#9 /app/code/core/Mage/Core/Model/App.php(1318): Mage_Core_Model_App->_callObserverMethod(Object(Fooman_EmailAttachments_Model_Observer), 'beforeSendQueue...', Object(Varien_Event_Observer))
#10 /app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('fooman_emailatt...', Array)
#11 /app/code/community/Fooman/EmailAttachments/Model/Core/Email/Queue/Fooman.php(74): Mage::dispatchEvent('fooman_emailatt...', Array)
#12 /app/code/core/Mage/Cron/Model/Observer.php(325): Fooman_EmailAttachments_Model_Core_Email_Queue_Fooman->send(Object(Mage_Cron_Model_Schedule))
#13 /app/code/core/Mage/Cron/Model/Observer.php(72): Mage_Cron_Model_Observer->_processJob(Object(Mage_Cron_Model_Schedule), Object(Mage_Core_Model_Config_Element))
#14 /app/code/core/Mage/Core/Model/App.php(1339): Mage_Cron_Model_Observer->dispatch(Object(Varien_Event_Observer))
#15 /app/code/core/Mage/Core/Model/App.php(1318): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Cron_Model_Observer), 'dispatch', Object(Varien_Event_Observer))
#16 /app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('default', Array)
#17 /cron.php(75): Mage::dispatchEvent('default')
#18 {main}

 

5 REPLIES 5

Re: Fout tijdens opslaan van bestelling: Decoding failed: Syntax error

Hello @MisterMcJohn ,

Please try to edit file: /lib/Zend/Locale/Format.php and try to add the verification of $number. Sometimes it's empty.

if (!empty($number) && count($splitted[0]) == 0) {
     iconv_set_encoding('internal_encoding', $oenc);
#require_once 'Zend/Locale/Exception.php';
throw new Zend_Locale_Exception("No date part in '$date' found."); }

If this works then please override this file in your custom module(not recommended to change core magento file)

Hope this will work for you.

If it helps you, please give us kudos ad accept it as solution.

Thank you.

Re: Fout tijdens opslaan van bestelling: Decoding failed: Syntax error

Hi sarvagya _pande

 

Thanks for your fast reply,

 

does it matter where I place this code in this file?

Re: Fout tijdens opslaan van bestelling: Decoding failed: Syntax error

This code is already written in this file you need to change that only. Please refer the link https://github.com/engineyard/magento-ce-1.9/blob/master/lib/Zend/Locale/Format.php#L868

I hope it will help you.

Re: Fout tijdens opslaan van bestelling: Decoding failed: Syntax error

Hi,

 

Thanks for your reply, but after change the file the problem stay's.

 

 

Re: Fout tijdens opslaan van bestelling: Decoding failed: Syntax error

Hello @MisterMcJohn ,

Please refer the link https://stackoverflow.com/questions/12253398/no-date-part-in-lib-zend-date-php1078-in-many-backend-p...

I hope it will works for you.

If it helps you, please give us kudos and accept it as solution.

Regards