Why is Magento 1.4 including javascript files by filesystem path?

前端 未结 10 2152
小鲜肉
小鲜肉 2020-12-29 10:53

I am in the process of testing a Magento 1.3 site using Magento 1.4. I am seeing very weird and inconsistent behavior. Instead of including the URL of my javascript files, M

10条回答
  •  灰色年华
    2020-12-29 11:34

    It was permissions issue in my case. These ssh commands run in the root directory of Magento fixed it:

        # chown all to proper user and group, ie. www-data
        chown -R www-data:www-data *
        # change all files permissions to 644
        find . -type f -exec chmod 644 {} \;
        # change all directories permissions to 755
        find . -type d -exec chmod 755 {} \;
        # change all to be writable in var and media directories
        chmod -R 777 var/ media/
    

    If it still doesn't work then change these two values for path column in the core_config_data in MySQL from "1" to "0":

    • dev/css/merge_css_files
    • dev/js/merge_files

提交回复
热议问题