after login I can't do anything

General questions about CMSimple
roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

after login I can't do anything

Post by roze » Sun Mar 04, 2012 11:26 am

After my login with the new XH 5.2 I get the back-end menu on top.
When I choose one of the topics e.g. CMS my browser says:
htp://www.mywebsite/?file=config&active =array

but after the click I get my website again and it looks like I had logged out.

what is wrong?
Rob Zeijen,

Valkenswaard (NL)

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: after login I can't do anything

Post by cmb » Sun Mar 04, 2012 11:56 am

Hi Rob,

the basic problem is, that the login cookie couldn't be set. This could have several reasons. On the client side the browser may not accept cookies. On the server side the cookie might not be send, because some other output was sent to the browser before. This could be due to a somewhat corrupted cmsimple/config.php or cmsimple/languages/YOURLANG.php or cmsimple/languages/YOURLANGconfig.php. You should check those files: thy must not contain a BOM (check with an advanced text editor) and they must not contain anything outside of <?php ... ?> (except at most 1 linebreak after the closing ?>).

You can check the sending of the Cookies with Firefox' "Live HTTP headers". When you click login, the server should respond to the first request with several "Set-Cookie: ..." lines. Otherwise it's a problem on the server side. Then clear the HTTP header window. On the next click the first request should contain a line: "Cookie: ..." Otherwise it's a problem on the client side.

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: after login I can't do anything

Post by roze » Sun Mar 04, 2012 12:55 pm

I've looked trough alle the suggestions, but I don't come any further.

can someone please look into it?

http://www.elisabethvandeven.nl

password: holland
Rob Zeijen,

Valkenswaard (NL)

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: after login I can't do anything

Post by cmb » Sun Mar 04, 2012 1:28 pm

Hi Rob,

indeed your config.php was corrupted (I'm not absolutely sure, but probably it had a BOM). I saved it again from the back-end and now everything seems to work fine.

BTW: you should change the password immediately (and it's better not to post any passwords in the forum -- use a PM for this).

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: after login I can't do anything

Post by roze » Sun Mar 04, 2012 1:40 pm

much thankx

I've changed my password.

this was only a temporary one ;)
Rob Zeijen,

Valkenswaard (NL)

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: after login I can't do anything

Post by roze » Sun Mar 04, 2012 1:52 pm

cmb wrote:Hi Rob,

indeed your config.php was corrupted (I'm not absolutely sure, but probably it had a BOM). I saved it again from the back-end and now everything seems to work fine.

BTW: you should change the password immediately (and it's better not to post any passwords in the forum -- use a PM for this).

Christoph
what is a BOM?
Rob Zeijen,

Valkenswaard (NL)

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: after login I can't do anything

Post by cmb » Sun Mar 04, 2012 2:10 pm

Hi Rob,

a BOM is a byte order mark; for details see http://en.wikipedia.org/wiki/Byte_order_mark. But the details are not important for working with CMSimple -- you just have to know that all files should be UTF-8 encoded, but without BOM. ;)

I'll have a look at your PM right now.

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: after login I can't do anything

Post by roze » Mon Mar 12, 2012 2:34 pm

I want to make a website for a new "parkinsoncafe" in our village.

I went to the same fenomena:

After login i want to change something.

While saveing it i get logged out without saving.

Can someone help me?

In the former answers has been suggested "corrupt config.php" with a BOM. How can I recognise that? How can I fix that?

http://parkinsoncafevalkenswaard.nl.php ... rstfind.nl
Rob Zeijen,

Valkenswaard (NL)

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: after login I can't do anything

Post by cmb » Mon Mar 12, 2012 3:33 pm

Hi Rob,

you can check the encoding with an advanced text editor, such as Notepad++. It should show wether the file is encoded with or without BOM (Notepad++ calls the former UTF-8, the latter ANSI as UTF-8 on the right hand side of the status bar). If the file has a BOM, you have to change the encoding of the file (Notepad++: Encoding -> UTF-8 without BOM) and save it. After uploading the file everything should work fine.

Important question (as this problem was reported from other users too): did you edit config.php with an editor or did it happen with an unmodified config.php directly from the sourceforge download?

Christoph

PS: I just remembered ZiPs tipp about the online BOM tester and checked the site: indeed there's a BOM (probably from config.php).
Christoph M. Becker – Plugins for CMSimple_XH

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: after login I can't do anything

Post by roze » Mon Mar 12, 2012 8:31 pm

cmb wrote:
Important question (as this problem was reported from other users too): did you edit config.php with an editor or did it happen with an unmodified config.php directly from download).
I indeed edited the config.php with the editor of the FTP program. I promiss I will never do so anymore.

Thanks for your help.
Rob Zeijen,

Valkenswaard (NL)

Post Reply