moving a LifeType site, and met some problem.

moving a LifeType site, and met some problem.

Postby fishy on Sat Jul 01, 2006 10:12 am

my former server was attacked, so I moved to a new server. I dumped the mysql database and imported them into new mysql server, and copied the files.

but when I view my site on new server, there's some errors:

first, it says:
Warning: session_start() [function.session-start]: open(/var/lib/php/session/sess_t5b5kkdghhqj542vn5c2m4lht0, O_RDWR) failed: No such file or directory (2) in /www/fishy/buddie5/blog/class/net/http/session/sessionmanager.class.php on line 41

so I created the directory /var/lib/php/session and make it writable, this warning disappears, but instead, there's many many messages like this:
Strict Standards: Non-static method File::isReadable() should not be called statically, assuming $this from incompatible context in /www/fishy/buddie5/blog/class/logger/loggermanager.class.php on line 135

on every page, there're hundreds of such messages.

can anybody tell me what's wrong?
fishy
 
Posts: 34
Joined: Thu Dec 30, 2004 10:54 pm

Postby jondaley on Sat Jul 01, 2006 12:17 pm

The session error makes sense - php requires that its session directory exist and be writable by whoever is running the php scripts.

I wonder if the File:: static call error is a namespace problem with something you have installed in php? That is a wild guess. I would search the forums to see if other people have reported that.
jondaley
Lifetype Expert
 
Posts: 5971
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Postby phunkphorce on Sun Jul 02, 2006 11:23 am

can you make sure that the file config/logging.properties.php is in place and readable? Make sure its contents are also correct, please compare them with these:

http://www.lifetype.net/svn/plog/plog/t ... erties.php
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Postby fishy on Sun Jul 02, 2006 11:31 am

logging.properties.php is there and readable.

the Strict Standard message may be a problem of my php setting, it may be hidden and ignored.

and there's some warnings like this:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/fishy/buddie5/blog/class/dao/blogstatus.class.php:16) in /www/fishy/buddie5/blog/class/net/http/session/sessionmanager.class.php on line 41
fishy
 
Posts: 34
Joined: Thu Dec 30, 2004 10:54 pm

Postby phunkphorce on Sun Jul 02, 2006 6:38 pm

There's nothing in line 16 of file class/dao/blogstatus.class.php which could be causing this error. Please upload the file again, just to make sure.
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Postby fishy on Sun Jul 09, 2006 8:04 am

I uploaded the file again and the problem remains.

Can anybody give me some explanation about the cookie workflow (or something similar) in LifeType? I've installed another blog system (NucleusCMS) on the same machine and its cookie system is OK.

btw, the machine use a chroot system for web server, maybe this is the root of the problem?
fishy
 
Posts: 34
Joined: Thu Dec 30, 2004 10:54 pm

Postby jondaley on Mon Jul 10, 2006 3:11 pm

What is on lines 10 through 20 of /www/fishy/buddie5/blog/class/dao/blogstatus.class.php
jondaley
Lifetype Expert
 
Posts: 5971
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Postby fishy on Mon Jul 10, 2006 10:09 pm

jondaley wrote:What is on lines 10 through 20 of /www/fishy/buddie5/blog/class/dao/blogstatus.class.php

line 10 - 20:
Code: Select all
    /**
     * This class keeps track of all the possible status that a blog can have. If plugins dynamically
    * register new blog statuses, this class will still be able to handle them
    *
    * \ingroup DAO
     */   
    class BlogStatus extends GenericStatusList
    {
   
        /**
         * returns a list with all the user statuses that have been defined
fishy
 
Posts: 34
Joined: Thu Dec 30, 2004 10:54 pm

Postby jondaley on Tue Jul 11, 2006 9:28 am

I don't think you can be getting that error that you posted above. Please post the error you are getting.
jondaley
Lifetype Expert
 
Posts: 5971
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Postby fishy on Tue Jul 11, 2006 9:47 am

the error messages I posted above was copied and pasted, so that WAS what I get.

because of the "strict standard" messages, i set php error settings to:
Code: Select all
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
display_errors = On


It didn't output any error message now(I don't know why), but the cookie is still not work. I log in LifeType, write a blog entry, and click submit(or maybe post, I'm not using english locale file, so not sure what's it in english), LifeType ask for my username and password again and the blog didn't posted.

Cause it's not my own machine(I hosted on my friend's machine), so I can't change php settings.
fishy
 
Posts: 34
Joined: Thu Dec 30, 2004 10:54 pm

Postby markwu on Tue Jul 11, 2006 10:51 am

Can you let me see your real website? I just want to see the whole error message and do some test.

Mark
markwu
Lifetype Expert
 
Posts: 920
Joined: Wed Mar 31, 2004 1:59 pm

Postby fishy on Tue Jul 11, 2006 10:54 am

http://www.buddie5.com/blog/2

It's in chinese and as I said, there's no any error message now.
fishy
 
Posts: 34
Joined: Thu Dec 30, 2004 10:54 pm

Postby markwu on Tue Jul 11, 2006 11:03 am

1. Can you ask your friend set the session.auto_start = o in his php settings?

If Lifetype ask your username and password again and again, it might this problem.

2. If you don'd mind, can you turn on the error loging function again? I just want to see the full error log.

Mark
markwu
Lifetype Expert
 
Posts: 920
Joined: Wed Mar 31, 2004 1:59 pm

Postby fishy on Tue Jul 11, 2006 11:10 am

session.auto_start = o

is it "o"(Ou) or "0"(zero)?
fishy
 
Posts: 34
Joined: Thu Dec 30, 2004 10:54 pm

Postby markwu on Tue Jul 11, 2006 11:26 am

It is a typo.... it should be "0" (zero)...

Mark
markwu
Lifetype Expert
 
Posts: 920
Joined: Wed Mar 31, 2004 1:59 pm

Next

Return to Configuration and Installation

cron