简体   繁体   English

在Joomla网站上获取空白页

[英]Getting blank page on a Joomla site

The Joomla 2.5+ version site was working for over year but suddenly it is showing blank page. Joomla 2.5或更高版本的网站已经工作了一年多,但突然它显示空白页。

Also I am unable to save anything in admin panel. 另外,我无法在管理面板中保存任何内容。 Recently I have also made its beta website with new installation Joomla with different db in beta folder under root directory. 最近,我还在新安装的Joomla的Beta网站上建立了它,在根目录下的beta文件夹中有不同的db。 I don't really think it has created the problem for the original website. 我真的不认为这是原始网站的问题。

In the error log under admin panel I found this: 在管理面板下的错误日志中,我发现了这一点:

PHP Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /public_html/plugins/authentication/gmail/gmail.php on line 55 PHP警告:curl_setopt()[function.curl-setopt]:启用safe_mode或在第55行的/public_html/plugins/authentication/gmail/gmail.php中设置了open_basedir时,无法激活CURLOPT_FOLLOWLOCATION

In the error log under home directory I found this: 在主目录下的错误日志中,我发现了这一点:

PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 78 bytes) in /public_html/libraries/gantry/core/utilities/gantrylesscompiler.class.php on line 1594 PHP致命错误:在1594行的/public_html/libraries/gantry/core/utilities/gantrylesscompiler.class.php中,耗尽了33554432字节的允许内存大小(试图分配78字节)

This is a very old question but it is still relevant and so I will answer it. 这是一个非常老的问题,但仍然很重要,因此我将回答。 Gantry templates typically need a lot of memory (they really are complex), which means that 32 MB of memory allocated to the page is not enough. 龙门模板通常需要大量内存(它们确实很复杂),这意味着分配给页面的32 MB内存是不够的。 You will need more. 您将需要更多。 Try creating a php.ini file or a .user.ini file under the root directory of your Joomla website with the following code: 尝试使用以下代码在Joomla网站的根目录下创建php.ini文件或.user.ini文件:

memory_limit = 64M;

The above will double the allocated memory per page to 64M, if it doesn't work for you then change it to 128M. 上面的代码会将每页分配的内存增加一倍,达到64M,如果对您不起作用,则将其更改为128M。 Typically, for a low traffic website, you will be on the safe side for up to 256M (unless your website is hit with DoS attack). 通常,对于低流量的网站,您可以安全使用高达256M的安全性(除非您的网站受到DoS攻击)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM