tiny_mce not working since upgrade to 0.7.25

e107 CMS » Forums » e107 v1.x Support » Core Code Support << Previous thread | Next thread >>
daddycee
Apr 14 2011, 01:41AM
Registered Member #50648
Joined: Apr 01 2009, 03:23AM
Posts: 16
Anyone else had the same problem where the WYSIWYG editor Tiny MCE is not working after upgrade please?
Go to top
daddycee
Apr 14 2011, 01:47AM
Registered Member #50648
Joined: Apr 01 2009, 03:23AM
Posts: 16
figured it out from the file checker
Go to top
nlstart
Apr 14 2011, 02:29AM
nlstart
  • e107 Site administrator
  • e107 Core developer
  • e107 Translation Team Leader
Registered Member #29855
Joined: Aug 18 2006, 01:12AM
Location: Utrecht, The Netherlands
Posts: 5488
Thanks for the response; it might help others to check their installed files with the Admin > File Inspector.
Go to top
Website
novabcfc
Apr 14 2011, 08:46PM
Registered Member #30954
Joined: Sep 27 2006, 11:12PM
Posts: 169
Same problem here and file check show all files are ok. the wysiwyg works in FF and Chrome but not in IE8
Go to top
MikeyGMT
Apr 15 2011, 02:49AM
MikeyGMT
  • e107 Site administrator
  • e107 Documentation Team Leader
Registered Member #5146
Joined: Dec 30 2003, 06:04AM
Location: Swansea, Surf City, Wales!
Posts: 1522
Nova - I am not surprised at 4 AM! And you sure you cleared your caches? Also... in the SVN, I notice there is an update:
WYSIWYG
* TinyMce wasn't showing for non-admins - r12133 [-link-]
Either grab the individual file or the Tar Ball over on the download tab...
Go to top
novabcfc
Apr 15 2011, 09:22AM
Registered Member #30954
Joined: Sep 27 2006, 11:12PM
Posts: 169
That didn't work, IE8 displays this error.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SIMBAR={675C9018-79E2-4AEA-940D-8741DA674202}; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; AskTbAF2/5.9.0.12758)
Timestamp: Fri, 15 Apr 2011 16:21:35 UTC


Message: Expected identifier, string or number
Line: 61
Char: 4
Code: 0
/e107_admin/cpage.php?create

[ Edited Apr 15 2011, 09:23AM ]
Go to top
MikeyGMT
Apr 15 2011, 09:44AM
MikeyGMT
  • e107 Site administrator
  • e107 Documentation Team Leader
Registered Member #5146
Joined: Dec 30 2003, 06:04AM
Location: Swansea, Surf City, Wales!
Posts: 1522
Hiya,
cpage.php Line 61 is

if(isset($_POST['updateMenu']))
{
	$page -> submitPage($_POST['pe_id'], TRUE);
}


What are the navigation steps to get to the error? Which fields were filled in? I've created a page and a menu, the editor loads and I don't get an error.

In the debug page, at the very bottom, when ALL DETAILS turned on, there is a backtrace button. It should display the Arrag details.
ED: but I dont have IE8... sorry
But I do have IE7 so testing on there now.

Tested IE7 - and TinyMCE does not appear, no helpful messages...
Tried the new copy of wysiwyg.php does not help.
[ Edited Apr 15 2011, 09:58AM ]
Go to top
novabcfc
Apr 15 2011, 09:59AM
Registered Member #30954
Joined: Sep 27 2006, 11:12PM
Posts: 169
THe only file file manager has issue with is :
Integrity incalculable: 1
e107_admin/core_image.php

To answer your question, the only steps to show the error are to open the create page.

Not sure these have any relavence but these are error from FF

Warning: Error in parsing value for 'filter'. Declaration dropped.
Source File: /e107_handlers/tiny_mce/themes/advanced/skins/default/ui.css
Line: 40

Warning: Error in parsing value for 'filter'. Declaration dropped.
Source File: /e107_handlers/tiny_mce/themes/advanced/skins/default/ui.css
Line: 70

Warning: Error in parsing value for 'filter'. Declaration dropped.
Source File: /e107_handlers/tiny_mce/themes/advanced/skins/default/ui.css
Line: 108
[ Edited Apr 15 2011, 10:02AM ]
Go to top
novabcfc
Apr 15 2011, 10:08AM
Registered Member #30954
Joined: Sep 27 2006, 11:12PM
Posts: 169
this is all from FF
Notice: Undefined variable: eplug_icon_small, Line 73 of /home/lincolnu/public_html/e107_handlers/shortcode_handler.php(173) : eval()'d code
Notice: Undefined variable: eplug_icon_small, Line 73 of /home/lincolnu/public_html/e107_handlers/shortcode_handler.php(173) : eval()'d code
Notice: Undefined variable: page_title, Line 210 of /home/lincolnu/public_html/e107_admin/cpage.php
Notice: Undefined variable: data, Line 219 of /home/lincolnu/public_html/e107_admin/cpage.php
Notice: Undefined variable: text, Line 35 of /home/lincolnu/public_html/e107_handlers/shortcode_handler.php(173) : eval()'d code
Notice: Undefined variable: page_rating_flag, Line 238 of /home/lincolnu/public_html/e107_admin/cpage.php
Notice: Undefined variable: page_rating_flag, Line 239 of /home/lincolnu/public_html/e107_admin/cpage.php
Notice: Undefined variable: page_comment_flag, Line 246 of /home/lincolnu/public_html/e107_admin/cpage.php
Notice: Undefined variable: page_comment_flag, Line 247 of /home/lincolnu/public_html/e107_admin/cpage.php
Notice: Undefined variable: page_display_authordate_flag, Line 254 of /home/lincolnu/public_html/e107_admin/cpage.php
Notice: Undefined variable: page_display_authordate_flag, Line 255 of /home/lincolnu/public_html/e107_admin/cpage.php
Notice: Undefined variable: page_password, Line 261 of /home/lincolnu/public_html/e107_admin/cpage.php
Notice: Undefined variable: page_link, Line 266 of /home/lincolnu/public_html/e107_admin/cpage.php
Notice: Undefined variable: page_class, Line 271 of /home/lincolnu/public_html/e107_admin/cpage.php
Notice: Undefined variable: edit, Line 279 of /home/lincolnu/public_html/e107_admin/cpage.php
Notice: Undefined variable: edit, Line 290 of /home/lincolnu/public_html/e107_admin/cpage.php
[ Edited Apr 15 2011, 10:12AM ]
Go to top
novabcfc
Apr 15 2011, 10:15AM
Registered Member #30954
Joined: Sep 27 2006, 11:12PM
Posts: 169
It's only happening on one site my other three sites are ok

So clearly there is something within this site causing the issue....?
Go to top
MikeyGMT
Apr 15 2011, 10:26AM
MikeyGMT
  • e107 Site administrator
  • e107 Documentation Team Leader
Registered Member #5146
Joined: Dec 30 2003, 06:04AM
Location: Swansea, Surf City, Wales!
Posts: 1522
I have the same in IE7. The editor just does not load.

It looks like a known tinyMCE misconfig issue
[-link-]
Viewing your source, you will see

tinyMCE.init({
language : 'en',
blah .... blah ,
auto_cleanup_word : false,
external_link_list_url : '/e107_handlers/tiny_mce/filelist.php' , <== this comma is the problem.
});

Line 61 of e107_handlers/tiny_mce/wysiwyg.php starts the config.
tinyMCE.init({
language : 'en',
...
Plugins get called with the comma first...

plugins : '".implode(",",$mce_plugins)."'\n";


$text .= "',"; // end of buttons 2 MikeyGMT we dont want a comma yet.

$text .= "'"; // end of buttons 2 //MikeyGMT

Then a load more config gets loaded.

$text .= $this->tinyMce_config();

Next jumps to line 157 to build the rest of the list.

function tinyMce_config()

Line 169
$text .= "\t\t ".$key." : ".$val.",\n"; // Comma at end.

Instead try comma before ...

$text .= "\t\t ,".$key." : ".$val."\n"; // MikeyGMT

And that worked...

I'll pass the fix to the Devs...
Go to top
MikeyGMT
Apr 15 2011, 10:54AM
MikeyGMT
  • e107 Site administrator
  • e107 Documentation Team Leader
Registered Member #5146
Joined: Dec 30 2003, 06:04AM
Location: Swansea, Surf City, Wales!
Posts: 1522
Bug Raised. [-link-]
Go to top
novabcfc
Apr 15 2011, 04:10PM
Registered Member #30954
Joined: Sep 27 2006, 11:12PM
Posts: 169
While I understand the logic, why would it then only happen on one of four sites not them all?
Go to top
MikeyGMT
Apr 15 2011, 04:17PM
MikeyGMT
  • e107 Site administrator
  • e107 Documentation Team Leader
Registered Member #5146
Joined: Dec 30 2003, 06:04AM
Location: Swansea, Surf City, Wales!
Posts: 1522
It was only MSIE wasnt it, weird that. Have you tried the to line changes? Did it work?
Go to top
LondonGman
Apr 16 2011, 04:30PM
Registered Member #41011
Joined: Nov 04 2007, 05:44PM
Posts: 79
Tried this, it did not work, I got

Line 78
$text .= "'"; // end of buttons 2

Line 168
$text .= "\t\t ,".$key." : ".$val."\n";

Refreshed page, disabled cache and no difference. Note that I have IE9 which is not nice.

I can see the WYSIWYG toolbar, except the following buttons

Paste as Plain text,
Paste from Word
Insert / edit embedded media
Image browser

In Firefox and chrome is seems to all be there

Hope this feedback helps, and thanks guys
Go to top
MikeyGMT
Apr 17 2011, 04:26AM
MikeyGMT
  • e107 Site administrator
  • e107 Documentation Team Leader
Registered Member #5146
Joined: Dec 30 2003, 06:04AM
Location: Swansea, Surf City, Wales!
Posts: 1522
LondonGman, slightly different problem... but at least we ruled out that they are unrelated.
Go to top
LondonGman
Apr 17 2011, 06:12AM
Registered Member #41011
Joined: Nov 04 2007, 05:44PM
Posts: 79
yes, and thnks sincerely for your help
Go to top
MikeyGMT
Apr 22 2011, 01:32PM
MikeyGMT
  • e107 Site administrator
  • e107 Documentation Team Leader
Registered Member #5146
Joined: Dec 30 2003, 06:04AM
Location: Swansea, Surf City, Wales!
Posts: 1522
Bug fixed [-link-] new file in SVN
Go to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System