我正在将网站移到另一台服务器上进行测试。
收到此错误
在第320行的my-path-to-root / my-site / includes / entity.inc中调用未定义的函数field_attach_load()
奇怪......如果我尝试访问子目录http://www.mysite/randomstuff 我收到此错误
致命错误:在第130行的/home/borsodas3/digipowers.devserver2012.com/modules/overlay/overlay.module中调用未定义的函数user_access()
致命错误:在第598行的/home/borsodas3/digipowers.devserver2012.com/sites/all/modules/taxonomy_access/taxonomy>_access.module中调用未定义的函数node_access_needs_rebuild()
这是两个php.info文件
我正在迁移的网站的drupal状态报告看起来像这样......
Info
Drupal 7.8
OK
Access to update.php Protected
Error
CTools CSS Cache Unable to create
The CTools CSS cache directory, ctools/css could not be created due to a misconfigured files directory. Please ensure that the files directory is correctly configured and that the webserver has permission to create directories.
OK
Configuration file Protected
OK
Credit card encryption Credit card data is encrypted during checkout for maximum security.
OK
Cron maintenance tasks Last run 26 min ago
You can run cron manually.
To run cron from outside the site, go to mysite.com
OK
Database system MySQL, MariaDB, or equivalent
OK
Database system version 5.1.57-log
OK
Database updates Up to date
OK
Date API System date settings
The timezone has been set to America/New_York. The first day of the week has been set to Monday. The medium date format has been set to to F j, Y - g:ia.
Error
Drupal core update status Not secure! (version 7.12 available)
There is a security update available for your version of Drupal. To ensure the security of your server, you should update immediately! See the available updates page for more information and to install your missing updates.
OK
File system Writable (public download method)
OK
Fitvids library Installed
Fitvids Javascript Library. Download it from here, copy it to the module directory, and rename it to jquery.fitvids.js.
OK
GD library PNG support bundled (2.0.34 compatible)
OK
GD library rotate and desaturate effects bundled (2.0.34 compatible)
OK
Images Product image support has been automatically configured by Ubercart.
Error
Module and theme update status Not secure!
There are security updates available for one or more of your modules or themes. To ensure the security of your server, you should update immediately! See the available updates page for more information and to install your missing updates.
OK
Node Access Permissions 1832 permissions in use
If the site is experiencing problems with permissions to content, you may have to rebuild the permissions cache. Rebuilding will remove all privileges to content and replace them with permissions based on the current modules and settings. Rebuilding may take some time if there is a lot of content or complex permission settings. After rebuilding has completed, content will automatically use the new permissions. Rebuild permissions
OK
PHP 5.3.2 (more information)
OK
PHP extensions Enabled
OK
PHP memory limit 300M
OK
PHP register globals Disabled
Warning
Unicode library Standard PHP
Operations on Unicode strings are emulated on a best-effort basis. Install the PHP mbstring extension for improved Unicode support.
OK
Update notifications Enabled
Info
Upload progress Not enabled
Your server is capable of displaying file upload progress through APC, but it is not enabled. Add apc.rfc1867 = 1 to your php.ini configuration. Alternatively, it is recommended to use PECL uploadprogress, which supports more than one simultaneous upload.
OK
Web server Apache/2.2.3 (CentOS)
OK
cURL Enabled
答案 0 :(得分:1)
我要做的第一件事是更新到最新版本的Drupal Core。您看到的错误消息来自核心,但可能来自contrib模块。如果任何模块与Drupal核心一样过时,请更新所有模块。 Drupal 7.8中存在安全问题,其他可能影响您情况的问题很可能已得到解决。 Drupal的当前版本是7.12,自Drupal 7.8以来已经修复了很多,大约6个月前发布了,所以你肯定想要升级核心。您是否有可能在不同的计算机上运行不同版本的核心?如果是这样,数据库可能不兼容,特别是如果您使用较新的数据库(更新的模块和核心)并将其加载到具有较旧模块/核心的系统中。
在更新其他contrib模块并在适当的时间运行update.php之后,如果问题仍然存在,您可能希望使用“分而治之”方法来确定哪个模块实际负责。删除contrib模块组并查看问题消失的位置,然后将其缩小到导致问题的位置。它也可能是兼容性问题或配置问题。或者您可能拥有已更新代码的模块,但尚未运行update.php,因此数据库不应该是它应该是什么。您还可以使用Devel模块等工具来尝试追踪问题,但这取决于您网站的“破坏”程度。如果你遇到“致命错误”,那么你可能首先想看看你能做些什么来超越它。
我还注意到您需要正确设置文件目录的权限/所有权,以便可以进行CSS缓存(Web服务器可能尝试执行的其他任务以及可能涉及您遇到的错误的任务),即使不是“致命错误”的根源。
希望有所帮助......故障排除有时会很痛苦。
答案 1 :(得分:0)
当我第一次安装时,我没有选中“创建新数据库”并且在第321行有相同的包。