Can't logout

General questions about CMSimple
Post Reply
Korvell
Posts: 93
Joined: Thu May 22, 2008 10:33 pm

Can't logout

Post by Korvell » Sat Jun 14, 2014 8:05 pm

I can't logout of my CMSimple site anymore. I just get an empty page and if I re-enter the site I'm still logged in.
Also pagemanager doesn't seem to work - wonder if it's related...
Site is http://www.houhavnefest.dk/

cmb
Posts: 13273
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Can't logout

Post by cmb » Sun Jun 15, 2014 10:22 am

Korvell wrote:I can't logout of my CMSimple site anymore. I just get an empty page and if I re-enter the site I'm still logged in.
An empty page is typically caused by a fatal PHP error. Have you enabled the debug mode?
Korvell wrote:Also pagemanager doesn't seem to work - wonder if it's related...
What exactly doesn't work? Can't you successfully save the changes?
Christoph M. Becker – Plugins for CMSimple_XH

Korvell
Posts: 93
Joined: Thu May 22, 2008 10:33 pm

Re: Can't logout

Post by Korvell » Sun Jun 15, 2014 4:01 pm

With debug turned on I get this error on logout:
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/sv_houhavnefestdk/cmsimple/classes/Backup.php on line 37
As for the Pagemanager I get the editor window with all controls, just no pages to manage:
[ external image ]

cmb
Posts: 13273
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Can't logout

Post by cmb » Sun Jun 15, 2014 5:13 pm

Korvell wrote:
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/sv_houhavnefestdk/cmsimple/classes/Backup.php on line 37
Oops! CMSimple_XH 1.6.2 inadvertantly requires PHP 5[1]! Just download a patch, unzip it and copy Backup.php to cmsimple/classes/. I'll have to investigate how this could happen, and if there are further files requiring PHP 5; I'll file a bug report later this evening.
Korvell wrote:As for the Pagemanager I get the editor window with all controls, just no pages to manage:
Apparently the Ajax request to fetch the page list fails. That might be caused by a PHP 4 incompatibility as well--I'll have to investigate.

You can try to find the exact error when you open your browser's development tools (Firefox: F12) and check for a network related error message.

[1] I'm surprised that nobody has reported this issue before.
Christoph M. Becker – Plugins for CMSimple_XH

Korvell
Posts: 93
Joined: Thu May 22, 2008 10:33 pm

Re: Can't logout

Post by Korvell » Sun Jun 15, 2014 5:44 pm

That patch fixed the logout problem. Thx.

I'm not used to use the development tools in my browsers, but does this error from the console window help anything?
Uncaught SyntaxError: Unexpected token ILLEGAL >> ?&normal&xhpages:175
Uncaught ReferenceError: PAGEMANAGER is not defined >> pagemanager.js:1
(anonymous function)
I just tested my site on a local webserver installation (xampp) that runs php5, and pagemanager works flawless. So it seems its because the remote website server runs php4 that something breaks... Maybe it's time to find a new web hotel...

cmb
Posts: 13273
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Can't logout

Post by cmb » Sun Jun 15, 2014 6:58 pm

Korvell wrote:That patch fixed the logout problem. Thx.
Fine. :)
Korvell wrote:I'm not used to use the development tools in my browsers
There is an introduction on http://devtoolsecrets.com/.
Korvell wrote:but does this error from the console window help anything?
Yes. I assume a character is encoded as HTML entity, which is not resolved by Pagemanager's fallback for PHP 4. You can request http://example.com/?&pagemanager&admin= ... _data&edit (replace example.com with your domain name) in a new browser window. This may display the problem more clearly.
Korvell wrote:So it seems its because the remote website server runs php4 that something breaks... Maybe it's time to find a new web hotel...
Well, a recent PHP 5.x is always preferable, but at least for now CMSimple_XH is supposed to work with 4.3.11 and up, and even Pagemanager_XH is. However, the decoding of HTML entities in UTF-8 encoded contents is not built-in to PHP 4, so I might have to extend the current fallback to a full solution.

Anyway, maybe your hoster can switch to PHP 5.
Christoph M. Becker – Plugins for CMSimple_XH

Korvell
Posts: 93
Joined: Thu May 22, 2008 10:33 pm

Re: Can't logout

Post by Korvell » Sun Jun 15, 2014 8:13 pm

Here's the output from the link:

Code: Select all

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<root>
<item id="pagemanager-0" title="Forside" data-pdattr="1">
<content>
<name>Forside</name>
</content>
</item>
<item id="pagemanager-1" title="Information" data-pdattr="1">
<content>
<name>Information</name>
</content>
<item id="pagemanager-2" title="Natbus" data-pdattr="0">
<content>
<name>Natbus</name>
</content>
</item>
<item id="pagemanager-3" title="Arrangør" data-pdattr="1">
<content>
<name>Arrangør</name>
</content>
</item>
</item>
<item id="pagemanager-4" title="Program" data-pdattr="1">
<content>
<name>Program</name>
</content>
<item id="pagemanager-5" title="Fredag 11. juli" data-pdattr="1">
<content>
<name>Fredag 11. juli</name>
</content>
</item>
<item id="pagemanager-6" title="Lørdag 12. juli" data-pdattr="1">
<content>
<name>Lørdag 12. juli</name>
</content>
</item>
<item id="pagemanager-7" title="Søndag 13. juli" data-pdattr="1">
<content>
<name>Søndag 13. juli</name>
</content>
</item>
</item>
<item id="pagemanager-8" title="Hou Drop" data-pdattr="1">
<content>
<name>Hou Drop</name>
</content>
</item>
<item id="pagemanager-9" title="Sponsorer" data-pdattr="1">
<content>
<name>Sponsorer</name>
</content>
<item id="pagemanager-10" title="Sponsorslides" data-pdattr="1">
<content>
<name>Sponsorslides</name>
</content>
</item>
</item>
<item id="pagemanager-11" title="Kontaktinfo" data-pdattr="1">
<content>
<name>Kontaktinfo</name>
</content>
</item>
</root>

cmb
Posts: 13273
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Can't logout

Post by cmb » Sun Jun 15, 2014 8:26 pm

That seems to be okay. Can you sent me the login password via PM, please (switch the password temporarily before).
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply