We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    Quote from: AtomZap at Jul 29, 2010, 01:44 AM

    I have tested it with Revo pl 7210 and 7212 on different hosting servers. File and Image tv-fields are not shown. At the same time disappear category tabs of elements.


    Please state:

    - MySQL/PHP version
    - Server version
    - Browser and OS
    - Advanced or Normal Revo distribution
    - The exact steps you took to create the TV
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 2372
      • 14 Posts
      Quote from: AtomZap at Jul 29, 2010, 01:44 AM

      I have tested it with Revo pl 7210 and 7212 on different hosting servers. File and Image tv-fields are not shown. At the same time disappear category tabs of elements.

      Steps:
      1. Install new normal revo distribution pl
      2. Create tv named test, set Input Type: File, link it to BaseTemplate
      3. Click on resource ’Home’ (BaseTemplate), go to tab ’Template Variables’

      Conf1:
      - MySQL 5.0.91-community / PHP 5.2.13 / Apache 2.2.15
      - Linux 2.6.18-164.15.1.el5.centos.plus
      - Win7x64 Firefox 3.6.3 / Opera 10.60 / IE 8.0.7600.16385
      - Normal Revo distribution pl 7212

      Conf2:
      - Denwer 3 2010-03-18 : MySQL 5.0.5-dev / PHP 5.3.1 / Apache 2.2.4
      - Win7x64
      - Win7x64 Firefox 3.6.3 / Opera 10.60 / IE 8.0.7600.16385
      - Normal Revo distribution pl 7210
        • 28215
        • 4,149 Posts
        Do you get any JS errors when doing that? I just tried your exact setup and cannot replicate your issue.
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
          • 33337
          • 3,975 Posts
          Quote from: Peter at Jul 28, 2010, 02:24 PM

          ...
          It should be noted that my original TV syntax came from
          http://svn.modxcms.com/docs/display/revolution/Tag+Syntax
          [[*templatevar]]


          so I marked it up like this:
          [[*tv.blog-image]]

          ...
          TV tag syntax in the documentation is correct for using them. tv prefix is specific to getResources placeholders.
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link
            • 2372
            • 14 Posts
            Quote from: splittingred at Jul 29, 2010, 09:46 AM

            Do you get any JS errors when doing that? I just tried your exact setup and cannot replicate your issue.

            Yes, js-error said that not enough quotes.
            Before I installed modx in Russian, but now installed in English and the problem disappeared.
              • 8869
              • 32 Posts
              I’ve install in english

              In both IE and firefox getting java errors:

              Here are the Webpage error details as reported by IE

              User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
              Timestamp: Fri, 30 Jul 2010 17:53:14 UTC


              Message: Unterminated string constant
              Line: 9
              Char: 14
              Code: 0
              URI: http://2sfg.co.uk/manager/?a=30&id=12


              Message: Could not complete the operation due to error 80020101.
              Line: 7
              Char: 41073
              Code: 0
              URI: http://2sfg.co.uk/manager/assets/ext3/ext-all.js


              Message: Object doesn’t support this property or method
              Line: 52
              Char: 1
              Code: 0
              URI: http://2sfg.co.uk/manager/?a=30&id=12


              In Firefox the error says:

              Warning: reference to undefined property this[a]
              Source File: http://2sfg.co.uk/manager/assets/ext3/ext-all.js
              Line: 7

              I’m running:

              PHP 5.2.10
              mysql 5.0.84
              Apache 2.2.3

              Client is Windows 7 (64 bit)
              using
              IE8
              Firefox 3.6.8


                • 16568
                • 3 Posts
                I am seeing this issue as well.

                Same JavaScript errors as reported above.

                MODx version: MODx Revolution 2.0.0 pl

                PHP 5.3.1
                mysql 5.1.41
                Apache 2.2.14

                Tested on Firefox, IE8 and Google Chrome same problem for all.
                  • 8869
                  • 32 Posts
                  I Have added a bug for this issue at:

                  http://svn.modxcms.com/jira/browse/MODX-2221

                  Please go vote for it if you too are having issues so that this gets some attention
                    • 22840
                    • 1,572 Posts
                    Done the upgrade and tried again and still didn’t work.

                    Have installed a fresh version on the exact same server and can create 1 image tv, all other attempts fail and give the following error:

                    [2010-08-08 14:32:51] (ERROR @ /new2/connectors/element/tv.php) modTemplateVarTemplate: Attempt to set NOT NULL field rank to NULL


                    If I duplicate the TV then it works, however if i then try to assign it to any other template it fails again.

                    Really stuck now as I need to create 4 image tv’s for 1 template and can’t, until I can the site is at a stand still so any help would be appreciated.

                    Thanks
                      • 25636
                      • 21 Posts
                      I found the error in my setup that was causing file, image, check box and radio button TVs not to render the input field.

                      I had used Provisioner to grab the template variables from an Evo install. The Provisioner package had populated the default_text field in the modx_site_tmplvars table with ’\n’. After changing it in phpMyAdmin to ’’ (blank), all the missing TV fields reappeared.
                        Linux 2.6.32.8-grsec-2.1.14-modsign-xeon-64, PHP 5.2.14, MySQL 5.0.51a(client) 5.1.39-log (server), --with-pdo-mysql, Firefox/3.6.12