Page 1 of 1

[Solved] TinyMCE WYSIWYG editor is missing!

Posted: Sun Apr 01, 2012 6:53 am
by elfduck
Hi

I just upgaded 2 of my CMSMS-sites (to version 1.10.3) and both sites have the same problem, TinyMCE WYSIWYG editor is missing!

I have re-installed TinyMCE, resetted all TinyMCE settings and also I have done everything the handbooks says about the problem (except for the downgrading; I dont know where to get TinyMCE version 2.4.12.

http://wiki.cmsmadesimple.org/index.php ... he_Toolbar

The other site shows the option "Turn WYSIWYG on/off", but it doesn't do anything. The other site doesn't even have the checkbox.

Also this setting doesn't do anything:
Disable WYSIWYG editor on this page (regardless of template or user settings.

I have re-installed CMSMS to those particular sites twice with no effect. I also removed everything from the servers and tried a "clean install". This wen't fine with the other site, but as you can clearly see, the other site is now broken and gives the error on various pages:

Code: Select all

string(133) "Smarty error: [in module_db_tpl:MenuManager;section_expand line 17]: [plugin] unknown tag - 'while' (core.load_plugins.php, line 198)" string(145) "Smarty error: [in module_db_tpl:MenuManager;section_expand line 17]: syntax error: unrecognized tag 'while' (Smarty_Compiler.class.php, line 590)" string(134) "Smarty error: [in module_db_tpl:MenuManager;section_expand line 21]: [plugin] unknown tag - '/while' (core.load_plugins.php, line 198)" string(146) "Smarty error: [in module_db_tpl:MenuManager;section_expand line 21]: syntax error: unrecognized tag '/while' (Smarty_Compiler.class.php, line 590)" string(133) "Smarty error: [in module_db_tpl:MenuManager;section_expand line 58]: [plugin] unknown tag - 'while' (core.load_plugins.php, line 198)" string(145) "Smarty error: [in module_db_tpl:MenuManager;section_expand line 58]: syntax error: unrecognized tag 'while' (Smarty_Compiler.class.php, line 590)" string(134) "Smarty error: [in module_db_tpl:MenuManager;section_expand line 62]: [plugin] unknown tag - '/while' (core.load_plugins.php, line 198)" string(146) "Smarty error: [in module_db_tpl:MenuManager;section_expand line 62]: syntax error: unrecognized tag '/while' (Smarty_Compiler.class.php, line 590)"
Any help will be greatly appreciated.

Re: TinyMCE WYSIWYG editor is missing!

Posted: Sun Apr 01, 2012 6:11 pm
by Dr.CSS
Since 1.10.* uses Micro Tiny for the default editor you may want to have tiny installed then go to user/my preferences and make sure tiny is the chosen editor...

Re: TinyMCE WYSIWYG editor is missing!

Posted: Mon Apr 02, 2012 3:45 am
by elfduck
Worked like a charm for the site that shows the option "Turn WYSIWYG on/off" on each page =)

Didn't work for the site that doesn't have that option. At all.

Re: TinyMCE WYSIWYG editor is missing!

Posted: Mon Apr 02, 2012 5:59 pm
by Dr.CSS
You may have to change the permissions on the modules and tinyMCE folders to 755, this helps on many servers...

Re: TinyMCE WYSIWYG editor is missing!

Posted: Mon Apr 02, 2012 7:08 pm
by elfduck
I did that already with no effect.

Then I upgraded _again_ the CMSMS and now MicroTiny is working, but I still receive errors in the public pages:

Code: Select all

/home/*********/domains/**********.com/public_html/lib/smarty/Smarty.class.php:1593 - trigger_error
/home/*********/domains/**********.com/public_html/lib/smarty/Smarty.class.php:1415 - _fetch_resource_info
/home/*********/domains/**********.com/public_html/lib/smarty/Smarty.class.php:1261 - _compile_resource
/home/*********/domains/**********.com/public_html/lib/classes/module_support/modtemplates.inc.php:242 - fetch
/home/*********/domains/**********.com/public_html/lib/classes/class.CMSModule.php:2438 - cms_module_ProcessTemplateFromDatabase
/home/*********/domains/**********.com/public_html/modules/MenuManager/action.default.php:253 - ProcessTemplateFromDatabase
/home/*********/domains/**********.com/public_html/lib/classes/class.CMSModule.php:1583 - include
/home/*********/domains/**********.com/public_html/lib/classes/class.CMSModule.php:1628 - DoAction
/home/*********/domains/**********.com/public_html/lib/module.functions.php:122 - DoActionBase
/home/*********/domains/**********.com/public_html/plugins/function.menu.php:22 - cms_module_plugin
/home/*********/domains/**********.com/public_html/tmp/templates_c/%%76^763^76313DB0%%tpl_body%3A22.php:21 - smarty_cms_function_menu
/home/*********/domains/**********.com/public_html/lib/smarty/Smarty.class.php:1263 - include
/home/*********/domains/**********.com/public_html/index.php:269 - fetch
string(81) "Smarty error: unable to read resource: "module_db_tpl:MenuManager;section_expand"" 

Re: TinyMCE WYSIWYG editor is missing!

Posted: Tue Apr 03, 2012 11:19 am
by elfduck
Now the frontpage shows this error message:

Code: Select all

string(108) "Smarty error: [in tpl_head:20 line 4]: [plugin] unknown tag - 'stylesheet' (core.load_plugins.php, line 198)" string(120) "Smarty error: [in tpl_head:20 line 4]: syntax error: unrecognized tag 'stylesheet' (Smarty_Compiler.class.php, line 590)" 
Somekind of stylesheet problem, perhaps? And if I reload the page, the error message disappears.

Re: TinyMCE WYSIWYG editor is missing!

Posted: Tue Apr 03, 2012 12:17 pm
by staartmees
take a look in your template en replace {stylesheet} with {cms_stylesheet}. {stylesheet} is no longer used.

Re: TinyMCE WYSIWYG editor is missing!

Posted: Tue Apr 03, 2012 1:03 pm
by elfduck
That helped the frontpage, it is now working perfectly. Now the problem is that inner pages get this error:

Code: Select all

/home/*/domains/*.com/public_html/lib/smarty/Smarty.class.php:1593 - trigger_error
/home/*/domains/*.com/public_html/lib/smarty/Smarty.class.php:1415 - _fetch_resource_info
/home/*/domains/*.com/public_html/lib/smarty/Smarty.class.php:1261 - _compile_resource
/home/*/domains/*.com/public_html/lib/classes/module_support/modtemplates.inc.php:242 - fetch
/home/*/domains/*.com/public_html/lib/classes/class.CMSModule.php:2438 - cms_module_ProcessTemplateFromDatabase
/home/*/domains/*.com/public_html/modules/MenuManager/action.default.php:253 - ProcessTemplateFromDatabase
/home/*/domains/*.com/public_html/lib/classes/class.CMSModule.php:1583 - include
/home/*/domains/*.com/public_html/lib/classes/class.CMSModule.php:1628 - DoAction
/home/*/domains/*.com/public_html/lib/module.functions.php:122 - DoActionBase
/home/*/domains/*.com/public_html/plugins/function.menu.php:22 - cms_module_plugin
/home/*/domains/*.com/public_html/tmp/templates_c/%%76^763^76313DB0%%tpl_body%3A22.php:21 - smarty_cms_function_menu
/home/*/domains/*.com/public_html/lib/smarty/Smarty.class.php:1263 - include
/home/*/domains/*.com/public_html/index.php:269 - fetch
string(81) "Smarty error: unable to read resource: "module_db_tpl:MenuManager;section_expand""
Seems to me that something broke the menu now?

Re: TinyMCE WYSIWYG editor is missing!

Posted: Tue Apr 03, 2012 6:31 pm
by Dr.CSS
What does the {menu} tag in the page template look like?...

Re: TinyMCE WYSIWYG editor is missing!

Posted: Wed Apr 04, 2012 3:49 am
by elfduck

Code: Select all

[{menu start_level="2" template="section_expand"}

Re: TinyMCE WYSIWYG editor is missing!

Posted: Wed Apr 04, 2012 4:05 am
by elfduck
When you pointed out that menu thingy, I went and checked menu templates and such...

The problem was that somehow this didn't work after installation any more:
http://wiki.cmsmadesimple.org/index.php ... ion_expand

Re: [Solved] TinyMCE WYSIWYG editor is missing!

Posted: Wed Apr 04, 2012 5:22 am
by staartmees
I thought the section_expand doesn't work anymore form version 1.10.x and higher

Re: [Solved] TinyMCE WYSIWYG editor is missing!

Posted: Wed Apr 04, 2012 5:05 pm
by Dr.CSS
That was taken out in the 1.10.* versions, use jquery...

Re: [Solved] TinyMCE WYSIWYG editor is missing!

Posted: Thu Apr 05, 2012 1:48 pm
by elfduck
Use jQuery? Is there a similar jQuery menu template like section_expand in CMSMS or what jQuery menu should I use? Please point me to the right direction =)

Re: [Solved] TinyMCE WYSIWYG editor is missing!

Posted: Thu Apr 05, 2012 7:56 pm
by Dr.CSS
You will have to make a custom menu template, look at this page for the menu in the Content, look at the page source for the menu changes and the link for the JS that runs the menu look at the menu1.js...