strange warning with modules anywhere

Search
Other Bug Reports questions
Forum

strange warning with modules anywhere

Gregor Bresser / bresser media's Avatar Gregor Bresser / bresser media
I get back a strange warning: Warning: Undefined array key "contactid" in /Joomla/plugins/system/modulesanywhere/src/Replace.php on line 762

- parameter override in plugin is active
- warning only for own parameters
- Modules Anywhere v7.16.7PRO
// from HTML Override

$outputContactModule = '';

if ($jcFields['news-kontakt']->rawvalue != 1) {
   $getModule = "{module id='110' contactid='".$jcFields['news-kontakt']->rawvalue."'}";
    $outputContactModule =  JHtml::_('content.prepare', $getModule, '', 'mod_contacts_list.content');
}


// is {module id='110' contactid='3'}
Peter van Westen's Avatar Peter van Westen ADMIN
Weird error, as that line is a comment...
And are you sure the module with id 110 has the contactid property?
Please post a rating at the Joomla! Extensions Directory
Gregor Bresser / bresser media's Avatar Gregor Bresser / bresser media
Ok, I created the param as hidden field, saved the module and the warning disappears.

Sorry, the line was incorrect.
            // Value is not found in the module params
774           if ( ! isset($settings->{$settings_props[$key]}))
            {
                $settings->{$key} = $value;
                continue;
            }

contactid doesn't need to be a property in the module.
Peter van Westen's Avatar Peter van Westen ADMIN
It is fixed in the latest development release on:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in