0

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.

Obsidian Age
  • 41,205
  • 10
  • 48
  • 71
  • Possible duplicate of [PHP - cannot use a scalar as an array warning](http://stackoverflow.com/questions/6019853/php-cannot-use-a-scalar-as-an-array-warning) – Irfan May 19 '17 at 07:24

1 Answers1

0

You can try declaring the variable $options, as an array, before using it.

$options = array();

Hope this will solve your issue. You can also check link, link2

Thanks & Regards, Kaif

Community
  • 1
  • 1
Kaif Khan
  • 219
  • 6
  • 15