M
M
multiscripter2015-01-25 05:41:37
Magento
multiscripter, 2015-01-25 05:41:37

How to fix incorrect paths for css and js files?

Good day to all.
The situation is this: there is a site on Magento with the address example.com. There was a need to make a test version of this site with the following address: example.com/test and the location of the files inside the folder with the production site. That is, like this: /var/www/Magento/MagentoTest. I copied the files, expanded the database, corrected the paths in the core_config_data table and the local.xml file. The result is this. If the merge of css and js files is disabled, then everything is fine and their paths are example.com/magento/magentotest/path/to/file.ext. But if you enable merge, then the files are not merged into one, but still output one by one, but with incorrect paths like: example.com/var/www/magento/magentotest/path/to/fi...After that, you can disable the merge again only by requesting the database from the console. Where is the dog rummaged and how to win it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Gerasimenko, 2015-01-25
@Hide

Have you tried deleting var/cache, media/css, media/js? The reason may still be in a third-party extension that performs merge. Throw a list of files in the /app/etc/modules folder. I had this when I used a third-party module for minify and merge. Deleting the data of this extension in core_config_data helped.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question