【问题标题】:Magento contact form not workingMagento 联系表格不起作用
【发布时间】:2014-05-25 00:42:25
【问题描述】:

我是 Magento 的新手,所以如果这是一个愚蠢的问题,请多多包涵。

我刚刚将一个 Magento 站点从一台服务器移动到另一台服务器。遵循在数据库、.htaccess 和所有其他内容中更改基本 url 的所有步骤。网站在新服务器上运行良好。

不过有几个问题。

  1. 在联系我们表单上,当我提交它时,它只是重定向回同一页面,所有详细信息都被删除,并且没有发送任何电子邮件。这是主要问题。
  2. 我不确定这是否与第一个问题有关,但是当我登录后端并转到联系页面静态块时,内容框丢失如下:

    我在控制台中看到了这些错误。

    Uncaught SyntaxError: Unexpected token ILLEGAL fckeditor.html:58
    Uncaught ReferenceError: FCKBrowserInfo is not defined fckeditor.html?InstanceName=block_content&Toolbar=Default:128
    Uncaught ReferenceError: FCKConfig_LoadPageConfig is not defined fckeditor.html?InstanceName=block_content&Toolbar=Default:167
    Uncaught ReferenceError: FCKTools is not defined fckeditor.html?InstanceName=block_content&Toolbar=Default:179
    Uncaught ReferenceError: FCK_ContextMenu_Init is not defined fckeditor.html?InstanceName=block_content&Toolbar=Default:198
    Uncaught ReferenceError: FCKLang is not defined fckeditor.html?InstanceName=block_content&Toolbar=Default:206
    Uncaught ReferenceError: FCKBrowserInfo is not defined fckeditor.html?InstanceName=block_content&Toolbar=Default:334
    Uncaught ReferenceError: InitializeAPI is not defined fckeditor.html?InstanceName=block_content&Toolbar=Default:214
    

我真的不知道如何开始解决这个问题。非常感谢任何帮助。

【问题讨论】:

  • 你用的是什么版本?
  • @Mahan - 版本 1.3.2.1
  • 尝试使用较新的magento版本,最新的是1.8 ithink
  • 这就是问题的全部。另一个开发人员制作了这个网站,现在我不确定他是否篡改了任何核心文件。不想冒险在不知道我要进入什么的情况下更新它。

标签: magento contact-form


【解决方案1】:

问题出在此文件\js\fontis\fckeditor\editor\fckeditor.html 中。它正在尝试从 php 中回显一些 javascript,但空格正在成为问题。 从第 87 行开始

                document.body.innerHTML = '\

                <div style="border: 1px red solid; font-family: arial; font-size: 12px; color: red; padding:10px;">\

                    <p>\

                        <b>Your browser security settings don\'t allow FCKeditor to be opened from\

继续...这弄乱了 javascript。我删除了所有的空格,使它变成一个单行字符串并且它起作用了。

希望对你有帮助!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-31
    • 2016-10-28
    • 2014-10-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多