Quantcast
Channel: Últimos conteúdos
Viewing all articles
Browse latest Browse all 14190

Fatal error: Call to undefined method

$
0
0

não sei como resolver o problema 

Fatal error: Call to undefined method Joomla\Registry\Registry::getValue() in /home/r/rotavigilancia/www/site/plugins/content/fb_tw_plus1/fb_tw_plus1.php on line 416

 

o erro começou a ocorrer ao atualizar o joomla 

aqui está a linha

 

 private function InjectHeadCode($view){

    $document                 = & JFactory::getDocument();
    $enable_like              = $this->params->get( 'enable_like');
    $enable_share             = $this->params->get( 'enable_share');
    $enable_comments          = $this->params->get( 'enable_comments');
 
    if (($enable_share==1)||($enable_like==1)||($enable_comments==1)) {
      $config                   =& JFactory::getConfig();
      $site_name                = $config->getValue('config.sitename');   [ -- LINHA 416-- ]
      $description              = $this->params->get('description');
      $enable_admin             = $this->params->get('enable_admin','0');
      $enable_app               = $this->params->get('enable_app','0');
      $admin_id                 = $this->params->get('admin_id');
      $app_id                   = $this->params->get('app_id');
      if ($this->params->get('auto_language')) {
        $language_fb            = str_replace('-', '_', JFactory::getLanguage()->getTag());
      } else {
        $language_fb            = $this->params->get('language_fb');
      }
      $meta                     = "";
      $head_data = array();
      foreach( $document->getHeadData() as $tmpkey=>$tmpval ){
        if(!is_array($tmpval)){
          $head_data[] = $tmpval;
        } else {
          foreach( $tmpval as $tmpval2 ){
            if(!is_array($tmpval2)){
              $head_data[] = $tmpval2;
            }
          }
        }
      }

Viewing all articles
Browse latest Browse all 14190