Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-04-21 10:04:39

considermichael
Member
Registered: 2009-07-28
Posts: 13

Textpattern keeps logging me out of the Admin panel! Help!

Hey guys,

On the following website http://autosuter.ch/
I can log into the textpattern admin panel and click on any
link which automatically logs me out of the website again! Not sure how I can tackle this problem.

Also the following php errors appear which wasnt the case before;
Deprecated: Function set_magic_quotes_runtime() is deprecated in /srv/www/vhosts/autosuter.ch/httpdocs/textpattern/lib/txplib_db.php on line 14
Deprecated: Function split() is deprecated in /srv/www/vhosts/autosuter.ch/httpdocs/textpattern/include/txp_auth.php on line 77

Hope that you guys can point me in the right direction..

Cheers

Michael

Offline

#2 2013-04-21 10:19:22

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

Re: Textpattern keeps logging me out of the Admin panel! Help!

Hi

I am not a gourou about those kind of stuff but you can help us diagnose the problem by giving some informations: which txp version? wich php and apache versions?

it seems you have using an old version of txp! maybe your server has been upgradded and using an old version of txp has throwed those errors!

I advice you to upgrade to latest version of txp (make a backup of db and files before that) maybe that will solve your problem.

Cheers

Offline

#3 2013-04-21 10:25:29

considermichael
Member
Registered: 2009-07-28
Posts: 13

Re: Textpattern keeps logging me out of the Admin panel! Help!

Hello Dargondz,

Thanks for the reply I am running Textpattern 4.0.6
Not sure what version of php or apache are running on the servers. But seeing as I cant do anything on the website I will download the latest version of textpattern and upgrade it through ftp and and hope for the best after cleanly backing everything up!

Hope that solves the problem. Will be back with an update.

Offline

#4 2013-04-21 10:29:33

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

Re: Textpattern keeps logging me out of the Admin panel! Help!

Hi

You must update because txp has fixed some security issues from 4.0.6.

Cheers

Offline

#5 2013-04-26 22:15:23

considermichael
Member
Registered: 2009-07-28
Posts: 13

Re: Textpattern keeps logging me out of the Admin panel! Help!

Hey guys,

Kind of panicking over here. Now after doing the upgrade and following the instuctions on the readme the website textpattern has indeed upgraded but now the website doesnt show any of the articles to each page. They just arent showing up!

Heres the website! I hope this is something simple to fix! Help please..

http://autosuter.ch

Offline

#6 2013-04-26 22:18:15

considermichael
Member
Registered: 2009-07-28
Posts: 13

Re: Textpattern keeps logging me out of the Admin panel! Help!

There are no out of the ordinary error messages on the admin diagnose page.
https://dl.dropboxusercontent.com/u/9864549/txp_diagnose.png

Offline

#7 2013-04-26 22:50:10

considermichael
Member
Registered: 2009-07-28
Posts: 13

Re: Textpattern keeps logging me out of the Admin panel! Help!

Also doubt there is a problem with the database because the article list as well as article content is showing up just find in textpattern.. :-/
https://dl.dropboxusercontent.com/u/9864549/articleList.png
https://dl.dropboxusercontent.com/u/9864549/article.png

Offline

#8 2013-04-27 01:40:29

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Textpattern keeps logging me out of the Admin panel! Help!

Have you checked the page templates? There might be some out of date TXP tags in either the template or a form. For example attributes may have changed for the tags you are using. Your site is up and working and you can see all the articles, so it looks like your problem might be in the templates.

Offline

#9 2013-04-27 05:06:16

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

Re: Textpattern keeps logging me out of the Admin panel! Help!

If you put your site on debug we might be able to help you spot the deprecated tags which might be the cause of the problem.


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

Offline

#10 2013-04-27 06:11:54

considermichael
Member
Registered: 2009-07-28
Posts: 13

Re: Textpattern keeps logging me out of the Admin panel! Help!

Thanks for the replies so far. I have put the page into debug mode.
In addition here is an example of the html code on the news page template. Could it be that these tags are out of date jstubbs?

<!-- center -->
<!-- <div id="content"> -->
	<div class="span-24 borderbottom">

        <div class="jdSlideshow" id="mySlideshow"></div>
        <p id="site-slogan"><txp:site_slogan /><span> 
<br>Wir freuen uns auf Ihren Besuch!</span></p>

<txp:article_custom form="static_article" section="News" article limit="1" />

	</div>


<!-- left -->
	<div class="span-8">
<txp:article_custom form="static_article" article limit="1" id="6" />
	</div>

<!-- middle -->
	<div class="span-8">
<txp:article_custom form="static_article" article limit="1" id="7" />
	</div>


<!-- right -->
	<div class="span-7">
<txp:article_custom form="static_article" article limit="1" id="8" />
	</div>

<!-- footer -->
	<div class="span-24 bordertop last footer">&nbsp;<p>© Auto Suter</p></div>

</div>

Last edited by jstubbs (2013-04-28 01:21:03)

Offline

#11 2013-04-27 09:17:39

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Textpattern keeps logging me out of the Admin panel! Help!

At the minimum, all of those tags have invalid arguments and syntax issues. The article_custom tag doesn’t have an attribute named article, and if it did, Textpattern template language doesn’t permit you to omit attribute values; Each used argument must have an value, wrapped in quotes, and any inner quotes escaped. See more about attribute specs here.

If the article attribute tries to reference a custom field, you should specify a value for it. The boolean usage would hint that you are trying to select anything article where the value is anything but empty:

<txp:article_custom article="_%" />

Or perhaps the custom field is populated with a boolean (1/0), in which case:

<txp:article_custom article="1" />

If the attribute isn’t a custom field, then it shouldn’t be there.

While not an error the limit attribute is redundant in those cases. All of those tags have an id set, which with just single ID, limits the article list to a single result.

Offline

#12 2013-04-27 14:09:58

considermichael
Member
Registered: 2009-07-28
Posts: 13

Re: Textpattern keeps logging me out of the Admin panel! Help!

Hello Gocom,

Thanks for the reply, the code you pointed out was definitely the problem;
<txp:article_custom form=“static_article” article limit=“1” id=“6” />

How can I then post a single article? The code above used to work so I could post one of the following articles to a section of a page. https://dl.dropboxusercontent.com/u/9864549/article_list.png

<txp:article_custom article=“11” /> This code that you posted simply spits out all 11 of the first articles regardless of section.

Looking for the correct txp code so I can post a single article depending on its ID.

Offline

Board footer

Powered by FluxBB