magento2: "Uncaught TypeError: Cannot read property 'clientWidth' of undefined" error message appears on New Media Gallery page
Preconditions (*)
- Install Magento with Adobe Stock Integration
- Configured integration in Stores -> Configuration -> Advanced-> System -> Adobe Stock Integration fieldset
Steps to reproduce (*)
- Log in Admin Panel and go to Stores - Configuration - Advanced - System- Media Gallery
- Set Enable Old Media Gallery to No.
- Save Config and clear Magento cache
- Log out from Admin
- Generate small profile for your instance
php bin/magento setup:performance:generate-fixtures setup/performance-toolkit/profiles/ce/small.xml - Perform Media Gallery synchronization
php bin/magento media-gallery-sync - Clear Magento cache
php bin/magento cache:clean - Log in Admin Pannel
- Go to Content - Media Gallery
Expected result (*)
Media Gallery is opened no error messages in dev console
Actual result (*)
❌ Uncaught TypeError: Cannot read property ‘clientWidth’ of undefined
Note
The bug is unstable, usually appeared on my system after Sign Out/Sign In Magento Admin
The error “comes from” ‘masanory.js’

About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 15 (6 by maintainers)
I believe we still need to fix it