尽管宣布了课程,但没有找到致命的错误类

时间:2017-01-16 04:01:11

标签: php class compiler-errors

对于我的所有文件,我需要framework.php来调用config.php

require_once(realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'config.php');

config.php来电:

require_once(FUNCTIONS_DIR . 'array.php');
require_once(FUNCTIONS_DIR . 'dir.php');
require_once(FUNCTIONS_DIR . 'security.php');
require_once(FUNCTIONS_DIR . 'user.php');
require_once(FUNCTIONS_DIR . 'forms.php');
require_once(FUNCTIONS_DIR . 'tables.php');
require_once(FUNCTIONS_DIR . 'string.php');
require_once(CLASSES_DIR . 'tags.php');
require_once(CLASSES_DIR . 'backup.php');
require_once(CLASSES_DIR . 'image.php');
require_once(CLASSES_DIR . 'automate.php');
require_once(CLASSES_DIR . 'stats.php');
require_once(CLASSES_DIR . 'messages.php');
require_once(CLASSES_DIR . 'nemesis.php');
require_once(CLASSES_DIR . 'upload.php');
require_once(CLASSES_DIR . 'timezone.php');
require_once(CLASSES_DIR . 'media_resource.php');
require_once(CLASSES_DIR . 'mailer/PHPMailerAutoload.php');
require_once(CLASSES_DIR . 'google_analytics_api.php');
require_once(TEMPLATES_DIR . 'construct.php');
require_once(LIBS_DIR . 'prepared_arrays.php');
require_once('AS.php');

AS.php来电:

require_once 'ASConfig.php';
require_once 'ASSession.php';
require_once 'ASValidator.php';
require_once 'ASLang.php';
require_once 'ASRole.php';
require_once 'ASDatabase.php';
require_once 'ASEmail.php';
require_once 'ASLogin.php';
require_once 'ASRegister.php';
require_once 'ASUser.php';

$db = ASDatabase::getInstance();

ASSession::startSession();

$login    = new ASLogin();
$register = new ASRegister();
$mailer   = new ASEmail();

$user = new ASUser(ASSession::get("user_id"));
$userInfo = $user->getInfo();

if ( isset ( $_GET['lang'] ) )
    ASLang::setLanguage($_GET['lang']);

但是,我在class ASUsers的函数中执行:

public function deleteUser() {
        $userProfilePicture = new Images($this->userId);
        $userProfilePicture->deleteProfilePicture(false);
        $this->db->delete("as_users", "user_id = :id", array( "id" => $this->userId ));
        $this->db->delete("as_user_details","user_id = :id", array( "id" => $this->userId ));
        //$this->db->delete("as_comments","posted_by = :id", array( "id" => $this->userId ));
        $this->db->delete("as_social_logins","user_id = :id", array( "id" => $this->userId ));
}

但是我收到致命错误,找不到图像。

我做错了什么?

更新

将AS.php的需求转移到config.php,将AS.php中的脚本转移到framework.php似乎解决了这个问题。不知道为什么。

0 个答案:

没有答案