==== 控制台和日志中的错误 ====
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...."
我发现了一些与此错误相关的参考资料
具体5.org/community/forums/customizing_c5/… 用户描述可能性的数量。但是需要帮助理解为什么我应该检查服务器设置是否有错误以及我应该寻找什么
该站点有一个多语言站点地图,但它们都不起作用。该站点当前的版本为“concrete5 - 8.5.0”。
我能找到的任何相关问题都与早期版本的具体 5 相关,并且为解决该问题而提交的更改已存在于此版本中
我发现的一些 URL https://www.concrete5.org/community/forums/usage/cant-load-sitemap-error-msg-inetrnal-server-error https://www.concrete5.org/community/论坛/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