奇怪的错误,当加载页面的Magento [英] Weird errors when loading Magento page

查看:327
本文介绍了奇怪的错误,当加载页面的Magento的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开我的前端,我的浏览器返回这些奇怪的错误:

When I load my frontend my browser returns those weird errors:

Uncaught ReferenceError: Mage is not defined
Uncaught ReferenceError: Varien is not defined
Uncaught ReferenceError: decorateGeneric is not defined
Uncaught ReferenceError: VarienForm is not defined
Uncaught ReferenceError: VarienForm is not defined

当我尝试访问我的后端通过/管理我被重定向到前端(家)。

And when I try to access my backend via /admin I'm being redirected to the frontend (home).

试过一百万的东西来检测怎么回事,但似乎没有任何工作。

Tried a million things to detect whats going on but nothing seems to work.

我的Apache error.log中充满了类似的条目:

My Apache error.log is full of entries like:

File does not exist: /var/www/skin
script '/var/www/index.php' not found or unable to stat
script '/var/www/cron.php' not found or unable to stat

顺便说一句,我的Magento安装不上的/ var / WWW,它放在在/ var / WWW / Magento的

我是什么做错了吗?我能得到一些帮助pretty pretty好吗?

What am I doing wrong? Can I get some help pretty pretty please?

推荐答案

开放式的catalog.xml文件到你的主题

open "CATALOG.XML" file into your theme

添加此code

<default>

    <reference name="head">
        <action method="addJs"><script>varien/product.js</script></action>
        <action method="addJs"><script>varien/configurable.js</script></action>

        <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
        <action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
        <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
    </reference>

</default>

在默认的标签

我希望它的工作原理...

i hope it works...

这篇关于奇怪的错误,当加载页面的Magento的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆