加载错误! 内部服务器错误-具体的5个站点地图

问题描述

====控制台和日志中的错误====

The error message is as follows Uncaught Error: Call to a member function getSite() on null in \/var\/www\/xxxxxxx.org\/concrete\/src\/Entity\/Site\/SiteTree.PHP:41\nStack trace:\n#0 After some research,I found that this is happening because the locale was returned as null to getSite function. Not sure why this is happening. Could please let me kNow the reason this Could be happening so that I can check on those possibilities as well

已记录异常:

/var/www/xxxxxxx.org/application/config/doctrine/proxies/__CG__ConcreteCoreEntitySiteLocale.PHP:8 Declaration of DoctrineProxies__CG__\Concrete\Core\Entity\Site\Locale::setSiteTree($tree) should be compatible with Concrete\Core\Entity\Site\Locale::setSiteTree(?Concrete\Core\Entity\Site\SiteTree $tree = NULL) (2) This was an exception I received before getting "Uncaught Error...."

我发现了一些与此错误有关的参考

concrete5.org/community/forums/customizing_c5/…用户在哪里 描述了可能性的数量。但是需要帮助 无法理解我为什么要检查服务器设置的原因 我的错误以及我应该寻找什么

站点具有多语言站点地图,但均不起作用。该站点当前的版本为“ concrete5-8.5.0”。

无论我能找到什么相关问题,都是与早期版本的Concrete 5有关,并且致力于解决该问题的更改已在该版本中存在

我找到的一些URL https://www.concrete5.org/community/forums/usage/cant-load-sitemap-error-msg-inetrnal-server-error https://www.concrete5.org/community/forums/customizing_c5/sitemap-no-longer-works-shows-and039internal-server-errorand039/ https://github.com/concrete5/concrete5/commit/2cf69ac90a8c8d1c7a451c9a82badf358cc74a1a

他们都没有指出我们这个问题的原因。如果有人可以帮助我指出问题的原因和解决方案,我将不胜感激。

环境信息如下:

# concrete5 Version
Core Version - 8.5.0
Version Installed - 8.5.0
Database Version - 20190301133300



# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# PHP Version
7.1.33-16+ubuntu18.04.1+deb.sury.org+1

# PHP Extensions
bz2,calendar,cgi-fcgi,Core,ctype,curl,date,dom,exif,fileinfo,filter,ftp,gd,hash,iconv,igbinary,json,libxml,mbstring,mcrypt,memcached,msgpack,MysqLi,MysqLnd,openssl,pcre,PDO,pdo_MysqL,Phar,posix,readline,Reflection,session,shmop,SimpleXML,soap,sockets,SPL,standard,sysvmsg,sysvsem,sysvshm,tokenizer,wddx,xml,xmlreader,xmlwriter,xsl,Zend OPcache,zlib

# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 120
max_input_vars - 10000
memory_limit - 128M
post_max_size - 50M
sql.safe_mode - Off
upload_max_filesize - 30M
memcached.sess_lock_max_wait - not set
memcached.sess_lock_wait_max - 150
memcached.sess_server_failure_limit - 0
MysqLi.max_links - Unlimited
MysqLi.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 100000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

解决方法

您能更具体一点吗?您说站点地图不起作用是什么意思?你看到了什么?浏览器的控制台或Concrete5的日志中是否有任何错误消息?

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...