Wed Dec 12, 2018, 2:15 am
 2  32881
Showing 1 to 3 of 3 entries.

I am using Joomla 3.5.1, PHP 5.6.17 and Rquotes component 3.1.0 and module 2.5.2 and I am getting the following PHP error in the module:

Strict Standards: Non-static method modRquotesHelper::getRandomRquote() should not be called statically in /home1/researg6/public_html/modules/mod_rquotes/mod_rquotes.php on line 39

Strict Standards: Only variables should be assigned by reference in /home1/researg6/public_html/modules/mod_rquotes/helper.php on line 29

Strict Standards: Non-static method modRquotesHelper::renderRquote() should not be called statically in /home1/researg6/public_html/modules/mod_rquotes/tmpl/default.php on line 18

Strict Standards: Only variables should be assigned by reference in /home1/researg6/public_html/modules/mod_rquotes/tmpl/_rquote.php on line 15

Then after the 4 errors, the quote itself is displayed along with the author info (i.e. normally for our settings)

Any thoughts on how to remedy this? Does the version 3.1.1a of the component resolve this?

9
Sat Mar 7, 2015, 1:48 pm

It's really frustrating that this long-time bug hasn't been addressed yet.

Here is a possible solution...

/public_html/modules/mod_rquotes/helper.pgp (line 21)

change

function renderRquote(&$rquote, &$params)

to

static function renderRquote(&$rquote, &$params)

(line 26) change

function getRandomRquote($category)

to

static function getRandomRquote($category)

(line 29) change

$db =& JFactory::getDBO();

to

$db = JFactory::getDBO();

/public_html/modules/mod_rquotes/tmpl/_rquotes.php (line 15)

change

$document =&JFactory::getDocument();

to

$document =JFactory::getDocument();

Hope that helps.

1
Thu Jun 30, 2016, 12:35 am

<h5 class="text-center"><span class="cfu-username-box" data-ajax="/joomla321/index.php/help-forum/profiles/mini/u132?tvout=ajax">rhythmicnature - I neglect to thank you back when you posted this. The PHP changes you isted worked perfectly. For anyone else having these error, just make these changes to the two PHP files noted to fix this issue.

</span></h5>

9
Sat Mar 7, 2015, 1:48 pm
Showing 1 to 3 of 3 entries.

Powered by ChronoForums - ChronoEngine.com