Question

i am getting start with joomla 3 and completely new to joomla

Set up joomla in localhost . i tried to install vertical-scroll-recent-article-joomla-module with the latest version

i got 3 errorenter image description here

1 and 2nd error gone when change the function getArticleList and loadScripts change to static function. Do we really need to change inside a module readily available?

i dont have any idea how to solve the 3rd

ERROR Strict standards: Only variables should be assigned by reference in C:\wamp\www\joomla\modules\mod_vertical_scroll_recent_article\helper.php on line 24

public static function loadScripts(&$params)
    {
    line 24:    $doc = &JFactory::getDocument();
        $doc->addScript(JURI::Root(true).'/modules/mod_vertical_scroll_recent_article/mod_vertical_scroll_recent_article.js');
    }

i tried removing '&' the error gone ,but the view is not rendering in the front end

Was it helpful?

Solution

Try this,

public static function loadScripts(&$params)
    {
       $doc = JFactory::getDocument(); //On line 24 remove the & 
       $doc->addScript(JURI::Root(true).'/modules/mod_vertical_scroll_recent_article/mod_vertical_scroll_recent_article.js');
    }

This module is written for Joomla lower versions that why this kind of errors.

Hope its works..

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top