【问题标题】:joomla 3.4 transfer to other serverjoomla 3.4 转移到其他服务器
【发布时间】:2015-11-10 07:28:47
【问题描述】:

我已将 Joomla 3.4(从 cPanel 备份)转移到 Plesk。该网站为 8GB。

我已更改文件夹和文件的权限。我可以正常登录/administrator

在前端我收到此错误消息 -

注意:使用未定义的常量 JPATH_BASE - 在第 12 行的 /var/www/vhosts/XXXXX/httpdocs/defines.php 中假设为“JPATH_BASE” 注意:使用未定义的常量 JPATH_BASE - 在 /var/www 中假设为“JPATH_BASE”第 22 行的 /vhosts/XXXXX/httpdocs/defines.php 注意:使用未定义的常量 JPATH_BASE - 在第 23 行的 /var/www/vhosts/XXXXX/httpdocs/defines.php 中假定为“JPATH_BASE”警告:require_once(/var/ www/vhosts/XXXXX/httpdocs/includes/defines.php):无法打开流:第 31 行的 /var/www/vhosts/XXXXX/httpdocs/index.php 中没有此类文件或目录致命错误:require_once():在第 31 行的 /var/www/vhosts/XXXXX/httpdocs/index.php 中打开所需的 '/var/www/vhosts/XXXXX/httpdocs/includes/defines.php' (include_path='.:') 失败

另外,我在同一台服务器上还有另一个 Joomla 站点,它按预期加载,没有出现错误。

我需要帮助来确定如何修复此错误。

【问题讨论】:

  • 您的站点根目录中是否真的有一个defines.php 文件夹?它是否定义了 JPATH_ROOT?

标签: joomla transfer


【解决方案1】:

configuration.php 文件中的帐户常量是否已更新到新服务器?如果你有的话,另外检查你的 php.ini 文件。

【讨论】:

    【解决方案2】:

    似乎“defines.php”文件已移至根路径。

    它应该在“\includes”路径中。 https://github.com/joomla/joomla-cms/tree/staging/includes

    将其移动(裁剪/粘贴)到“\includes”文件夹中。

    【讨论】:

      猜你喜欢
      • 2015-12-01
      • 2015-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-22
      • 2017-12-08
      • 2021-11-12
      • 1970-01-01
      相关资源
      最近更新 更多