Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#613 2013-07-05 12:30:53

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

Re: gbp_permanent_links

I think that is not a bug… I simply didn’t set base permalink mode to messy.
Maybe I read the topic with little attention.

Last edited by wornout (2013-07-05 12:31:13)

Offline

#614 2013-07-14 22:27:32

mericson
Member
Registered: 2004-05-24
Posts: 137
Website

Re: gbp_permanent_links

I’m getting errors loading individual articles, and only when gbp_permanent_links is enabled. The error is “Undefined variable: threshold_type”

General error Notice: Undefined variable: threshold_type on line 268
\textpattern\lib\txplib_misc.php(812) : eval()’d code:536 getNextPrev()
PermanentLinks->_textpattern()
\textpattern\lib\txplib_misc.php:854 call_user_func_array()
\textpattern\publish.php:526 callback_event()
\index.php:83 textpattern()

General error Notice: Undefined variable: threshold_type on line 274
\textpattern\lib\txplib_misc.php(812) : eval()’d code:536 getNextPrev()
PermanentLinks->_textpattern()
\textpattern\lib\txplib_misc.php:854 call_user_func_array()
\textpattern\publish.php:526 callback_event()
\index.php:83 textpattern()

Addition: I get this error only on ‘single pages’ and even if I don’t have any rules defined.

Last edited by mericson (2013-07-22 13:11:53)

Offline

#615 2013-09-25 11:09:27

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: gbp_permanent_links

graeme wrote:

While the documentation isn’t yet complete it should hopefully be relatively straight forward to use. — [head post]

Being it’s now 7+ years later and still no docs, I’m guessing it is indeed straightforward to use. ;)

I’m about to find out.

Offline

#616 2013-09-25 11:57:48

qrayg
Member
From: USA
Registered: 2004-08-27
Posts: 81
Website

Re: gbp_permanent_links

Destry wrote:

Being it’s now 7+ years later and still no docs, I’m guessing it is indeed straightforward to use. ;)

Make sure to set your default TXP URL format to “?messy” and you’ll do fine.

Offline

#617 2013-09-25 13:19:27

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: gbp_permanent_links

I think (????!!!) its server dependent also – just keep messing with the prefs until it works with your setup – I’ve always managed to get it working

Offline

#618 2013-09-25 13:30:33

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,447
Website GitHub

Re: gbp_permanent_links

tye wrote:

I think (????!!!) its server dependent also

Yes, I’ve had odd results on different servers. Have always run sites with section/title permlink mode though, so maybe that was part of the issue to which qrayg alluded.

I’ve had it where you go to a page, gbp kicks in and lets you handle the ‘missing’ URL content but if the URL is malformed in any way and you decide you can’t render the content as the visitor expects, when you try to throw a manual 404 it just swallows it and you get no content at all. Very odd. Sometimes it also stops 404ing on invalid category pages too, even if I haven’t set up a rule to go near categories.

Maybe my gbp rules were mashed, or maybe it was a server setup thing. Who knows!


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

Txp Builders – finely-crafted code, design and Txp

Offline

#619 2013-09-25 13:57:28

qrayg
Member
From: USA
Registered: 2004-08-27
Posts: 81
Website

Re: gbp_permanent_links

Bloke wrote:

Yes, I’ve had odd results on different servers. Have always run sites with section/title permlink mode though, so maybe that was part of the issue to which qrayg alluded.

I’ve used the heck out of this plugin and I’ve found it works fine in most URL modes, but whenever I have problems doing category views I always end up going back to ?messy mode. I think it’s just best to stick with ?messy mode and build out all your URL scenarios using the plugin prefs.

Maybe there’s a better solution but mine is the only one that works on the many sites I built that have /section, /section/title, /section/category and /section/category/title urls. I recently built a site using the /yyyy/mm/dd/title mode and I ended up having to switch to ?messy mode and recreate the url mode in the plugin prefs so I could get /section/category URLs to work properly.

Offline

#620 2013-09-25 14:50:45

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,447
Website GitHub

Re: gbp_permanent_links

qrayg wrote:

whenever I have problems doing category views I always end up going back to ?messy mode.

That might actually be sage advice. Maybe all my troubles were attributable to PEBKAC. Next time I do a gbp_pl site I’ll try that approach, thanks for the tip.


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

Txp Builders – finely-crafted code, design and Txp

Offline

#621 2013-09-25 16:03:15

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: gbp_permanent_links

Bloke wrote:

qrayg wrote:

whenever I have problems doing category views I always end up going back to ?messy mode.

That might actually be sage advice. Maybe all my troubles were attributable to PEBKAC. Next time I do a gbp_pl site I’ll try that approach, thanks for the tip.

Indeed, it is.

qrayg wrote:

I think it’s just best to stick with ?messy mode and build out all your URL scenarios using the plugin prefs.

And this one too.

Sometimes it’s a hard-to-tame plugin, somewhat frustrating, but then, it can make some wonders with URLs too.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#622 2013-09-25 18:49:43

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

Re: gbp_permanent_links

I have been trying to understand this pluging for several years and I have never succeded.

Does any one could upload one or to samples of a desired URL pattern and a screenshot showing how to set it on working? I will be really thankfully!

Last edited by milosevic (2013-09-25 18:50:05)


<txp:rocks/>

Offline

#623 2013-09-25 22:44:34

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: gbp_permanent_links

I used messy most of the time (matches my coding :)) – but obviously my textpattern google sitemap results were messy too :(

Compromise

Offline

#624 2013-10-22 05:53:58

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: gbp_permanent_links

milosevic wrote:

I have been trying to understand this pluging for several years and I have never succeded.
Does any one could upload one or to samples of a desired URL pattern and a screenshot showing how to set it on working? I will be really thankfully!

I have the same trouble. Can someone write some example?

Last edited by MarcoK (2013-10-22 05:54:18)

Offline

Board footer

Powered by FluxBB