Open redtoadmedia opened 8 years ago
reference: http://forums.modx.com/thread/98506/formz-don-039-t-work#dis-post-535024
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 that says the error source is from here:
<?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';
and specifically this:
$mainOptions = array_merge(array('id' => $value), $options);
So. it isn't merging the formz tv as an array?
I've changed the default chunks in formit fastpack as referenced in another thread I found, but this looks to me like something is missing?
am searching the modx source for modTemplateVarOutputRender and going to work on a fix as i can, really need this Extra.
reference: http://forums.modx.com/thread/98506/formz-don-039-t-work#dis-post-535024
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 that says the error source is from here:
<?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';
and specifically this:
$mainOptions = array_merge(array('id' => $value), $options);
So. it isn't merging the formz tv as an array?
I've changed the default chunks in formit fastpack as referenced in another thread I found, but this looks to me like something is missing?