7.0.9 Chrome, Compose Mail/Forum reply

Uncaught ReferenceError: tinyMCE is not defined

Only in Chrome; FF and IE fine.

Page view shows that the tinymce init is loaded to the page.  When trying to reply in forum, forum hangs at loading.  When composing mail, no TinyMCE.

Geeks, making the world a better place
Quote · 2 Sep 2013

Before that error is: Uncaught SyntaxError: Unexpected end of input

That is most likely the cause of the undefined.  However, Chrome is not telling me which file.  Why is it being truncated; which I assume is the cause of the unexpected end of input, on Chrome and not FireFox?

Geeks, making the world a better place
Quote · 2 Sep 2013

I need to try and track this down.  I was wondering if any 7.0.9ers are having any issues with Chrome with the original TinyMCE plugin from the 7.0.9 download?

Geeks, making the world a better place
Quote · 3 Sep 2013

I upgraded TinyMCE to 3.5.9 and the compose mail in Chrome now works.  However, I had to change the canvas_int.xsl file to work with the new TinyMCE.  Now I have the same issue, TinyMCE won't load in Chrome but works fine in FireFox.

Chrome reports: Uncaught SyntaxError: Unexpected end of input

Now it does not give a file for this error.  If this is the canvas_init.xsl file I can not find an error in the syntax.

Take a look and tell me:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">

<xsl:template name="canvas_init">

    <script type="text/javascript">

        <xsl:if test="'client' = /root/urls/xsl_mode">
            document.write = function (s) { };
        </xsl:if>

        tinyMCE_GZ.init({
            plugins : 'table,advimage,advlink,emotions,insertdatetime,preview,zoom,searchreplace,xhtmlxtras,media,fullscreen,embed,imagemanager',
            themes : 'advanced',
            skin : 'cirkuit',
            languages : 'en',
            disk_cache : true,
            debug : false
        });

    </script>

    <script language="javascript" type="text/javascript">

        function orcaSetupContent (id, body, doc) {    }

        tinyMCE.init({
            document_base_url : '<xsl:value-of select="/root/url_dolphin" />',
            entity_encoding : "raw",
            mode : "exact",
            elements : "tinyEditor",
            theme : "advanced",
            skin : "cirkuit",
            gecko_spellcheck : true,
            content_css : '<xsl:value-of select="/root/urls/css" />blank.css',

            remove_linebreaks : true,

            setupcontent_callback : "orcaSetupContent",

            plugins : "table,advimage,advlink,emotions,insertdatetime,preview,zoom,searchreplace,xhtmlxtras,media,fullscreen,embed,imagemanager",
            theme_advanced_buttons1_add : "fontsizeselect,separator,forecolor,separator,backcolor",
            theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom",
            theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
            theme_advanced_buttons3_add_before : "tablecontrols",
            theme_advanced_buttons3_add : "emotions,flash,media,embed,insertimage,fullscreen,print",
            theme_advanced_disable : "charmap",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_path_location : "bottom",
            plugin_insertdate_dateFormat : "%Y-%m-%d",
            plugin_insertdate_timeFormat : "%H:%M:%S",
            extended_valid_elements : "iframe[class|src|frameborder=0|alt|title|width|height|align|name],a[name|href|target|title|onclick],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|obj|param|embed],object[type|allowScriptAccess|allowNetworking|height|width|data],param[name|value],embed[src|width|height|bgcolor|type|pluginspage|flashvars|scale|AllowScriptAccess|wmode]"
            });

    </script>

    <script language="javascript" type="text/javascript">

        var urlXsl = '<xsl:value-of select="/root/urls/xsl" />';
        var urlImg = '<xsl:value-of select="/root/urls/img" />';
        var defTitle = "<xsl:value-of select="translate(/root/title,'&quot;','&#147;')" />";
        var isLoggedIn = '<xsl:value-of select="/root/logininfo/username" />'.length ? true : false;

        var xsl_mode = '<xsl:value-of select="/root/urls/xsl_mode" />';

        var f = new Forum ('<xsl:value-of select="base"/>', <xsl:value-of select="min_point"/>);
        document.f = f;
        var orca_login = new Login ('<xsl:value-of select="base"/>', f);
        document.orca_login = orca_login;
        <xsl:if test="1 = /root/logininfo/admin">
            var orca_admin = new Admin ('<xsl:value-of select="base"/>', f);
            document.orca_admin = orca_admin;
        </xsl:if>

    </script>

</xsl:template>

</xsl:stylesheet>

Geeks, making the world a better place
Quote · 7 Sep 2013

Where did you get 3.5.9?

I can find 3.5.8.

And I just noticed my forums are broken. I get the error TypeError: F[2] is undefined.

They WERE working a month or so ago.

I have no problems with sending internal messages tho.


http://www.mytikibar.com
Quote · 7 Sep 2013

ok, after some quick testing...

It is DEFINITELY related to the orca forums.

TinyMCE works everywhere else on my site.

http://www.mytikibar.com
Quote · 7 Sep 2013

I got the 3.5.9 upgrade of TinyMCE for Dolphin 7.0.9 from a contact along with the canvas_init.xsl.  He is not reporting any problems with Chrome.

Chrome is reporting unexpected end of input on a file but does not name the file.  However, it also then reports that TinyMCE is undefined; which would indicate it is the canvas_init.xsl file that is tripping the error.

After the upgrade, I was able to get TinyMCE to load in Chrome for the compose message but not in the forum.  It is probably related to something with Chrome but I upgraded Chrome to the latest and that did not help.  Either FireFox ignores the end of input or Chrome is seeing an end of input that does not exist.  If I had an idea where Chrome is seeing the unexpected end of input, I might could find a solution that would work with FireFox and Chrome.

Geeks, making the world a better place
Quote · 7 Sep 2013

Ok, I have it working.

Make SURE everytime you change your canvas init you compile your langauges AND clear your dolphin cache.

I am using Version 29.0.1547.65

I used your canvas init and started replacing mine several lines at a time.

At 1st it did nothing until I stumbled upon the compile languages and clear dolphin cache trick.

I was also was running into the PLEASE ENTER 5 to blah blah blah characters issue until I started doing the above trick.

My Canvas init:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">

<xsl:template name="canvas_init">

    <script type="text/javascript">

        <xsl:if test="'client' = /root/urls/xsl_mode">
            document.write = function (s) { };
        </xsl:if>

        tinyMCE_GZ.init({
            plugins : 'table,advimage,advlink,emotions,insertdatetime,preview,zoom,searchreplace,xhtmlxtras,media,fullscreen,embed,imagemanager',
            themes : 'advanced',
            skin : 'mytikibar',
            languages : 'en',
            disk_cache : true,
            debug : false
        });

    </script>

    <script language="javascript" type="text/javascript">
       
 function orcaSetupContent (id, body, doc) {    }

        tinyMCE.init({
            document_base_url : '<xsl:value-of select="/root/url_dolphin" />',
            entity_encoding : "raw",
            mode : "exact",
            elements : "tinyEditor",
            theme : "advanced",
            skin : "mytikibar",
            gecko_spellcheck : true,
            content_css : '<xsl:value-of select="/root/urls/css" />blank.css',

            remove_linebreaks : true,

            setupcontent_callback : "orcaSetupContent",

            plugins : "table,embed,advimage,advlink,emotions,insertdatetime,preview,zoom,searchreplace,xhtmlxtras,media,",

            theme_advanced_buttons1_add : "fontsizeselect,separator,forecolor,separator,backcolor",
            theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom",
            theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
            theme_advanced_buttons3_add_before : "tablecontrols",
            theme_advanced_buttons3_add : "emotions,flash,media,embed,insertimage,fullscreen,print",
            theme_advanced_disable : "charmap",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_path_location : "bottom",
            plugin_insertdate_dateFormat : "%Y-%m-%d",
            plugin_insertdate_timeFormat : "%H:%M:%S",
            extended_valid_elements : "iframe[class|src|frameborder=0|alt|title|width|height|align|name],a[name|href|target|title|onclick],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|obj|param|embed],object[type|allowScriptAccess|allowNetworking|height|width|data],param[name|value],embed[src|width|height|bgcolor|type|pluginspage|flashvars|scale|AllowScriptAccess|wmode]"
            });
    </script>

    <script language="javascript" type="text/javascript">           

        var urlXsl = '<xsl:value-of select="/root/urls/xsl" />';
        var urlImg = '<xsl:value-of select="/root/urls/img" />';
        var defTitle = "<xsl:value-of select="translate(/root/title,'&quot;','&#147;')" />";
        var isLoggedIn = '<xsl:value-of select="/root/logininfo/username" />'.length ? true : false;

        var xsl_mode = '<xsl:value-of select="/root/urls/xsl_mode" />';

        var f = new Forum ('<xsl:value-of select="base"/>', <xsl:value-of select="min_point"/>);       
        document.f = f;
        var orca_login = new Login ('<xsl:value-of select="base"/>', f);
        document.orca_login = orca_login;
        <xsl:if test="1 = /root/logininfo/admin">
            var orca_admin = new Admin ('<xsl:value-of select="base"/>', f);
            document.orca_admin = orca_admin;
        </xsl:if>
       
    </script>

</xsl:template>

</xsl:stylesheet>

Notice my skin is different.


http://www.mytikibar.com
Quote · 7 Sep 2013

 

Make SURE everytime you change your canvas init you compile your langauges AND clear your dolphin cache

Let me try and see.  I was clearing caches but not compiling the languages

Geeks, making the world a better place
Quote · 7 Sep 2013

Got: Language files compilation have been failed. Please check folders permissions.

Where is this located?  Which folder do I need to check?

Geeks, making the world a better place
Quote · 7 Sep 2013

I am not sure where the compile language is failing; I don't see any permission error but not sure where to look; I looked in the obvious areas.

As for the canvas_init.xsl; I took your copy, made some changes to suit me; uploaded to both base and base_en, cleared caches, and it broke in FireFox.  I added a line to end of the file and it fixed it in FireFox but still broken in chrome.  I then cleared the browser cache for Chrome, did a force reload of the page and it is now working in Chrome. 

This forum thing is a POS in a lot of ways.

I noticed that in 7.1.4, Boonex changed the forum so it now uses the regular TinyMCE as the rest of the site uses instead of this canvas_init crap that seems so easy to break.

Geeks, making the world a better place
Quote · 7 Sep 2013

Well at least it's working!

What line did you add?

I'm not a big fan of the forums either.

Someone could make a killing if they developed a forums module to replace the stock one.  LOL

http://www.mytikibar.com
Quote · 7 Sep 2013

 

Well at least it's working!

Yes, for now.  Any idea on this error: Language files compilation have been failed. Please check folders permissions.

Geeks, making the world a better place
Quote · 7 Sep 2013

It must be permissions in the folder with the _en extension or the files inside.

I think they need to be 755 but you could change them to 777 to compile them, then change them back.

http://www.mytikibar.com
Quote · 7 Sep 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.