Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2014-06-30 09:50:21

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,810
GitHub

Re: TXP Admin keeps asking me to log in

Tobey, you have email.

Offline

#17 2014-06-30 12:57:36

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,810
GitHub

Re: TXP Admin keeps asking me to log in

OK, I am posting some server diagnostics with wordgasm’s permission:

Textpattern version: 4.5.4 (r4919)
Last Update: 2013-02-20 20:28:46/2013-02-20 20:25:52
Document root: [removed for security]
$path_to_site: [removed for security]
Textpattern path: [removed for security]/textpattern
Permanent link mode: section_title
Temporary directory path: [removed for security]/textpattern/tmp
Site URL: [removed for security]
PHP version: 5.4.20
GD Image Library: version bundled (2.1.0 compatible), supported formats: GIF, JPG, PNG
Server TZ: America/Los_Angeles
Server Local Time: 2014-06-30 05:53:18
DST enabled?: 0
Automatically adjust DST setting?: 0
Time Zone: Asia/Manila (28800)
MySQL: 5.1.56-log
Locale: en_US.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.32.45-grsec-2.2.2-r3
Active plugins: an7_filter-0.2m, smd_slimbox-0.34, ajw_if_comment_owner-0.3.1m, zem_contact_reborn-4.0.3.20, zem_contact_lang-4.0.3.6, soo_if_frontpage-0.1.8, gbp_permanent_links-0.14.7, smd_lib-0.36, gbp_admin_library-0.4.669
Admin-side theme: txpmobile 4.5.4

Pre-flight check: 
------------------------
textpattern_update_available: 4.5.5
Some Textpattern files have been modified: 
	[removed for security]/textpattern/lib/classTextile.php
------------------------

.htaccess file contents: 
------------------------
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

# SVG
AddType image/svg+xml  svg svgz
AddEncoding gzip       svgz

------------------------

It turns out that Dreamhost updated PHP around the time that this problem started happening. An update to 4.5.5 is on the cards for tomorrow, but the PHP upgrade looks like the culprit to me.

I know 4.5.5 included support for PHP 5.5, but is there anything that’s likely to affect PHP 5.4?

Offline

#18 2014-06-30 13:03:42

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,398
Website GitHub Mastodon Twitter

Re: TXP Admin keeps asking me to log in

Another off shot. classTextile.php has been modified. what happens if it is replaced by the vanilla version?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#19 2014-06-30 13:08:01

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,810
GitHub

Re: TXP Admin keeps asking me to log in

I was wondering that, Yiannis. I tried to disable the plugins to see if that might help, and I wasn’t able to do that. This error appeared:

Warning: Cannot modify header information - headers already sent by (output started at [removed for security]/textpattern/theme/txpmobile/txpmobile.php:165) in [removed for security]/textpattern/lib/txplib_misc.php on line 2235

There are other occurrences of Warning: Cannot modify header information - headers already sent by on the forum, some of which mention the txpmobile theme. A connection? I don’t have working FTP details, sadly, but an upgrade to 4.5.5 is happening soon.

Offline

#20 2014-06-30 13:58:45

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,513
Website GitHub

Re: TXP Admin keeps asking me to log in

gaekwad wrote #281746:

@Warning: Cannot modify header information – headers already sent

That’s a bug in txpmobile. You can fix it by removing blank lines between the <?php> lines. In other words, lines 164, 162 and 84 of txpmobile.php v0.41.

I doubt that’ll fix anything else mentioned in this thread, but at least it’ll get rid of the annoying warnings.

EDIT: and if you don’t have FTP details, install smd_admin_themes. You’ll be able to edit the theme files directly there.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#21 2014-06-30 14:01:03

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,810
GitHub

Re: TXP Admin keeps asking me to log in

Stef, that’s really useful – I’ll give that a try. Thank you very much.

Offline

#22 2014-06-30 14:03:40

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,810
GitHub

Re: TXP Admin keeps asking me to log in

Huh. Just realised: I can’t install a plugin because it keeps dumping back to the login screen each time I try. No dice. Nice idea, though!

wordgasm: try Stef’s code edit to txpmobile, see if that is a factor in the weirdness you’re experiencing.

Offline

#23 2014-06-30 14:11:01

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,513
Website GitHub

Re: TXP Admin keeps asking me to log in

D’oh. Of course, forgot about that.

I’ve seen this auto-logout behaviour before, manifesting itself in odd behaviour. A few times it’s been a very, very persistent cookie that just refuses to let you log in after upgrade (usually because you were logged in during the upgrade itself). Secondly, if Txp has files not completely uploaded during an upgrade. Neither of those are the case here, it seems.

I have seen a particular server config that prevented the login cookie from ‘sticking’. I’ve no idea how to explain it, and it may just have been a random coincidence that fixed it (because it totally doesn’t make sense) but it appeared that the login process tried to stash the cookie against the site’s domain but internally it was doing a rewrite or redirect (or something) which made the page appear to come from somewhere else. Thus Txp asks for the cookie for this new place and the browser says “no cookie here, mate” and dumps you out. Repeat ad infinitum.

I seem to recall using RewriteBase to ‘fix’ the path to root. But I may be waaay off base here, because I can’t logically see how anything could interfere with things at that level. The last time I had to mess with RewriteBase was when the server kept issuing a 500 Internal Server Error until I set that Apache directive, which totally threw me for a while.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#24 2014-06-30 14:15:09

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,810
GitHub

Re: TXP Admin keeps asking me to log in

I’ve had a to-and-fro chat with wordgasm and she has indicated this problem started around the same time as Dreamhost updated PHP. The txpmobile bug might be the straw that broke the proverbial camel’s back.

The persistent cookie issue wouldn’t be a factor if I was logging in afresh here, right? As in, never done it before from this computer.

Offline

#25 2014-06-30 14:19:59

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,513
Website GitHub

Re: TXP Admin keeps asking me to log in

gaekwad wrote #281751:

I’ve had a to-and-fro chat with wordgasm and she has indicated this problem started around the same time as Dreamhost updated PHP.

Sounds plausible. But no idea why it would manifest itself in this ‘broken record’ way.

The persistent cookie issue wouldn’t be a factor if I was logging in afresh here, right?

Correct. I believe that had been debunked earlier in the thread somewhere by trying different browsers, different machines, etc. Which leads me to believe it’s a server config / setup issue rather than a ‘local’ Txp-related issue.

You can rule out plugins by trying to log directly into the URL:

site.com/textpattern/index.php?event=plugin

and making some changes to that page (e.g. change load order, edit code, anything). If you stay logged in after applying the change, it’s a plugin/Txp issue. If it _still_kicks you out, it’s a server/config issue.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#26 2014-06-30 14:24:01

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,810
GitHub

Re: TXP Admin keeps asking me to log in

Bloke wrote #281752:

You can rule out plugins by trying to log directly into the URL:

site.com/textpattern/index.php?event=plugin...

and making some changes to that page (e.g. change load order, edit code, anything). If you stay logged in after applying the change, it’s a plugin/Txp issue. If it _still_kicks you out, it’s a server/config issue.

Tried this. It throws me out without making the change(s). It’s a server/config issue.

A propos nothing, today I learned SalesForce own site.com – imagine the millions of back links!

Last edited by gaekwad (2014-06-30 14:24:26)

Offline

#27 2014-06-30 16:29:22

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,810
GitHub

Re: TXP Admin keeps asking me to log in

Bloke wrote #281747:

That’s a bug in txpmobile. You can fix it by removing blank lines between the <?php> lines. In other words, lines 164, 162 and 84 of txpmobile.php v0.41.

I doubt that’ll fix anything else mentioned in this thread, but at least it’ll get rid of the annoying warnings.

It fixed it.

Offline

#28 2014-06-30 22:23:03

wordgasm
Member
Registered: 2006-05-17
Posts: 83
Website

Re: TXP Admin keeps asking me to log in

gaekwad wrote #281757:

It fixed it.

Thank you for solving this problem, Bloke and Gaekwad. This issue drove me nuts for three days. TXP rocks because of you guys. Again, thank you!

Offline

Board footer

Powered by FluxBB