Reputation: 561
I am a rookie with Magento so please bear with me if this is a stupid question.
I just moved a Magento site from one server to another. Followed all the steps of changing base url in databse, .htaccess and all other stuff. Site is live and working fine on the new server.
There are a couple of problems though.
I am not sure if this has some relation for the first problem but when I log into backend and go to Contact Page static block, the content box is missing like this:
and I see these errors in console.
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
I am really not sure how to even start troubleshooting this. Any help is much appreciated.
Upvotes: 0
Views: 2695
Reputation: 561
The problem was in this file \js\fontis\fckeditor\editor\fckeditor.html
. It is trying to echo some javascript from php but spaces were getting the the way.
Starting from line 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\
continued... this was messing up the javascript. I removed all the spaces make it into a single line string and it worked.
Hope it helps!
Upvotes: 1