On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • In 1 of the 7 migx configurations for my clients site the rich text editor doesn't work. It just shows as a box with a line around it, see attached. The rich text editors in the other 6 work perfectly fine. I recently moved the site to a new directory, not server, and upgraded modx and plugins.

    Opening a window to enter data for the configuration throws a JS TypeError, see attached. It seems this is somehow related. Once I close the window and reopen all styling gets lost along with some missing data.

    I've tried rebuilding the package and configuration, but it still does the same thing.

    Any thoughts?

    OS: CentOS Linux 7.4.1708 (Core)
    Apache web server
    PHP 7.0.24
    Database server:
    Server: Localhost via UNIX socket
    Server version: 5.5.56-MariaDB - MariaDB Server
    nginx/1.11.10

    Modx 2.5.8-pl
    packages installed:
    ActivationEmail
    Breadcrumbs
    ClassExtender
    Collections
    FileLister
    FirstChildRedirect
    FormIt
    Gallery
    getReqParam
    Login
    MIGX
    pdoTools
    Personalize
    Rampart
    ReCaptchaV2
    Redactor
    SimpleSearch
    StageCoach

    Thanks!

    This question has been answered by Bruno17. See the first response.

    • image-uploads is broken on the forums.

      could you show me your MIGX - configs?
      Redactor is your RTE?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
      • Here are the screenshots:

        Here's what the window looks like on a 2nd load without refreshing the browser:



        Yes, Redactor is RTE.

        Is this what you want to see?

        [
          {
            "MIGX_id":5,
            "caption":"Article Info",
            "print_before_tabs":"0",
            "fields":[
              {
                "MIGX_id":20,
                "field":"atitle",
                "caption":"Article Title",
                "description":"",
                "description_is_code":"0",
                "inputTV":"",
                "inputTVtype":"text",
                "validation":"",
                "configs":"",
                "restrictive_condition":"",
                "display":"",
                "sourceFrom":"config",
                "sources":"",
                "inputOptionValues":"",
                "default":"",
                "useDefaultIfEmpty":"0",
                "pos":1
              },
              {
                "MIGX_id":21,
                "field":"acategory",
                "caption":"Article Category",
                "description":"",
                "description_is_code":"0",
                "inputTV":"",
                "inputTVtype":"listbox",
                "validation":"",
                "configs":"",
                "restrictive_condition":"",
                "display":"",
                "sourceFrom":"config",
                "sources":"",
                "inputOptionValues":"Select One==0||Press Release==Press Release||Insights Article==Insights Article",
                "default":"",
                "useDefaultIfEmpty":"0",
                "pos":2
              },
              {
                "MIGX_id":22,
                "field":"adate",
                "caption":"Article Date",
                "description":"",
                "description_is_code":"0",
                "inputTV":"",
                "inputTVtype":"date",
                "validation":"",
                "configs":"",
                "restrictive_condition":"",
                "display":"",
                "sourceFrom":"config",
                "sources":"",
                "inputOptionValues":"",
                "default":"",
                "useDefaultIfEmpty":"0",
                "pos":3
              },
              {
                "MIGX_id":23,
                "field":"acopy",
                "caption":"Article Copy",
                "description":"",
                "description_is_code":"0",
                "inputTV":"",
                "inputTVtype":"richtext",
                "validation":"",
                "configs":"",
                "restrictive_condition":"",
                "display":"",
                "sourceFrom":"config",
                "sources":"",
                "inputOptionValues":"",
                "default":"",
                "useDefaultIfEmpty":"0",
                "pos":4
              },
              {
                "MIGX_id":39,
                "field":"arelated",
                "caption":"Article Related",
                "description":"",
                "description_is_code":"0",
                "inputTV":"articleRelatedLinks",
                "inputTVtype":"",
                "validation":"",
                "configs":"",
                "restrictive_condition":"",
                "display":"",
                "sourceFrom":"config",
                "sources":"",
                "inputOptionValues":"",
                "default":"",
                "useDefaultIfEmpty":"0",
                "pos":5
              },
              {
                "MIGX_id":24,
                "field":"apdf",
                "caption":"Article PDF",
                "description":"",
                "description_is_code":"0",
                "inputTV":"",
                "inputTVtype":"file",
                "validation":"",
                "configs":"",
                "restrictive_condition":"",
                "display":"",
                "sourceFrom":"config",
                "sources":"[{\"MIGX_id\":\"1\",\"context\":\"mgr\",\"sourceid\":\"4\"},{\"MIGX_id\":\"2\",\"context\":\"web\",\"sourceid\":\"4\"}]",
                "inputOptionValues":"",
                "default":"",
                "useDefaultIfEmpty":"0",
                "pos":6
              },
              {
                "MIGX_id":35,
                "field":"aimg",
                "caption":"Article Image",
                "description":"",
                "description_is_code":"0",
                "inputTV":"",
                "inputTVtype":"image",
                "validation":"",
                "configs":"",
                "restrictive_condition":"",
                "display":"",
                "sourceFrom":"config",
                "sources":"[{\"MIGX_id\":\"1\",\"context\":\"web\",\"sourceid\":\"5\"},{\"MIGX_id\":\"2\",\"context\":\"mgr\",\"sourceid\":\"5\"}]",
                "inputOptionValues":"",
                "default":"",
                "useDefaultIfEmpty":"0",
                "pos":7
              },
              {
                "MIGX_id":36,
                "field":"atopic",
                "caption":"Insight Topic",
                "description":"Only for Insights Articles. Leave blank on Press Releases.",
                "description_is_code":"0",
                "inputTV":"",
                "inputTVtype":"checkbox",
                "validation":"",
                "configs":"",
                "restrictive_condition":"",
                "display":"",
                "sourceFrom":"config",
                "sources":"",
                "inputOptionValues":"Distribution==Distribution||Liquid Alts==Liquid Alts||Middle Office==Middle Office||Regulatory==Regulatory||Series Trust==Series Trust||40Act==40Act",
                "default":"",
                "useDefaultIfEmpty":"0",
                "pos":8
              }
            ],
            "pos":1
          },
          {
            "MIGX_id":6,
            "caption":"Meta Data",
            "print_before_tabs":"0",
            "fields":[
              {
                "MIGX_id":25,
                "field":"ametadesc",
                "caption":"Meta Description",
                "description":"",
                "description_is_code":"0",
                "inputTV":"",
                "inputTVtype":"textarea",
                "validation":"",
                "configs":"",
                "restrictive_condition":"",
                "display":"",
                "sourceFrom":"config",
                "sources":"",
                "inputOptionValues":"",
                "default":"",
                "useDefaultIfEmpty":"0",
                "pos":1
              },
              {
                "MIGX_id":26,
                "field":"ametakey",
                "caption":"Meta Keywords",
                "description":"",
                "description_is_code":"0",
                "inputTV":"",
                "inputTVtype":"textarea",
                "validation":"",
                "configs":"",
                "restrictive_condition":"",
                "display":"",
                "sourceFrom":"config",
                "sources":"",
                "inputOptionValues":"",
                "default":"",
                "useDefaultIfEmpty":"0",
                "pos":2
              }
            ],
            "pos":2
          }
        ]


        Here's the mysql map:

        <?php
        $xpdo_meta_map['ufsNews']= array (
          'package' => 'ufsnews',
          'version' => '1.1',
          'table' => 'migx_news',
          'extends' => 'xPDOSimpleObject',
          'fields' => 
          array (
            'atitle' => '',
            'adate' => '',
            'acategory' => '',
            'acopy' => '',
            'apdf' => '',
            'aimg' => '',
            'ametadesc' => '',
            'ametakey' => '',
            'atopic' => '',
            'createdon' => NULL,
            'createdby' => 0,
            'editedon' => NULL,
            'editedby' => 0,
            'deleted' => 0,
            'deletedon' => NULL,
            'deletedby' => 0,
            'published' => 0,
            'publishedon' => NULL,
            'publishedby' => 0,
          ),
          'fieldMeta' => 
          array (
            'atitle' => 
            array (
              'dbtype' => 'varchar',
              'precision' => '255',
              'phptype' => 'string',
              'null' => false,
              'default' => '',
            ),
            'adate' => 
            array (
              'dbtype' => 'varchar',
              'precision' => '255',
              'phptype' => 'string',
              'null' => false,
              'default' => '',
            ),
            'acategory' => 
            array (
              'dbtype' => 'varchar',
              'precision' => '255',
              'phptype' => 'string',
              'null' => false,
              'default' => '',
            ),
            'acopy' => 
            array (
              'dbtype' => 'text',
              'phptype' => 'string',
              'null' => false,
              'default' => '',
            ),
            'apdf' => 
            array (
              'dbtype' => 'text',
              'phptype' => 'string',
              'null' => false,
              'default' => '',
            ),
            'aimg' => 
            array (
              'dbtype' => 'text',
              'phptype' => 'string',
              'null' => false,
              'default' => '',
            ),
            'ametadesc' => 
            array (
              'dbtype' => 'text',
              'phptype' => 'string',
              'null' => false,
              'default' => '',
            ),
            'ametakey' => 
            array (
              'dbtype' => 'text',
              'phptype' => 'string',
              'null' => false,
              'default' => '',
            ),
            'atopic' => 
            array (
              'dbtype' => 'text',
              'phptype' => 'string',
              'null' => false,
              'default' => '',
            ),
            'createdon' => 
            array (
              'dbtype' => 'datetime',
              'phptype' => 'datetime',
              'null' => true,
            ),
            'createdby' => 
            array (
              'dbtype' => 'int',
              'precision' => '10',
              'attributes' => 'unsigned',
              'phptype' => 'integer',
              'null' => false,
              'default' => 0,
            ),
            'editedon' => 
            array (
              'dbtype' => 'datetime',
              'phptype' => 'datetime',
              'null' => true,
            ),
            'editedby' => 
            array (
              'dbtype' => 'int',
              'precision' => '10',
              'attributes' => 'unsigned',
              'phptype' => 'integer',
              'null' => false,
              'default' => 0,
            ),
            'deleted' => 
            array (
              'dbtype' => 'tinyint',
              'precision' => '1',
              'attributes' => 'unsigned',
              'phptype' => 'integer',
              'null' => false,
              'default' => 0,
            ),
            'deletedon' => 
            array (
              'dbtype' => 'datetime',
              'phptype' => 'datetime',
              'null' => false,
            ),
            'deletedby' => 
            array (
              'dbtype' => 'int',
              'precision' => '10',
              'phptype' => 'integer',
              'null' => false,
              'default' => 0,
            ),
            'published' => 
            array (
              'dbtype' => 'tinyint',
              'precision' => '1',
              'attributes' => 'unsigned',
              'phptype' => 'integer',
              'null' => false,
              'default' => 0,
            ),
            'publishedon' => 
            array (
              'dbtype' => 'datetime',
              'phptype' => 'datetime',
              'null' => false,
            ),
            'publishedby' => 
            array (
              'dbtype' => 'int',
              'precision' => '10',
              'phptype' => 'integer',
              'null' => false,
              'default' => 0,
            ),
          ),
          'aggregates' => 
          array (
            'CreatedBy' => 
            array (
              'class' => 'modUser',
              'local' => 'createdby',
              'foreign' => 'id',
              'cardinality' => 'one',
              'owner' => 'foreign',
            ),
            'EditedBy' => 
            array (
              'class' => 'modUser',
              'local' => 'editedby',
              'foreign' => 'id',
              'cardinality' => 'one',
              'owner' => 'foreign',
            ),
          ),
        );
        
        [ed. note: stortzdesignteam last edited this post 1 year, 6 months ago.]
        • which MIGX - version is this?
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
          • MIGX 2.11.0-pl
            • the acopy - field makes the issue?

              does it work fine, when you change that field to "inputTVtype":"textarea"?
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
              • that does make the text box bigger, but the client needs it to be rich text since they're not familiar with HTML. Plus the styling and functionality problem still remains when opening the window a second time.




                Like I've said, I've deleted the configuration and rebuilt it, but the problem still remains. And its only with this configuration, there are 6 other ones that work great.

                Let me know if you would like access to the site to review.
                • PM me, if you need me to access the manager for further help
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                  • discuss.answer
                    I think, I have it.
                    Give each config a unique MIGX-id. They are empty in your configs.
                    This can be the name of the config.

                    The other configs did work, because there is only one formtab (no tabs).

                    The unique MIGX-id is used to identify different parts of the grid and the fields and tabs within the modal.
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                    • That did it! Thanks for all your help!