cancel
Showing results for 
Search instead for 
Did you mean: 

FIXED Magento 2.1 product admin grid toolbar.js:357 Uncaught TypeError

FIXED Magento 2.1 product admin grid toolbar.js:357 Uncaught TypeError

Well, I figured it out. I had mod_pagespeed enabled on my server. The javascript it automatically imported into the html template was conflicting with the magento included js files.

 

Thanks.

 

 

After installing Magento 2.1 "ver 2.1.0 Magento Community Edition 2.1.0 GA" from console in the product admin getting grid header formatting problems in product and pages admin with a javascript error:
toolbar.js:357 Uncaught TypeError: Cannot read property 'offsetLeft' of undefined

Version 2.1.0 command line installation. Older installs have gone fine.

 

Any fixes? 

 

-- Environment --

CENTOS 7.2 x86_64
php 5.6
apache 2.4
5.6.30 - MySQL Community Server (GPL)

 

 

3 REPLIES

Re: FIXED Magento 2.1 product admin grid toolbar.js:357 Uncaught TypeError

Glad you were able to get it sorted, @ElliotGage!

--

Community Manager, Magento
Problem solved? Click Accept as Solution!
Still stuck? Check out our documentation: https://magento.com/resources/technical

Re: FIXED Magento 2.1 product admin grid toolbar.js:357 Uncaught TypeError

Hi!

The issue from mod_pagespeed, you config at server

please add etc/apache2/mods-available/pagespeed.conf

" ModPagespeedDisallow "*/admin/*"  // link admin
ModPagespeedDisallow "*/backend/*"
ModPagespeedDisallow "*/adminhtml/*""

Hope help you fix the issue Smiley Very Happy

Re: FIXED Magento 2.1 product admin grid toolbar.js:357 Uncaught TypeError

Hello I am working on Magento V 2.2.0 And I am facing the same issue. Please do guide how to resolve this thing,

 

Thanks.