===控制台和日志中的错误===
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:41nStack 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__ConcreteCoreEntitySiteLocale::setSiteTree($tree) should be compatible with ConcreteCoreEntitySiteLocale::setSiteTree(?ConcreteCoreEntitySiteSiteTree $tree = NULL) (2) This was an exception I received before getting "Uncaught Error...."
我发现了一些与这个错误有关的参考
concrete5.org/community/forums/customizing_c5/…用户描述了可能性的数量。但需要帮助unerst以及我应该检查服务器设置的原因我的错误以及我应该查找什么
该网站有一个多语言的网站地图,但都不起作用。该网站目前的版本是";混凝土5-8.5.0";。
我能找到的任何相关问题都是早期版本的混凝土5,并且致力于解决该问题的更改已经存在于这个版本的中
我找到的一些URLhttps://www.concrete5.org/community/forums/usage/cant-load-sitemap-error-msg-inetrnal-server-errorhttps://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的日志中有任何错误消息吗?