jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: nzy182 on 11.05.2017 05:26:16

Title: Warning messages on joomla 3.7 and php 7.1 - [Fixed in 3.2.52]
Post by: nzy182 on 11.05.2017 05:26:16
I get a warning message when activating module 'mod_jdownloads_most_recently_downloaded'




Warning: Illegal string offset 'relative' in .....\libraries\cms\html\html.php on line 624

Warning: Cannot assign an empty string to a string offset in .....\libraries\cms\html\html.php on line 624

Warning: Illegal string offset 'pathOnly' in .....\libraries\cms\html\html.php on line 625

Warning: Cannot assign an empty string to a string offset in .....\libraries\cms\html\html.php on line 625

Warning: Illegal string offset 'detectBrowser' in .....\libraries\cms\html\html.php on line 626

Warning: Illegal string offset 'detectDebug' in .....\libraries\cms\html\html.php on line 627

Warning: Illegal string offset 'relative' in .....\libraries\cms\html\html.php on line 630

Warning: Illegal string offset 'detectBrowser' in .....\libraries\cms\html\html.php on line 630

Warning: Illegal string offset 'detectDebug' in .....\libraries\cms\html\html.php on line 630

Warning: Illegal string offset 'pathOnly' in .....\libraries\cms\html\html.php on line 633
Title: Re: Warning messages on joomla 3.7 and php 7.1
Post by: nzy182 on 11.05.2017 06:24:58
For a while i fix it this way
edit ....\modules\mod_jdownloads_most_recently_downloaded\mod_jdownloads_most_recently_downloaded.php
on line 21 replace:     JHTML::stylesheet( 'mod_jdownloads_most_recently_downloaded.css','modules/'.$module->module.'/');

with:
$document = JFactory::getDocument();
$document->addStyleSheet(JURI::root().'modules/'.$module->module.'/mod_jdownloads_most_recently_downloaded.css');


CMIIW
source: https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page
Title: Re: Warning messages on joomla 3.7 and php 7.1
Post by: Arno on 11.05.2017 14:28:33
Thanks for this information. I will fix it in next version.