Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image optimizer page: Uncaught ReferenceError: mediaImages is not defined #10

Open
thijssnowcountry opened this issue Jun 29, 2017 · 1 comment

Comments

@thijssnowcountry
Copy link

The getNewImagesAsJson function returns an empty result on my site. Optimising skin images worked fine.

@thijssnowcountry
Copy link
Author

Found out this error comes from the json_encode in getNewImagesAsJson in Welance_Kraken_Block_Adminhtml_Images_Media.

The problem is that json_encode throws an JSON_ERROR_UTF8 . Maybe there should be some extra error handling on the json_encode part .

vseager added a commit to vseager/kraken-magento that referenced this issue Dec 13, 2018
This fixes the following error when saving configuration:

```
Cannot send headers; headers already sent in /var/www/app/code/community/Welance/Kraken/Model/Observer.php, line 1

#0 /var/www/lib/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true)
kraken-io#1 /var/www/app/code/core/Mage/Core/Controller/Response/Http.php(107): Zend_Controller_Response_Abstract->setRedirect('http://vaping.v...', 302)
kraken-io#2 /var/www/app/code/core/Mage/Adminhtml/Controller/Action.php(358): Mage_Core_Controller_Response_Http->setRedirect('http://vaping.v...')
kraken-io#3 /var/www/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(195): Mage_Adminhtml_Controller_Action->_redirect('*/*/edit', Array)
kraken-io#4 /var/www/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_ConfigController->saveAction()
kraken-io#5 /var/www/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('save')
kraken-io#6 /var/www/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
kraken-io#7 /var/www/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
kraken-io#8 /var/www/app/Mage.php(691): Mage_Core_Model_App->run(Array)
kraken-io#9 /var/www/index.php(84): Mage::run('', 'store')
kraken-io#10 {main}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant