我收到一个错误,我不知道如何解决,所以我想知道我是否能得到一些帮助.
这是错误
Fatal error: process_form() [<a href='function.process-form'>function.process-form</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Template" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home/twinmeddev/html/template_add.php on line 44
Run Code Online (Sandbox Code Playgroud)
我在process_form()函数中遇到此错误.所以我从中得到的是,它认为我没有为模板加载类.事实上,我在顶部做了什么.包含'inc/item.class.php'; 我是否必须在功能中重新包含它?
这是带有错误的特定页面的代码.你可以看到我拥有应有的一切.我哪里出错了?
<?php
include 'inc/prep.php';
include 'inc/header.class.php';
include 'inc/item.class.php';
include 'inc/template.class.php';
include 'inc/formhelper.class.php';
include 'inc/formvalidator.class.php';
include_once( 'inc/config/config.php' ) ;
include_once( …Run Code Online (Sandbox Code Playgroud)