6

I merged CSS and/or JavaScript and my website is all messed up.

How do I disable the CSS/JS merge functions?

It's so messed up I can't access the Admin panel, how do I do it in the database?

7ochem
7,61516 gold badges54 silver badges82 bronze badges
asked Sep 3, 2015 at 5:20

2 Answers 2

16

go to database and execute this query

SELECT * FROM core_config_data WHERE path LIKE 'dev%'

change these value from 1 to 0

dev/js/merge_files
dev/css/merge_css_files
answered Sep 3, 2015 at 5:32
10

If you have access to the Admin backend, navigate to the following configuration and set both CSS and JS merge to No and save config

System=>Configuration=>Advanced=>Developer

Also check to make sure you haven't set up separate configuration scopes for this (arrow - upper right corner)

enter image description here

Then clear your Magento cache and the CSS and JS merge caches (buttons at bottom)

enter image description here

To manually do the above via database edits and manual cache clearing:

The settings for the CSS/JS merge are stored in the core_config_data table with the following paths. Use phpMyAdmin or the command line to change their values from 1 to 0

dev/js/merge_files
dev/css/merge_css_files

Flush the Magento cache by deleting all the mage--? sub-directories in var/cache/ so Magento's configuration settings will be reloaded.

The merge files for CSS and JS are stored in the following Magento directories, manually delete the contents of these folders.

media/js/
media/css/

NOTE: If flushing the Magento cache does not allow the config change to update, you may have the following issue: Can't change Magento config, stuck in cache

answered Sep 3, 2015 at 5:20

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.