cancel
Showing results for 
Search instead for 
Did you mean: 

Google Image Charts deprecation and update for M1

lkrell
New Contributor

Magento currently uses Google Image Charts to render static charts in Magento 1.x Admin dashboards. As of March 14, 2019, Google will stop supporting Google Image Charts. To resolve this issue, we are providing a patch to replace Google Image Charts with Image-Charts free service.

 

Users of Magento 1.x deployments will not be able to view static charts in M1x instances unless they download and apply this patch. Displayed charts have the same design and functionality of Google Image Charts through the Image-Charts free account service with a GDPR compliance privacy policy. For additional options, please see Image-Charts.

 

The patch is available from the downloads page of your Magento web account. See the instructions below in How to update for details.

 

For additional details, see our support KB Switch from deprecated Google Image Charts to Image-Charts for Magento1.

 

Magento versions requiring this patch

 

Merchants using the following Magento versions and editions need to update:

 

  • Magento Commerce 1.14.4.0 and earlier

 

  • Magento Open Source 1.9.4.0 and earlier

 

Important: Magento Commerce 1.14.4.1 and Magento Open Source 1.9.4.1 will include this chart update. Upgrading to these versions continues support for image charts without additional patches.

 

Patch information

 

The patch name is MPERF-10509.diff. It replaces Google Image Charts deprecated functionality with Image-Charts free service.

 

How to update

 

For Magento Commerce 1.X and Magento Open Source 1.X, follow these steps to download and install the patch. No additional configuration necessary.

 

Magento 1 Commerce

Follow these steps to download and apply the patch:

  1. Access My Account.
  2. Navigate to Downloads.
  3. Select the Magento edition and version (like Magento Commerce 1.X), then edition and version (like Commerce 1.X).
  4. Select Support Patches and Security Patches, then Select the Admin Dashboard Charts Patch, MPERF-10509.diff file.
  5. Download the MPERF-10509.diff to the desired directory.
  6. Apply the patch. See this guide for additional information.
  7. For the changes to be reflected, refresh the cache in the Admin under System > Cache Management.

 

Magento 1 Open Source

Follow these steps to download and apply the patch:

  1. Click this link to locate the Admin Dashboard Charts Patch on Magento Downloads.
  2. Select MPERF-10509.diff from the Select your format drop-down.
  3. Click Download and move to the desired directory.
  4. Apply the patch. See this guide for additional information.
  5. For the changes to be reflected, refresh the cache in the Admin under System > Cache Management.
13 Comments
psolovyov
Visitor

One install is normal (1.7.2), one broken (1.9.4.0).


Broken one just shows broken image (503 response) and a word "chart" next to it. (Cache was refreshed )

 

Any ideas?

francois-guilla
Visitor

If you have any issue with Image-Charts, please submit your issue on StackOverflow (tagging #Image-Charts) so the community can help you out!

Mukesh Tiwari
Moderator

Hi @lkrell 

For me there is no Admin Dashboard Charts Patch, MPERF-10509.diff availble for Magento 1 Commerce under Support Patches and Security Patches

Rahul K
Core Contributor

Hi @lkrell & @Mukesh Tiwari 

 

Same here. There is no Admin Dashboard Charts Patch, MPERF-10509.diff availble for Magento 1 Commerce under Support Patches and Security Patches for me too.

 

Can you please help me to find the patch for Magento 1 commerce?

 

Thank you. 

DazOG
Occasional Contributor

Are there any plans to refactor the charts code to use the current version of Google Charts API? (https://developers.google.com/chart/).

 

The image-charts.com solution, whilst welcomed to solve the immediate issue, is pretty poor compared to the original interactive Google charts.  It's essentially just a rendered image whereas the Google Charts version was a widget.

 

Also - the M1 patch is available here - https://magento.com/tech-resources/download#download2283 - this download worked and applied for me.

lkrell
New Contributor

Hello everyone! Sorry if you are not finding this patch for M1 Commerce. I am checking with the teams to find out why it isn't posted, what issue may be causing this.

 

I'll post soon as I can.

ActionISWeb
M1 Certified

It's there as Admin Dashboard Charts Patch https://magento.com/tech-resources/download#download2283

 

I second the opinion of DazOG, this is a major downgrade to something we glance at regularly. Why not update to newest Google version?

daniel_ftw
New Contributor

Good stuff!

Onilab has just released their module that fixes broken graphs - and they use the proper Google Charts API rather than image-charts dot com. Might be a better option:

https://github.com/onilab/magento-1-google-api-chart-fix

IztokS
Senior Member

Patch MPERF-10509-CE-2019-03-13-06-31-24.diff is not working for my 1.9.2.2 installation. Same problem as @psolovyov . Getting no graph and chart text next to it.

 

"Failed to load resource: the server responded with a status of 503 ()" is returned in browser console.

 

Magento exception:

a:5:{i:0;s:28:"Invalid header line detected";i:1;s:1482:"#0 /domain.com/public_html/lib/Zend/Http/Response.php(696): Zend_Http_Response::extractHeaders('HTTP/2 200 \r\nda...')
#1 /domain.com/public_html/lib/Zend/Http/Client.php(1110): Zend_Http_Response::fromString('HTTP/2 200 \r\nda...')
#2 /domain.com/public_html/lib/Varien/Http/Client.php(61): Zend_Http_Client->request('GET')
#3 /domain.com/public_html/app/code/core/Mage/Adminhtml/controllers/DashboardController.php(100): Varien_Http_Client->request('GET')
#4 /domain.com/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_DashboardController->tunnelAction()
#5 /domain.com/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('tunnel')
#6 /domain.com/public_html/app/code/local/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#7 /domain.com/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#8 /domain.com/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#9 /domain.com/public_html/index.php(82): Mage::run('default', 'store')
#10 {main}";s:3:"url";s:685:"/index.php/admin/dashboard/tunnel/key/7561a08841ce0bfde9f0bc99c81adae7/?ga=eyJjaHQiOiJsYyIsImNoZiI6ImJnLHMsZjRmNGY0fGMsbGcsOTAsZmZmZmZmLDAuMSxlZGVkZWQsMCIsImNobSI6IkIsZjRkNGIyLDAsMCwwIiwiY2hjbyI6ImRiNDgxNCIsImNoeHMiOiIwLDAsMTF8MSwwLDExIiwiY2htYSI6IjE1LDE1LDE1LDE1IiwiY2hkIjoiYTozMS4xNSwyMC45OCw5NS40OSw5OS41OCwxMzUuNSw1OC4xOCw3OS4xNiw1MC4wNywxMzEuMjIsOC4xMSwxOC42LDAsMCwxMC40OSwwLDAsMCwzMy4xOSwxNi44NTA0ODEsMTM4LjEsNDEuOTYsMjYuNzEsMjAuOTgsNTIuNDUiLCJjaHh0IjoieCx5IiwiY2h4bCI6IjA6fHx8MTY6MDB8fHwxOTowMHx8fDIyOjAwfHx8MDE6MDB8fHwwNDowMHx8fDA3OjAwfHx8MTA6MDB8fHwxMzowMHwxOnwwfDEwMHwyMDAiLCJjaHMiOiI1ODd4MzAwIiwiY2hnIjoiNC4zNDc4MjYwODY5NTY1LDUwLDEsMCJ9&h=365d134021dfde415638622d216942a3";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}
theMageComp
Trusted Contributor

PrePatched files uploaded.

https://github.com/magecomp/Magento-Pre-Patched-Files

 

Just to notify to @lkrell and Magento guys, not sure, only patch file changes didn't work for us, we had to make the changes in following file too. So added that in pre patched files.
app/design/adminhtml/default/default/template/dashboard/graph.phtml
arround line no. 61

replace this line :

<?php echo $this->getChartUrl(false) ?>
with
<?php echo $this->getChartUrl(true) ?>
Mukesh Tiwari
Moderator

Hi @lkrell 

 

The patch Admin Dashboard Charts Patch, MPERF-10509.diff is availble for Magento 1 Commerce under Support Patches and Security Patches

 

Thanks

Andy_Acute
Regular Contributor
Hi all - I've just update our Magento version to 1.9.4.1 and the dashboard charts are not displaying. In the initial post here it states "Magento Open Source 1.9.4.1 will include this chart update". Can anyone advise please? Thanks in advance. Andy
Mgfrench
Senior Member

Updated 2 versions to 1.9.4.2 from 4.0 and 1 works and the other doesn't.

 

When I visit the broken link, I get this:#

 

There has been an error processing your request
Invalid header line detected
Trace: #0 /home/newlifeappliance/public_html/lib/Zend/Http/Response.php(696): Zend_Http_Response::extractHeaders('HTTP/2 200 \r\nda...') #1 /home/newlifeappliance/public_html/lib/Zend/Http/Client.php(1110): Zend_Http_Response::fromString('HTTP/2 200 \r\nda...') #2 /home/newlifeappliance/public_html/lib/Varien/Http/Client.php(61): Zend_Http_Client->request('GET') #3 /home/newlifeappliance/public_html/app/code/core/Mage/Adminhtml/controllers/DashboardController.php(100): Varien_Http_Client->request('GET') #4 /home/newlifeappliance/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_DashboardController->tunnelAction() #5 /home/newlifeappliance/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('tunnel') #6 /home/newlifeappliance/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #7 /home/newlifeappliance/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch() #8 /home/newlifeappliance/public_html/app/Mage.php(687): Mage_Core_Model_App->run(Array) #9 /home/newlifeappliance/public_html/index.php(83): Mage::run('', 'store') #10 {main}