?
avatar silentservicemc
silentservicemc
29 Apr 2017

Steps to reproduce the issue

Upgraded to Joomla 3.7

Expected result

Smooth execution of existing code

Actual result

Warning: Cannot use a scalar value as an array in /home/silentservicemc/public_html/libraries/cms/html/html.php on line 620

Warning: Cannot use a scalar value as an array in /home/silentservicemc/public_html/libraries/cms/html/html.php on line 621

Warning: Cannot use a scalar value as an array in /home/silentservicemc/public_html/libraries/cms/html/html.php on line 622

Warning: Cannot use a scalar value as an array in /home/silentservicemc/public_html/libraries/cms/html/html.php on line 623

Here is the block of code from HTML.php::
else
{
$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;
}

System information (as much as possible)

Host: GoDaddy.com
PHP version: 5.6
Joomla: 3.7
Template: Beeze!

Additional comments

avatar silentservicemc silentservicemc - open - 29 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 29 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Apr 2017
avatar Quy
Quy - comment - 29 Apr 2017

Please test this pr #15641 to confirm that it will fix your issue.

avatar silentservicemc
silentservicemc - comment - 29 Apr 2017

Like a CHAMP! Thank you for the rapid response...

I am a PowerScript guy by trade... PHP is kinda alien to me. I saw the $options variable defined as an Array in the preceding If Statement, and assumed it would follow through to the Else statement.

Again, Thank you so much for the rapid turn around.

Sly


From: Quy notifications@github.com
Sent: Friday, April 28, 2017 10:53 PM
To: joomla/joomla-cms
Cc: silentservicemc; Author
Subject: Re: [joomla/joomla-cms] Scalar Array Error (#15677)

Please test this pr #15641#15641 to confirm that it will fix your issue.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub#15677 (comment), or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aa3m1pZ3FJJCl0N56RfqXqDEkdpDQIkIks5r0qY4gaJpZM4NMIAi.

avatar brianteeman brianteeman - change - 29 Apr 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-04-29 03:53:57
Closed_By brianteeman
avatar brianteeman brianteeman - close - 29 Apr 2017
avatar brianteeman
brianteeman - comment - 29 Apr 2017

Closed

avatar Quy
Quy - comment - 29 Apr 2017

@silentservicemc If you have a free moment, please consider marking pr #15641 successful here. Thanks.
https://issues.joomla.org/tracker/joomla-cms/15641

Add a Comment

Login with GitHub to post a comment