Joomla - PHP 错误信息

2022-01-06 00:00:00 php require-once joomla

最新:这次我设法正确下载了所有文件,但是当我尝试导入我的 sql 文件时收到此消息:

Latest: I've managed to download all files properly this time, but I get this message when I'm trying to import my sql file:

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

The new host has a max limit of 51,200 KiB, my sql file is only 12.5MB and 3.0 MB when zipped. If I upload it as a zip file, it says

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 文件上传,则连接会在上传时重置.

However, if I upload it purely as a sql file, the connection resets while it uploads.

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

I just migrated my Joomla files over to a new web host, and I get the following error message:

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 的代码片段:

And here's a snippet of the code from index.php:

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 重新下载文件,显然有些文件夹的顺序不同并且出现在错误的位置.

Redownloading the files from FTP, apparently some folders aren't in the same order and appear in the wrong places.

  • 原始文件夹结构:http://i.imgur.com/d3IXArG.png
  • 当前:http://i.imgur.com/57jPU3Q.png

推荐答案

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

I'm sure you can understand PHP, if not the error means that it cannot locate the file 'include/defines.php' from your website.

>

检查

你有这些文件吗?

  • includes/defines.php

附注

我们需要更多信息,从您那里得到这些信息后,我将编辑我的答案:

We require more information, I shall edit my answer after getting these information from you:

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

相关文章