【问题标题】:Joomla - PHP error messageJoomla - PHP 错误信息
【发布时间】:2013-08-28 00:53:52
【问题描述】:

最新:这次我已成功下载所有文件,但在尝试导入我的 sql 文件时收到此消息:

新主机的最大限制为 51,200 KiB,我的 sql 文件压缩后只有 12.5MB 和 3.0 MB。如果我将其作为 zip 文件上传,则会显示

Script timeout passed, if you want to finish import, please resubmit same file and import will resume.

或者显示:

#1044 - Access denied for user 'a9806073_blurb'@'localhost' to database '1487929_blurb' 

但是,如果我将其纯粹作为 sql 文件上传,则在上传时连接会重置。


我刚刚将我的 Joomla 文件迁移到一个新的网络主机,我收到以下错误消息:

Warning: require_once(/home/a9806073/public_html/includes/defines.php) [function.require-once]: failed to open stream: No such file or directory in /home/a9806073/public_html/index.php on line 21

Free Web Hosting

PHP Error Message

Fatal error: require_once() [function.require]: Failed opening required '/home/a9806073/public_html/includes/defines.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a9806073/public_html/index.php on line 21

这里是 index.php 中代码的 sn-p:

define( '_JEXEC', 1 );

define('JPATH_BASE', dirname(__FILE__) );

define( 'DS', DIRECTORY_SEPARATOR );

require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );

编辑:从 FTP 重新下载文件,显然某些文件夹的顺序不同,并且出现在错误的位置。

【问题讨论】:

  • 您似乎丢失了大部分文件。
  • 是的,我这次一个一个重新下载了文件夹,但是在导入我的sql文件时出现这个错误:'脚本超时,如果你想完成导入,请重新提交相同的文件,导入会恢复。'

标签: php joomla require-once


【解决方案1】:

我相信你能理解 PHP,如果不是,错误意味着它无法从你的网站找到文件 'include/defines.php'。

检查

你有这些文件吗?

  • 包含/定义.php

旁注

我们需要更多信息,我会在收到您的这些信息后编辑我的答案:

  • 版本
  • PHP 版本 (phpinfo())

【讨论】:

  • - 是的,我在 include 文件夹中有 define.php 文件。 - PHP 版本:5.2.*(我要迁移到的那个) - 5.3.22(以前的主机,但它让我可以选择切换到 5.2.17)
  • 尝试切换到5.2.17,看看有没有效果。 joomla 版本是多少?
  • 1.5.你看到这个了吗?在底部进行了修改。原始文件夹结构:i.imgur.com/d3IXArG.png 当前:i.imgur.com/57jPU3Q.png
  • 如果它们的风格相同,但文件不同,这样我就可以轻松比较了。
  • 检查configuration.php中的路径
猜你喜欢
  • 1970-01-01
  • 2017-09-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-03-17
  • 2013-05-10
相关资源
最近更新 更多