News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Warning messages on joomla 3.7 and php 7.1 - [Fixed in 3.2.52]

Started by nzy182, 11.05.2017 05:26:16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nzy182

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
  •  

nzy182

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
  •  

Arno

Thanks for this information. I will fix it in next version.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •