Fix for Javascript error in wysiwyg editor when trying to add / edit content

Moderator: mcsmom

Post Reply
csolana
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jun 12, 2006 4:15 am

Fix for Javascript error in wysiwyg editor when trying to add / edit content

Post by csolana » Mon Jun 12, 2006 4:40 am

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. ;D
Last edited by csolana on Mon Jun 12, 2006 5:32 pm, edited 1 time in total.

starbuck01

Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content

Post by starbuck01 » Wed Jun 21, 2006 9:48 pm

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 :)

paulpa
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Aug 22, 2005 4:33 pm

Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content

Post by paulpa » Wed Jun 21, 2006 9:49 pm

Same here - great work finding this.

csolana
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jun 12, 2006 4:15 am

Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content

Post by csolana » Thu Jun 22, 2006 4:34 am

I am really glad you found it helpful.  ;D This is a great program - server configs can be so confusing sometimes. Glad it is working for you. Good luck!

User avatar
cdx
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Jan 01, 2006 11:44 pm
Contact:

Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content

Post by cdx » Sat Jul 08, 2006 4:14 pm

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 ;)
Advanced SEO - http://www.advanced.co.il/
Tel Aviv Visitor Guide - http://www.telavivvisitorguide.com

csolana
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jun 12, 2006 4:15 am

Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content

Post by csolana » Sun Jul 09, 2006 8:38 pm

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... :D

mikefitz

Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content

Post by mikefitz » Tue Jul 18, 2006 12:02 am

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

csolana
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jun 12, 2006 4:15 am

Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content

Post by csolana » Tue Jul 18, 2006 11:35 pm

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.

ktusznio

Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content

Post by ktusznio » Fri Jul 21, 2006 5:27 pm

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 37 times

lauramoon
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Jul 08, 2006 3:52 pm

Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content

Post by lauramoon » Wed Aug 16, 2006 5:51 pm

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!!!

robowerks

Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content

Post by robowerks » Sun Nov 05, 2006 3:12 am

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

Mari

Re: Fix for Javascript error in wysiwyg editor when trying to add / edit content

Post by Mari » Tue Apr 10, 2007 3:36 am

Thanks for this posting.  I spent two weeks tweaking with security settings and had almost given up when I found your posting. :laugh:

cpawannabe
Joomla! Fledgling
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

Post by cpawannabe » Sat Apr 14, 2007 3:33 am

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. ;D

cpawannabe
Joomla! Fledgling
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

Post by cpawannabe » Sat Apr 14, 2007 3:34 am

I am not that computer literate.  Would you be able to explain the fix to me in an easier way to understand


Post Reply