Joomla - PHP error message

廉价感情. 提交于 2019-12-24 13:22:08

问题


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:

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.

Or it displays:

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

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


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

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' );

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

  • Original Folder Structure: http://i.imgur.com/d3IXArG.png
  • Current: http://i.imgur.com/57jPU3Q.png

回答1:


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

Checking

Have you got these files?

  • includes/defines.php

Side note

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

  • Version
  • PHP version (phpinfo())


来源:https://stackoverflow.com/questions/18428789/joomla-php-error-message

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!