我尝试将mysite(使用Codedigniter)上传到Virtualmin(使用Php 5.6),但是我的网站无法正常工作。只是显示标题部分和错误。
链接是daunhotdongluc.com,我试图更新Php 7.2并重新启动php / mysql,但仍然无法正常工作
index.php中的代码
protected $fillable = ['user_id','active','created_at'];
错误显示:
<?php
session_start();
date_default_timezone_set('Asia/Ho_Chi_Minh');
error_reporting(E_ALL & ~E_NOTICE & ~8192);
$session=session_id();
@define ( '_template' , './templates/');
@define ( '_source' , './sources/');
@define ( '_lib' , './admin/lib/');
@define ( _upload_folder , './upload/');
include_once _lib."config.php";
include_once _lib."constant.php";
include_once _lib."functions.php";
include_once _lib."functions_giohang.php";
include_once _lib."class.database.php";
$d = new database($config['database']);
$sql = "select * from #_company limit 0,1";
$d->query($sql);
$company= $d->fetch_array();
$lang=$company['lang'];
$lang_arr=array("vi","en");
if (isset($_SESSION['lang']) == true){
if (in_array($_SESSION['lang'], $lang_arr)==true){$lang = $_SESSION['lang'];}
}
require_once _source."lang_$lang.php";
require_once _source."lang_$lang.php";
include_once _lib."file_requick.php";
if($_REQUEST['command']=='add' && $_REQUEST['productid']>0){
$pid=$_REQUEST['productid'];
addtocart($pid,1,$data);
redirect("http://$config_url/gio-hang.html");
}
include_once _source."counter.php";
?>