cancel
Showing results for 
Search instead for 
Did you mean: 

Js broken in Backend Magento 2.2.2

SOLVED

Js broken in Backend Magento 2.2.2

Hi, 

I have some problem on my online store with Magento 2.2.2

After enable merge Js in Magento Backend: Store/Configuration/Advanced/Developer and save config, I can't click any menu button in backend. I think that Js is broken and I can't go to Merge Js config and disable it again. Does anyone know how to solve this problem?

 

Thanks,

3 REPLIES

Re: Js broken in Backend Magento 2.2.2

Assuming you are still in developer mode.

 

You can resolve this issue by running below commands :

 

1) rm -rf generated
2) rm -rf pub/static
3) php bin/magento setup:static-content:deploy
4) php bin/magento setup:di:compile
5) php bin/magento cache:clean
6) php bin/magento cache:flush

 

if issue is still not resolved then run below query in your database :

 

insert core_config_data (config_id, scope, scope_id, path, value) values (null, 'default', 0, 'dev/static/sign', 0);

 

if issue solved,Click Kudos & Accept as Solution

Re: Js broken in Backend Magento 2.2.2

You go to database of M2 site, run this SQL command:
SELECT * FROM `core_config_data` WHERE `path` LIKE '%dev%'
Change 'dev/js/merge_files' to '0'
Then run deploy theme command with SSH to see if it works?

Otherwise, you could visit website BSSGeek to know the easiest & most optimal approach to this issue

Re: Js broken in Backend Magento 2.2.2

It seems great but as advised, I had already asked for some help from those developers from BSSGeek, they gave me a simple instruction and had made some changes accordingly on the site. It works now! But thank you for great support @ManthanDave @edward_charm

Best regards