We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36613
    • 328 Posts
    I try to display formz form but i see this error:
    [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/model/modx/modx.class.php : 1791) Recoverable error: Argument 2 passed to modX::runSnippet() must be of the type array, null given, called in /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php on line 15 and defined
    [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php : 15) PHP warning: array_merge(): Argument #2 is not an array
    [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/model/modx/modx.class.php : 1791) Recoverable error: Argument 2 passed to modX::runSnippet() must be of the type array, null given, called in /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php on line 15 and defined
    [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php : 15) PHP warning: array_merge(): Argument #2 is not an array
    [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/model/modx/modx.class.php : 1791) Recoverable error: Argument 2 passed to modX::runSnippet() must be of the type array, null given, called in /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php on line 15 and defined
      • 24732 ☆ A M B ☆
      • 300 Posts
      Quote from: cristianb88 at Oct 05, 2015, 11:09 AM
      I try to display formz form but i see this error:
      [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/model/modx/modx.class.php : 1791) Recoverable error: Argument 2 passed to modX::runSnippet() must be of the type array, null given, called in /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php on line 15 and defined
      [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php : 15) PHP warning: array_merge(): Argument #2 is not an array
      [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/model/modx/modx.class.php : 1791) Recoverable error: Argument 2 passed to modX::runSnippet() must be of the type array, null given, called in /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php on line 15 and defined
      [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php : 15) PHP warning: array_merge(): Argument #2 is not an array
      [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/model/modx/modx.class.php : 1791) Recoverable error: Argument 2 passed to modX::runSnippet() must be of the type array, null given, called in /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php on line 15 and defined

      me too. anyone see any fix?
        ________

        Anne
        Toad-in-Chief
        Red Toad Media - Web Design, Louisville KY
        Hear me tweet: http://www.twitter.com/redtoadmedia
        "Bring on the imperialistic condiments." - Rory Gilmore
        • 24732 ☆ A M B ☆
        • 300 Posts
        ok so I found this on Google. https://github.com/silentworks/formz/issues/33

        looks like it might have something to do with TVs. working on it.
          ________

          Anne
          Toad-in-Chief
          Red Toad Media - Web Design, Louisville KY
          Hear me tweet: http://www.twitter.com/redtoadmedia
          "Bring on the imperialistic condiments." - Rory Gilmore
          • 36613
          • 328 Posts
          Quote from: redtoad at Nov 30, 2015, 07:52 AM
          Quote from: cristianb88 at Oct 05, 2015, 11:09 AM
          I try to display formz form but i see this error:
          [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/model/modx/modx.class.php : 1791) Recoverable error: Argument 2 passed to modX::runSnippet() must be of the type array, null given, called in /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php on line 15 and defined
          [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php : 15) PHP warning: array_merge(): Argument #2 is not an array
          [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/model/modx/modx.class.php : 1791) Recoverable error: Argument 2 passed to modX::runSnippet() must be of the type array, null given, called in /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php on line 15 and defined
          [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php : 15) PHP warning: array_merge(): Argument #2 is not an array
          [2015-10-05 17:38:44] (ERROR @ /var/www/www.zzzxxxxzzz.it/public_html/core/model/modx/modx.class.php : 1791) Recoverable error: Argument 2 passed to modX::runSnippet() must be of the type array, null given, called in /var/www/www.zzzxxxxzzz.it/public_html/core/components/formz/processors/mgr/tv/output/formz.class.php on line 15 and defined

          me too. anyone see any fix?



          I think Formz isn't a good plugin, and not comptible with new version of modx.
          You can try this modules:
          https://modx.today/posts/2015/05/new-extra-in-beta-formalicious


            • 24732 ☆ A M B ☆
            • 300 Posts
            thats possible and I will check out the alternative. but I'm looking at the code. I like fixing if I can tongue

            <?php
            class FormzOutputRender extends modTemplateVarOutputRender {
            	public function getLexiconTopics() {
                    return array('tv_widget', 'formz:tv');
                }
            
                public function process($value,array $params = array()) {
                    $options = array();
                    foreach($params as $key => $val) {
                        if (!empty($val)) {
                            $options[$key] = $val;
                        }
                    }
                    $mainOptions = array_merge(array('id' => $value), $options);
            		return $this->modx->runSnippet('fmzForms', array_merge($mainOptions, $this->tv->_properties));
                }
            }
            return 'FormzOutputRender';


            is the file with the issue and specifically:

                    $mainOptions = array_merge(array('id' => $value), $options);


            ok. and my error is this.

            /home/foo/public_html/bar/core/components/formz/processors/mgr/tv/output/formz.class.php : 15) PHP warning: array_merge(): Argument #2 is not an array


            and I know from above that this has something to do with the TV. So. it isn't merging the formz tv as an array. hrm. [ed. note: redtoad last edited this post 10 years, 10 months ago.]
              ________

              Anne
              Toad-in-Chief
              Red Toad Media - Web Design, Louisville KY
              Hear me tweet: http://www.twitter.com/redtoadmedia
              "Bring on the imperialistic condiments." - Rory Gilmore
              • 24732 ☆ A M B ☆
              • 300 Posts
              ok I opened an issue on git. I think you're right and there is something not compatible but I have to move on. Hopefully will get some help.


              https://github.com/Adido/formz/issues/25
                ________

                Anne
                Toad-in-Chief
                Red Toad Media - Web Design, Louisville KY
                Hear me tweet: http://www.twitter.com/redtoadmedia
                "Bring on the imperialistic condiments." - Rory Gilmore
                • 24732 ☆ A M B ☆
                • 300 Posts
                ok I opened an issue on git. I think you're right and there is something not compatible but I have to move on. Hopefully will get some help.


                https://github.com/Adido/formz/issues/25
                  ________

                  Anne
                  Toad-in-Chief
                  Red Toad Media - Web Design, Louisville KY
                  Hear me tweet: http://www.twitter.com/redtoadmedia
                  "Bring on the imperialistic condiments." - Rory Gilmore