Strict Standards: Only variables should be assigned by reference in /home/saintgab/public_html/plugins/system/auto_frontpage/auto_frontpage.php on line 66

Strict Standards: Only variables should be assigned by reference in /home/saintgab/public_html/plugins/system/auto_frontpage/auto_frontpage.php on line 400

Strict Standards: Only variables should be assigned by reference in /home/saintgab/public_html/plugins/system/auto_frontpage/auto_frontpage.php on line 95

Strict Standards: Only variables should be assigned by reference in /home/saintgab/public_html/plugins/system/auto_frontpage/auto_frontpage.php on line 488

Strict Standards: Only variables should be assigned by reference in /home/saintgab/public_html/plugins/system/auto_frontpage/auto_frontpage.php on line 400

Strict Standards: Only variables should be assigned by reference in /home/saintgab/public_html/plugins/system/k2/k2.php on line 320
PHP error

PHP error

Only variables should be assigned by reference

/home/saintgab/public_html/plugins/system/k2/k2.php(27)

15 class plgSystemK2 extends JPlugin
16 {
17 
18     function plgSystemK2(&$subject, $config)
19     {
20 
21         parent::__construct($subject, $config);
22     }
23 
24     function onAfterRoute()
25     {
26 
27         $mainframe = &JFactory::getApplication();
28         $basepath = ($mainframe->isSite()) ? JPATH_SITE : JPATH_ADMINISTRATOR;
29         JPlugin::loadLanguage('com_k2', $basepath);
30         if (K2_JVERSION == '16')
31         {
32             JPlugin::loadLanguage('com_k2.j16', JPATH_ADMINISTRATOR, null, true);
33         }
34         if ($mainframe->isAdmin())
35         {
36             return;
37         }
38         if ((JRequest::getCmd('task') == 'add' || JRequest::getCmd('task') == 'edit') && JRequest::getCmd('option') == 'com_k2')
39         {

Stack Trace

#1
+
 /home/saintgab/public_html/libraries/joomla/event/event.php(71): call_user_func_array(array(plgSystemK2, "onafterroute"), array())
66          * If the method to handle an event exists, call it and return its return
67          * value.  If it does not exist, return null.
68          */
69         if (method_exists($this, $event))
70         {
71             return call_user_func_array(array($this, $event), $args);
72         }
73         else
74         {
75             return null;
76         }
#2
+
 /home/saintgab/public_html/libraries/joomla/event/dispatcher.php(161): JEvent->update(array())
156 
157             // Fire the event for an object based observer.
158             if (is_object($this->_observers[$key]))
159             {
160                 $args['event'] = $event;
161                 $value = $this->_observers[$key]->update($args);
162             }
163             // Fire the event for a function based observer.
164             elseif (is_array($this->_observers[$key]))
165             {
166                 $value = call_user_func_array($this->_observers[$key]['handler'], $args);
#3
+
 /home/saintgab/public_html/libraries/joomla/application/application.php(642): JDispatcher->trigger("onAfterRoute", null)
637      */
638     public function triggerEvent($event, $args = null)
639     {
640         $dispatcher = JDispatcher::getInstance();
641 
642         return $dispatcher->trigger($event, $args);
643     }
644 
645     /**
646      * Login authentication function.
647      *
2014-10-31 06:23:02 Apache Yii Framework/1.1.13