Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2009-01-07 10:30:08

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Just done a fresh install with r3066 in XAMPP and on a “live” server and saw no errors or notices. All seemed to go very well. :)

Just a minor point which would be aimed more at 4.0.9. What about adding Textgarden to the list of links?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#32 2009-01-07 10:37:23

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

thebombsite wrote:

What about adding Textgarden to the list of links?

A fair proposal.

Offline

#33 2009-01-07 14:58:14

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

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Lookin’ good.

One thing, and I’m not sure if this is new behaviour or intentional, but on 404 pages, $pretext['s'] is not populated if using clean URLs. Adding a ?s to the URL causes $pretext['s'] to be populated but the error_404 is not called.

viz, on both the archive Page and on an error_404 Page I have:

<txp:php>
global $pretext;
echo "CUSTOM404"; // This reads echo "REAL PAGE"; on the 'archive' Page
dmp($pretext);
</txp:php>
<txp:if_section name="mySection">
YES
<txp:else />
NO
</txp:if_section>

Results using permlink mode /section/title:

   Test URL                                | echo        | $pretext['s']  | <txp:if_section name="mySection">
-------------------------------------------|-------------|----------------|-----------------------------------
site.com/mySection/real-article            | REAL PAGE   | mySection      | YES
site.com/mySection/this-does-not-exist     | CUSTOM404   | NULL^          | NO^
site.com/real-article?s=mySection          | REAL PAGE   | mySection      | YES
site.com/this-does-not-exist?s=mySection   | REAL PAGE^^ | mySection      | YES

^ = expected mySection | YES
^^ = expected CUSTOM404

The category (or rather ?c) is still honoured and present on any Page (error or otherwise).

Is this intentional? If so, why? How can I determine the section that triggered the 404 since <txp:section /> returns empty and <txp:if_section> is false? Do I have to parse_url() or split up the REQUEST_URI myself in PHP?

Or maybe my logic is skewed and I should rethink the design…

EDIT: <txp:if_status /> goes part way to helping, but I’d still like to redirect people/offer a link to the same_section they were in when the 404 was generated

Last edited by Bloke (2009-01-07 15:08:11)


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

#34 2009-01-07 16:18:34

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

site.com/mySection/this-does-not-exist

That is a permalink URL, not a section URL. If the permalinked article isn’t found then processing stops. This isn’t something that changed in 4.0.8 (or 4.0.7), but we should check if this is the desired behaviour for 4.0.9.

site.com/real-article?s=mySection
site.com/this-does-not-exist?s=mySection

This is a mix of clean and messy URL schemes, in which case the messy URL scheme takes precedence. I’d expect that to behave similar to site.com/?s=mySection

Offline

#35 2009-01-07 16:22:46

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

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

ruud wrote:

That is a permalink URL, not a section URL.

OK, thanks for clarifying the distinction. I’ll find another way to do it for now.

Last edited by Bloke (2009-01-07 16:27:05)


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

#36 2009-01-08 13:16:39

Leonick
Member
Registered: 2007-07-30
Posts: 16

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

I’ve upgrade textpattern v4.0.6 to 4.0.7 and yesterday to 4.0.8
No problem to install it, just modified config.php

I’m tracking all error in log file and several problems appeared

Undefined index: fr-fr on line 791 on file /textpattern/lib/txplib_misc.php file i18n-ascii.txt modified line 607 replace [fr] by [fr-fr]

Undefined index: Section on line 330 on file /textpattern/publish.php replace by $out[‘s’] = (isset($rs[‘Section’])?$rs[‘Section’]:”“);

Undefined index: ID on line 329 on file /textpattern/publish.php replace by $out[‘id’] = (isset($rs[‘ID’])?$rs[‘ID’]:”“);

Undefined index: page on line 436 on file /textpattern/publish.php replace by $out[‘page’] = (isset($rs[‘page’])?$rs[‘page’]:”“);

Undefined index: css on line 437 on file /textpattern/publish.php replace by $out[‘css’] = (isset($rs[‘css’])?$rs[‘css’]:”“);

Offline

#37 2009-01-08 13:34:30

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Thanks. Each message from the log relates to lines with @ error suppression in effect, as they are expected to run into missing array indexes.

Offline

#38 2009-01-11 19:42:55

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Hi all, on a three websites I upgraded to 4.0.8rc1 I cannot delete page template:

Offline

#39 2009-01-11 19:45:27

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

This is by design: Page templates which are in use by any section, plus the error_default page template are immortal as Textpattern needs them to operate properly.

Offline

#40 2009-01-11 19:46:25

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Jirka, is the default template used by any section? That would prevent deletion.

Offline

#41 2009-01-11 19:59:42

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

I’m sorry, you’re right, works perfect. This is actually pretty good function. Sorry ;)

Offline

#42 2009-01-15 14:27:25

jan
Member
From: Utrecht, The Netherlands
Registered: 2006-08-31
Posts: 71
Website

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Great that the category_list / section_list bug has been fixed so quickly!
I copied the altered category function to my taghandlers.php file, and now my category list works as expected.

Keep the good work up!

Last edited by jan (2009-01-15 14:28:35)


Kensington TXP powered rock

Offline

#43 2009-01-16 20:52:52

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Guys, we’ve just posted TXP 4.0.8 RC 2 which fixes each and every Textpattern bug known to mankind as far as these were mentioned in this thread or on one of the other channels and threatening a delightful final release of 4.0.8 during the course of the next few days.

Download and have your say once more, s.v.p.:

Offline

#44 2009-01-17 13:27:44

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

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

A very small thing – in the readme.txt file there is a typo:

…everything in your /rcp/ directory…

Instead of /rpc/…

Offline

#45 2009-01-17 13:31:05

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Jonathan “Eagle Eye” Stubbs: Thanks!

Offline

Board footer

Powered by FluxBB