Fix for Javascript error in wysiwyg editor when trying to add / edit content
Moderator: mcsmom
Fix for Javascript error in wysiwyg editor when trying to add / edit content
I had this problem and ran around in circles trying to find the fix.
At the bottom of the screen a Javascript error is shown and says done, but with errors... The buttons wouldn't work, I couldn't type into the WYSIWYG editor, etc.
I figured I should put it up here for easy finding. There are two solutions. The first is just a work around, but not very useful.
1. Use Firefox instead of IE
The second is what you should really do:
2. Go into your configuration.php or configuration.php-dist you have to change the line that starts with: $mosConfig_live_site = (do a search in notepad or your fave text editor. Once you find it look at the url.
If it is $mosConfig_live_site = 'http://www.yoursite.com change it to: $mosConfig_live_site = 'http://yoursite.com
If it is $mosConfig_live_site = 'http://yoursite.com change it to: $mosConfig_live_site = 'http://www.yoursite.com
That should work. Good luck.
At the bottom of the screen a Javascript error is shown and says done, but with errors... The buttons wouldn't work, I couldn't type into the WYSIWYG editor, etc.
I figured I should put it up here for easy finding. There are two solutions. The first is just a work around, but not very useful.
1. Use Firefox instead of IE
The second is what you should really do:
2. Go into your configuration.php or configuration.php-dist you have to change the line that starts with: $mosConfig_live_site = (do a search in notepad or your fave text editor. Once you find it look at the url.
If it is $mosConfig_live_site = 'http://www.yoursite.com change it to: $mosConfig_live_site = 'http://yoursite.com
If it is $mosConfig_live_site = 'http://yoursite.com change it to: $mosConfig_live_site = 'http://www.yoursite.com
That should work. Good luck.
Last edited by csolana on Mon Jun 12, 2006 5:32 pm, edited 1 time in total.
Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content
You made my day, I even missed Holland playing Argentina in the World Cup due to this #$@* problem!
I run Joomla using IIS 6.0 and turned it upside down, because I thought the problem was in there with Javascript, but I made the change you suggested (not expecting this would work) and it worked!
Thank You
Melvin
I run Joomla using IIS 6.0 and turned it upside down, because I thought the problem was in there with Javascript, but I made the change you suggested (not expecting this would work) and it worked!
Thank You
Melvin
Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content
Same here - great work finding this.
Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content
I am really glad you found it helpful. This is a great program - server configs can be so confusing sometimes. Glad it is working for you. Good luck!
Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content
Csolana, thank you very much!
I am having this problem for a very long time! Thanks for sharing...
Next time, I will google before I am trying to solve it by myself
I am having this problem for a very long time! Thanks for sharing...
Next time, I will google before I am trying to solve it by myself
Advanced SEO - http://www.advanced.co.il/
Tel Aviv Visitor Guide - http://www.telavivvisitorguide.com
Tel Aviv Visitor Guide - http://www.telavivvisitorguide.com
Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content
I'm glad to hear this post has been beneficial. Just keep on remembering the www. sometimes it will disappear from your address bar and give you hell. If you have trouble with the wysiwyg look up at it... I had that issue recently and I am sure it is related to the issue I posted above. Once I figure out a permanent fix I will post it...
Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content
I have been working on this !&%#$@ issue for days and have posted it on the forum with no replies. csolana, you are a genius!
I have noticed many other posts of the same problem while trying to find an answer. I am going to put a link to this thread on all of the related posts I can find so others will benefit.
Thanks again,
Mike
I have noticed many other posts of the same problem while trying to find an answer. I am going to put a link to this thread on all of the related posts I can find so others will benefit.
Thanks again,
Mike
Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content
I am not at all a genius, I actually got the info from some genius on the forums after days and hours of searching through hundreds of posts. I thought since I had such a hard time, and knew others would have the same problem I should use a descriptive title and keywords that I knew you guys would be searching for.
If people would use better titles/keywords in their posts it would make the forums much more useful.
I am really glad it helped you. Hopefully in the new release they will make it so that it works with and without www. because it is just a plain pain in the butt for it to be so restricted. Good luck.
If people would use better titles/keywords in their posts it would make the forums much more useful.
I am really glad it helped you. Hopefully in the new release they will make it so that it works with and without www. because it is just a plain pain in the butt for it to be so restricted. Good luck.
Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content
I ran into this problem as well and before I came across this thread, I found a solution to the same problem but for TinyMCE. I implemented that fix for fckeditor. It involves a few lines of code changes in mambots/editors/fckeditor.php. The edited fckeditor.php file is attached.
- Attachments
-
- fckeditor.zip
- (2.09 KiB) Downloaded 38 times
Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content
You have no idea how happy this makes me!!! I went so far as to find a new host, because I thought it was a permissions thing they wouldn't fix for me. When it happened on the new one, I was floored. With the patched fckeditor.php and the change in config file, it works wonderfully. I worked WAY too many hours trying to fix this thing.
You guys ROCK!!!
You guys ROCK!!!
Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content
Great find here... Just as I thought, I can't be the first one to see this problem. I also checked out the demo for 1.0.0 and 1.5.0 and saw that things worked fine, thought it was odd to work for IE6.0 & 7.0 on the demo and mine had a problem. I downloaded FireFox and saw that worked, but really wanted to see if something could be done. A quick search here and BAM, all is good again.
Thanks,
robowerks
Thanks,
robowerks
Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content
Thanks for this posting. I spent two weeks tweaking with security settings and had almost given up when I found your posting.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sat Apr 14, 2007 3:32 am
Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content
csolana wrote:I had this problem and ran around in circles trying to find the fix.
At the bottom of the screen a Javascript error is shown and says done, but with errors... The buttons wouldn't work, I couldn't type into the WYSIWYG editor, etc.
I figured I should put it up here for easy finding. There are two solutions. The first is just a work around, but not very useful.
1. Use Firefox instead of IE
The second is what you should really do:
2. Go into your configuration.php or configuration.php-dist you have to change the line that starts with: $mosConfig_live_site = (do a search in notepad or your fave text editor. Once you find it look at the url.
If it is $mosConfig_live_site = 'http://www.yoursite.com change it to: $mosConfig_live_site = 'http://yoursite.com
If it is $mosConfig_live_site = 'http://yoursite.com change it to: $mosConfig_live_site = 'http://www.yoursite.com
That should work. Good luck.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sat Apr 14, 2007 3:32 am
Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content
I am not that computer literate. Would you be able to explain the fix to me in an easier way to understand