歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 29, 2024, 09:22:04 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  安裝完成後出現錯誤訊息無法進入首頁或管理頁面 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 安裝完成後出現錯誤訊息無法進入首頁或管理頁面  (閱讀 9903 次)
manege
新手見習
*
文章: 7


檢視個人資料
« 於: 七月 03, 2006, 04:23:27 下午 »

新手上路~請多多指教!

在貴站下載了 LifeType 1.0.5 正式版
安裝過程都沒有問題
可是安裝完成後
移除了wizard.php
進入管理頁面的登入畫面
打了使用者名稱密碼之後卻出現下面訊息

Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition <b>sessioninfo</b> of the object you are trying to operate on was loaded _before_ the session was started in D:\WebLogSite\class\action\admin\adminloginaction.class.php on line 91

請問這是什麼問題?
已記錄

LifeType測試中...
Server1:
LifeType 1.0.5 / WinXP SP2 / Apache 2.0.52 / PHP 4.3.4 / MySQL 4.0.18
Server2:
LifeType 1.0.5 / WinXP SP2 / Apache 2.0.55 / PHP 5.0.4 / MySQL 4.1.20
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #1 於: 七月 03, 2006, 04:35:12 下午 »

新手上路~請多多指教!

在貴站下載了 LifeType 1.0.5 正式版
安裝過程都沒有問題
可是安裝完成後
移除了wizard.php
進入管理頁面的登入畫面
打了使用者名稱密碼之後卻出現下面訊息

Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition <b>sessioninfo</b> of the object you are trying to operate on was loaded _before_ the session was started in D:\WebLogSite\class\action\admin\adminloginaction.class.php on line 91

請問這是什麼問題?

你的 seesion 設定有錯,到 php.ini 中把 session.auto_start 改為 0

Mark
已記錄

manege
新手見習
*
文章: 7


檢視個人資料
« 回覆文章 #2 於: 七月 03, 2006, 04:46:18 下午 »

session改為0之後
可以進入首頁
但是要進入管理畫面的出現這個訊息

Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition <b>sessioninfo</b> of the object you are trying to operate on was loaded _before_ the session was started in D:\WebLogSite\class\action\admin\admindefaultaction.class.php on line 36

然後按上一頁想回去首頁就掛掉了
出現這個訊息:

Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition <b>sessioninfo</b> of the object you are trying to operate on was loaded _before_ the session was started in D:\WebLogSite\class\action\blogaction.class.php on line 177

這又是怎麼了 疑惑

已記錄

LifeType測試中...
Server1:
LifeType 1.0.5 / WinXP SP2 / Apache 2.0.52 / PHP 4.3.4 / MySQL 4.0.18
Server2:
LifeType 1.0.5 / WinXP SP2 / Apache 2.0.55 / PHP 5.0.4 / MySQL 4.1.20
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #3 於: 七月 03, 2006, 05:10:35 下午 »

你能不能打你 php.ini 中 session 相關的設定列出來?

Mark
已記錄

manege
新手見習
*
文章: 7


檢視個人資料
« 回覆文章 #4 於: 七月 03, 2006, 05:38:05 下午 »

session設定如下,麻煩了~

[Session]
; Handler used to store/retrieve data.
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
; As of PHP 4.0.1, you can define the path as:
;     session.save_path = "N;/path"
; where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
session.save_path = C:/tmp

; Whether to use cookies.
session.use_cookies = 1

; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 1

; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =

; Handler used to serialize data.  php is the standard serializer of PHP.
session.serialize_handler = php

; Define the probability that the 'garbage collection' process is started
; on every session initialization.
; The probability is calculated by using gc_probability/gc_divisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.

session.gc_probability = 1
session.gc_divisor     = 100

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;       (see session.save_path above), then garbage collection does *not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;          cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning seperately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.

session.bug_compat_42 = 1
session.bug_compat_warn = 1

; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
session.referer_check =

; How many bytes to read from the file.
session.entropy_length = 0

; Specified here to create the session id.
session.entropy_file =

;session.entropy_length = 16

;session.entropy_file = /dev/urandom

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
session.cache_limiter = nocache

; Document expires after n minutes.
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
;   to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;   in publically accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
session.use_trans_sid = 0

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to URLs.  If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
已記錄

LifeType測試中...
Server1:
LifeType 1.0.5 / WinXP SP2 / Apache 2.0.52 / PHP 4.3.4 / MySQL 4.0.18
Server2:
LifeType 1.0.5 / WinXP SP2 / Apache 2.0.55 / PHP 5.0.4 / MySQL 4.1.20
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #5 於: 七月 03, 2006, 07:05:31 下午 »

你有 C:/tmp 這個目錄嗎?他是可寫入的嗎?

Mark
已記錄

manege
新手見習
*
文章: 7


檢視個人資料
« 回覆文章 #6 於: 七月 04, 2006, 08:36:32 上午 »

檢查了
tmp資料夾被改成唯讀了
真是不好意思 害羞
十分感謝~


再請問一下
LifeType與php5是否相容?
因為我還有另一台機器要安裝
在討論區其他文章中好像有人用php5裝不起來?
已記錄

LifeType測試中...
Server1:
LifeType 1.0.5 / WinXP SP2 / Apache 2.0.52 / PHP 4.3.4 / MySQL 4.0.18
Server2:
LifeType 1.0.5 / WinXP SP2 / Apache 2.0.55 / PHP 5.0.4 / MySQL 4.1.20
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #7 於: 七月 04, 2006, 10:56:14 上午 »

沒問題啊!我就是用 php5。

Mark
已記錄

頁: [1]
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  安裝完成後出現錯誤訊息無法進入首頁或管理頁面 « 上篇主題 下篇主題 »
    前往: