Skip to content

array?  #25

@redtoadmedia

Description

@redtoadmedia

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions