This isn't an error as such, but it will cause a warning to be displayed if you have errors set at the appropriate level in PHP.
Line 104. of TinyMCE.module.php, reads:
if (!$this->wysiwygactive ) {if (!$this->wysiwygactive && isset($_SESSION["tiny_live_textareas"]) ) {
Change this to:
if (!$this->wysiwygactive && isset($_SESSION["tiny_live_textareas"]) ) {
I get the warning:
Notice: Undefined index: tiny_live_textareas in C:\eska\modules\TinyMCE\TinyMCE.module.php on line 104
I always have error reporting set to display absolutely everything, which is good practice for development.
Warning in CMS 1.1.3.1, TinyMCE
Warning in CMS 1.1.3.1, TinyMCE
Regards,
Sy

Sites built with CMSMS:
http://www.eska.co.uk, http://avasig.com, http://www.pygmygoats.co.uk, http://www.agsbuildersltd.com, http://onlineslotracing.com
Sy

Sites built with CMSMS:
http://www.eska.co.uk, http://avasig.com, http://www.pygmygoats.co.uk, http://www.agsbuildersltd.com, http://onlineslotracing.com
-
- Forum Members
- Posts: 32
- Joined: Mon Jan 29, 2007 1:19 am
Re: Warning in CMS 1.1.3.1, TinyMCE
In PHP 4.0.7 and later, this line can be:Sy wrote: Change this to:
if (!$this->wysiwygactive && isset($_SESSION["tiny_live_textareas"]) ) {
Code: Select all
if (!$this->wysiwygactive && array_key_exists("tiny_live_textareas", $_SESSION) ) {
If you must be compatible with older versions of PHP, a somewhat inefficient solution is:
Code: Select all
if (!$this->wysiwygactive && in_array("tiny_live_textareas", array_keys($_SESSION) ) ) {