Forums

Error validate installation in Joomla3

POAWeR 04 Feb, 2013
Hello I use Chronoforms v4 (4.0 RC3.5.2.2) in a joomla 3.0.2 environment. Today the site was taken in production (live.)
To validate installation of Chronoforms I used the key I created earlier and also used in a joomla 2.5 enviroment. domain is the same.
Now I get a warning in the back-end and front-end:
Warning: array_key_exists() expects parameter 2 to be array, null given in /usr/local/www/www.poawer.nl/data/cms/components/com_chronoforms/chronoforms.php on line 26

Is an instant key needed? Normally not needed. And if how can I obtain an instant key?
Thank you in advance for your response.

Wil Panneman
The Netherlands
GreyHead 04 Feb, 2013
Hi Wil,

In the Site Global Administration set the Error Reporting to System Default or None to hide these PHP Warnings and Notices. It should be set like that on a production site anyway.

Bob
POAWeR 04 Feb, 2013
Thank you GreyHead, that was the trick.
arvendal 21 Apr, 2013
Hi,
I get a similar error message when I try to install the plugin on a Joomla 3.0.3 site:
Warning: array_key_exists() expects parameter 2 to be array, null given in /home/f/fib/www/joomla/plugins/content/chronoforms/chronoforms.php on line 30

The message appears right on top of the main content column in frontend when I use the error reporting level "Default". If I switch to error reporting level "none" the message disappears, but not only the first article displays in the column. The rest has vanished.
I use K2 as content manager. It seems that it has something to do with this since other error messages starts to appear in K2 item views when error reporting lever is "default", for example:
Warning: Invalid argument supplied for foreach() in /home/f/fib/www/joomla/components/com_k2/views/item/view.html.php on line 442

When I turn off the Chronoform plugin (or if I switch to error reporting level "none") this latter error message disappears.

I use your plugin Chronoforms_J3.0_V4_RC3.5.3_Plugin.

The problem in short: The plugin prevents the K2 items from display in category layouts if there are more than one item on display.

Is there a solution?

Best regards
GreyHead 22 Apr, 2013
Hi arvendal,

Here's a fix for the Plug-in Warning. Replace line 30 with
if( !is_null($this->params) && is_array($this->params) && array_key_exists($k, $this->params) ) {
all this does is add checks to make sure that there is an arrays parameter.

I've no idea about the K2 Warning and don't see why they would be linked :-(

Bob
This topic is locked and no more replies can be posted.