We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22629
    • 194 Posts
    I’ve tried installing TinyMCE following an upgrade from alpha-5, but TinyMCE failed to install, so I did a clean install of alpha-6 and before doing anything else, tried to install TinyMCE (2.1.1-beta.) This has also failed (despite it saying "package successfully installed." Below is the full output from the console.

    TinyMCE claims to be installed, but when you create/edit a resource, and select TinyMCE from the "Editors" drop-down, it refreshes the page but TinyMCE still isn’t loaded and the Editors drop-down is back to being blank.

    I’ve tried re-installing the package (which results in a stack of failed INSERTs - primary key violations), and tried uninstalling and removing it completely then re-installing from the WTF, but still no luck.

    Has anyone else managed it successfully in alpha-6?
    Also a quick suggestion - in the debugging output could you limit each array member to say 1000 characters? The forums won’t accept a straight copy and paste!

    Thanks,
    Andy

    Attempting to install package with signature: tinymce-2.1.1-beta
    Package found...now preparing to install.
    Grabbing package workspace...
    Workspace environment initiated, now installing package...
    PHP warning: Invalid argument supplied for foreach()
    Could not install related objects for vehicle: Array
    (
    [license] => GNU GENERAL PUBLIC LICENSE
    Version 2, June 1991
    --------------------------

    Copyright (C) 1989, 1991 Free Software Foundation, Inc.
    59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

    Everyone is permitted to copy and distribute verbatim copies
    of this license document, but changing it is not allowed.

    .... rest of license text ....

    [readme] => Please consult the HTML documentation for details.


    [action] => install
    [signature] => 6c1f45374ed32d5aec03e1a0fa322286
    [register] => mgr
    [topic] => /workspace/package/install/tinymce-2.1.1-beta/
    [package_action] => 0
    [preserve_keys] =>
    [update_object] => 1
    [unique_key] => Array
    (
    [0] => name
    [1] => namespace
    )

    [related_objects] => 1
    [related_object_attributes] => Array
    (
    [modLexiconEntry] => Array
    (
    [preserve_keys] =>
    [update_object] => 1
    [unique_key] => Array
    (
    [0] => name
    [1] => topic
    [2] => namespace
    [3] => language
    )

    )

    )

    [namespace] => tinymce
    [resolve] =>
    [validate] =>
    [class] => modLexiconTopic
    [guid] => 23f956debbd45b30339213bf34d56255
    [object] => {"id":626,"name":"default","namespace":"tinymce"}
    [native_key] => 626
    )

    PHP warning: Invalid argument supplied for foreach()
    Could not install related objects for vehicle: Array
    (
    [license] => GNU GENERAL PUBLIC LICENSE
    Version 2, June 1991
    --------------------------

    Copyright (C) 1989, 1991 Free Software Foundation, Inc.
    59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

    Everyone is permitted to copy and distribute verbatim copies
    of this license document, but changing it is not allowed.

    ... rest of license text ....

    [readme] => Please consult the HTML documentation for details.


    [action] => install
    [signature] => ead5f9dd15e6114aec5bca9b0ee05ffa
    [register] => mgr
    [topic] => /workspace/package/install/tinymce-2.1.1-beta/
    [package_action] => 0
    [preserve_keys] =>
    [update_object] => 1
    [unique_key] => Array
    (
    [0] => name
    [1] => namespace
    )

    [related_objects] => 1
    [related_object_attributes] => Array
    (
    [modLexiconEntry] => Array
    (
    [preserve_keys] =>
    [update_object] => 1
    [unique_key] => Array
    (
    [0] => name
    [1] => topic
    [2] => namespace
    [3] => language
    )

    )

    )

    [namespace] => tinymce
    [resolve] =>
    [validate] =>
    [class] => modLexiconTopic
    [guid] => 8a93eba363c050a5c0634c853bf74936
    [object] => {"id":626,"name":"default","namespace":"tinymce"}
    [native_key] => 626
    )

    Skipping vehicle object (data object exists and cannot be upgraded): Array
    (
    [license] => GNU GENERAL PUBLIC LICENSE
    Version 2, June 1991
    --------------------------

    Copyright (C) 1989, 1991 Free Software Foundation, Inc.
    59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

    Everyone is permitted to copy and distribute verbatim copies
    of this license document, but changing it is not allowed.

    .... rest of license text ....

    [readme] => Please consult the HTML documentation for details.


    [action] => install
    [signature] => c04885beee6eb0be648f209453e4fb53
    [register] => mgr
    [topic] => /workspace/package/install/tinymce-2.1.1-beta/
    [package_action] => 0
    [unique_key] => key
    [preserve_keys] => 1
    [update_object] =>
    [namespace] => tinymce
    [resolve] =>
    [validate] =>
    [class] => modSystemSetting
    [guid] => 86806c2fc432fcd55e5716f7713fb060
    [object] => {"key":"tinymce_editor_theme","value":"editor","xtype":"textfield","namespace":"tinymce","area":"tinymce","editedon":null}
    [native_key] => tinymce_editor_theme
    )

    Skipping vehicle object (data object exists and cannot be upgraded): Array
    (
    [license] => GNU GENERAL PUBLIC LICENSE
    Version 2, June 1991
    --------------------------

    Copyright (C) 1989, 1991 Free Software Foundation, Inc.
    59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

    Everyone is permitted to copy and distribute verbatim copies
    of this license document, but changing it is not allowed.

    .... rest of license text ....

    [readme] => Please consult the HTML documentation for details.


    [action] => install
    [signature] => cf8ccf704ae8729d7adaf2becc5f605b
    [register] => mgr
    [topic] => /workspace/package/install/tinymce-2.1.1-beta/
    [package_action] => 0
    [unique_key] => key
    [preserve_keys] => 1
    [update_object] =>
    [namespace] => tinymce
    [resolve] =>
    [validate] =>
    [class] => modSystemSetting
    [guid] => 0e95b5af8d00d35b6e8d12bed7c9e4d2
    [object] => {"key":"tinymce_custom_plugins","value":"text;style,advimage,advlink,searchreplace,print,contextmenu,paste,fullscreen,noneditable,nonbreaking,xhtmlxtras,visualchars,media","xtype":"textfield","namespace":"tinymce","area":"tinymce","editedon":null}
    [native_key] => tinymce_custom_plugins
    )

    Skipping vehicle object (data object exists and cannot be upgraded): Array
    (
    [license] => GNU GENERAL PUBLIC LICENSE
    Version 2, June 1991
    --------------------------

    Copyright (C) 1989, 1991 Free Software Foundation, Inc.
    59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

    Everyone is permitted to copy and distribute verbatim copies
    of this license document, but changing it is not allowed.

    .... rest of license text ....

    [readme] => Please consult the HTML documentation for details.


    [action] => install
    [signature] => c99d388f8fc6c6b88eec1037c33738df
    [register] => mgr
    [topic] => /workspace/package/install/tinymce-2.1.1-beta/
    [package_action] => 0
    [unique_key] => key
    [preserve_keys] => 1
    [update_object] =>
    [namespace] => tinymce
    [resolve] =>
    [validate] =>
    [class] => modSystemSetting
    [guid] => 72ba4e990d3ffd4f8ed1ca560231b24b
    [object] => {"key":"tinymce_custom_buttons1","value":"undo,redo,selectall,separator,pastetext,pasteword,separator,search,replace,separator,nonbreaking,hr,charmap,separator,image,link,unlink,anchor,media,separator,cleanup,removeformat,separator,fullscreen,print,code,help","xtype":"textfield","namespace":"tinymce","area":"tinymce","editedon":null}
    [native_key] => tinymce_custom_buttons1
    )

    Skipping vehicle object (data object exists and cannot be upgraded): Array
    (
    [license] => GNU GENERAL PUBLIC LICENSE
    Version 2, June 1991
    --------------------------

    Copyright (C) 1989, 1991 Free Software Foundation, Inc.
    59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

    Everyone is permitted to copy and distribute verbatim copies
    of this license document, but changing it is not allowed.

    .... rest of license text ....

    [readme] => Please consult the HTML documentation for details.


    [action] => install
    [signature] => d12201431ccb1c7f4e218e075c0ccf68
    [register] => mgr
    [topic] => /workspace/package/install/tinymce-2.1.1-beta/
    [package_action] => 0
    [unique_key] => key
    [preserve_keys] => 1
    [update_object] =>
    [namespace] => tinymce
    [resolve] =>
    [validate] =>
    [class] => modSystemSetting
    [guid] => 946d08630346d03f2c4d9025ca959b2f
    [object] => {"key":"tinymce_custom_buttons2","value":"bold,italic,underline,strikethrough,sub,sup,separator,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect,separator,styleprops","xtype":"textfield","namespace":"tinymce","area":"tinymce","editedon":null}
    [native_key] => tinymce_custom_buttons2
    )

    Successfully installed package tinymce-2.1.1-beta
      Andy Shellam | www.networkmail.eu | @Pandy06269 @NetworkMail

      modx Revolution 2.2.6
      Windows 2012 | IIS 8 | php 5.4.11 | MySQL 5.5.29

      Content-Managed Websites Built on MODX
      • 28215
      • 4,149 Posts
      I’ve gotten it to work. A few things:

      1. Make sure no leftover records are in the database after completely removing TinyMCE, including lexicon strings.
      2. Completely clear your cache.
      3. After redownloading and installing, make sure to clear the cache.

      Clear your browser’s cache again if that doesn’t work.

      If you’re still having problems, go ahead and file them here:

      http://svn.modxcms.com/jira/browse/TINYMCE
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 22629
        • 194 Posts
        Still had no luck - I’ve raised a bug in JIRA:
        http://svn.modxcms.com/jira/browse/TINYMCE-4

        I’ve attached the full console output to the above ticket from an install and an uninstall (as that throws up some objects it couldn’t remove because they didn’t exist.)

        I’ve tried absolutely everything I can think of to get it working with no luck - cleared the cache after installation, cleared the cache after full remove and re-download, cleared my browser’s cache.

        One thing I did notice that might be relevant is that the "path" entry in the tinymce namespace is empty.
          Andy Shellam | www.networkmail.eu | @Pandy06269 @NetworkMail

          modx Revolution 2.2.6
          Windows 2012 | IIS 8 | php 5.4.11 | MySQL 5.5.29

          Content-Managed Websites Built on MODX
          • 22629
          • 194 Posts
          I’ve just fully uninstalled TinyMCE and verified that all the lexicon topics and entries, and system settings in the database are all under the namespace "core" - none under TinyMCE.
            Andy Shellam | www.networkmail.eu | @Pandy06269 @NetworkMail

            modx Revolution 2.2.6
            Windows 2012 | IIS 8 | php 5.4.11 | MySQL 5.5.29

            Content-Managed Websites Built on MODX