duange051858 2018-06-27 10:26
浏览 131

Joomla:JFactory :: getApplication('site')在刷新时返回错误

When I switch pages to much on my website or refresh a couple of times fast, i get the 'Application Instantiation Error' of factory.php

Here is the code index.php

$app = JFactory::getApplication('site');

Here is the code in /libraries/joomla/factory.php

public static function getApplication($id = null, array $config = array(), $prefix = 'J')
{
    if (!self::$application)
    {
        if (!$id)
        {
            throw new Exception('Application Instantiation Error', 500);
        }

        self::$application = JApplication::getInstance($id, $config, $prefix);
    }
    return self::$application;
}

Is there a way to solve this? Is this a Joomla error or a database error?

Hope somebody can help.

  • 写回答

1条回答 默认 最新

  • duanbenzan4050 2018-06-29 10:39
    关注

    This is likely a problem with the connection to the database (possibly some limit imposed by your host). Check your logs to see what is going on (this one /usr/local/apache/logs/error_log ). If you can't find anything in the logs then talk to your host about this problem (ask them to switch you to a higher plan if they try blaming the CMS).

    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料