“Cannot use a scalar value as an array” error in Joomla 3.7.0 (html.php)

361
May 17, 2017, at 1:13 PM

I recently updated my Joomla website to 3.7.0. and my contact form is not working properly; it is forever on "sending" status and never becomes "sent".

I do not think there is a problem with the module, but I believe the problematic code below is an issue, because it still persists after deactivating the module.

{
    $options['relative']      = isset($options['relative']) ? $options['relative'] : false;
    $options['pathOnly']      = isset($options['pathOnly']) ? $options['pathOnly'] : false;
    $options['detectBrowser'] = isset($options['detectBrowser']) ? $options['detectBrowser'] : true;
    $options['detectDebug']   = isset($options['detectDebug']) ? $options['detectDebug'] : true;
}

I am getting the error "Cannot use a scalar value as an array" in html.php.

Please help; this is my first StackOverflow post.

READ ALSO
How to login with cURL and use regex

How to login with cURL and use regex

This is my codeI don't know why its not working,everything seems fine maybe?

410
Eloquent - Random from a existing list

Eloquent - Random from a existing list

I see that I can get a random row in Laravel 5 by:

331
convert multidimensional array to json format

convert multidimensional array to json format

I just started learning about JSONI have to create a static multidimensional array which later required to convert to json encode

344
Yii2 get data using hasMany relation

Yii2 get data using hasMany relation

I have a query $occupier that get all the ID (10 & 16) from the tableThe problem is how should I put it in the activeDataProvider query so that I can get all the ID that pass on since I cant do foreach loop inside the query

557