Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2017-03-05 10:49:49

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

Re: txp:article_custom misbehaving?

alicson wrote #304401:

You are ALL the very good things. THANK YOU again!

No problem, glad you’re at least in first gear instead of neutral.

I don’t know why this happens on upgrade sometimes, but it does in some situations. It’s most irritating.

I suspect gbp_pl is going to need some love to get it to work properly. If you can possibly live without it, that might be your best option until someone (perhaps me one day) can fix it.


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

#26 2017-03-05 10:58:07

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: txp:article_custom misbehaving?

I’m wide open to suggestion and advice. I went to gbp from sgb_url_handler… I believe the only key URLs I need are /SECTION/CATEGORY/ (half the site does not work without this) and /SECTION/TITLE/ for select special pages (I think a calendar plugin handles /YEAR/MONTH/DAY/ ? I’m not there yet [in the debugging and restoration process—that’s a while off yet]).

The rest I prefer with the built-in /SECTION/ID/TITLE/.

Last edited by alicson (2017-03-05 11:34:32)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#27 2017-03-05 15:24:42

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

Re: txp:article_custom misbehaving?

Try this fork of gbp_permanent_links. It should solve a few of the more glaring warnings/issues, but I don’t know if it works fully as I don’t know how to use it! Every time I added a rule, my entire site’s URL structure broke, but I think that’s because I’m being dim.


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

#28 2017-03-05 17:23:50

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: txp:article_custom misbehaving?

note there are still tag errors:

<txp:glx_if_not_category_list> ->  Textpattern Warning: tag does not exist 

seems another plugin error.

ps try working in a new plain installation of 4.6.2 and slowly add your content pages and forms and see if you can isolate the problems. i.e. don’t use any plugins and then install one at a time and testing. just a thought.

Last edited by bici (2017-03-05 17:26:06)


…. texted postive

Offline

#29 2017-03-05 19:04:45

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

Re: txp:article_custom misbehaving?

glx_f works just fine in 4.6

here is the updated plugin with the tag registries added

# Name: glx_if v0.7 (compressed)
# Type: Public plugin
# Some conditional tags
# Author: Johan Nilsson
# URL: http://johan.galaxen.net/
# Recommended load order: 5

# .....................................................................
# This is a plugin for Textpattern CMS - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................

H4sIAAAAAAAAA90ba2/bRvJzBfg/bHhBbAc6PZw4bWhJhZs4OBeNXcQ+pEASCCtxJTEhuQq5
sqwz/N9vZh98iKRIyXFxuKRAxOXszOy8Z5aldrdr30X2S9sKqM+sk8h+ZVtT73boTvQDXYgZ
D/Gh+8K2fuczGpAL14siHsjFjgEZLkIXV46ObWsmxNxut78idGtKPXrLglbARBsBfratGxZG
rkIASDutnyWqrm05LBqH7lzol0ewdMV9RsY8cFxcpR4RdBrhS2B6zB3FdOcF4HEn5GDs0Sga
sls3EtHB/udrdivmVAgWBp+v6fTzBzaFN+Fq//CQ3O01CLm+ndv2lImNsAhIyD8HoVxh4cG+
EtFwEvIA9kzZBpiAi1pwERvjAWvj3AY+YjQczyoRVgCNqWBTHq6GHqxvguO+zwIRDfmcBXXg
xh6PmFMfMn6utYUvAuD2ZK9xv9dQfyeLQMqOrKvx4CnoP2qSp2LmBlNAfqfwTz0+Ast7Og+Z
ACs5UavwsAgDMqdhxA7Obqh35sEPtbcZA3+yIusL6fcJGPeELjxhkWfPFILNf5g/F6uDBM3Y
+nK449bvu2+dT2HvYSy+ddFlrPvxxPfk/1R8OSeuKUIAcKMhDYU79pj0x1pCfYBM1umhRYtw
wTabxt98vifrB4wedsAJBeybtIcRcyerP8ixikZ2SH7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H8ZWSf3/wWwWELWVTQAAA==

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

Offline

#30 2017-03-05 22:45:32

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: txp:article_custom misbehaving?

bici wrote #304405:

ps try working in a new plain installation of 4.6.2

eventually likely will start a new site from scratch, however want to repair what I can of this one first particularly to help make sense of the content itself; there was a lot of cross-referencing and it was heavily built on the plugins. Making progress..

Bloke wrote #304404:

Try this fork of gbp_permanent_links.

Installed! URLs seem to be working well.. I’ll be experimenting with turning plugins on and off to see what happens.. if_custom_field tags are currently not doing what they’re meant to, however they’re working on the sandbox page (where no plugins are in play).

colak wrote #304406:

glx_f works just fine in 4.6
here is the updated plugin with the tag registries added

Thank you! was already on v0.7, however installed your version just to be safe. Looks like the error is still there —likely something else interfering; I’ll try disabling other plugins and leaving glx_if on..

**update: glx_if error persisted even with other plugins off

Tag error: <txp:glx_if_not_category_list> ->  Textpattern Warning: tag does not exist while parsing form None on page words
Tag error: <txp:glx_if_not_category_list> ->  Textpattern Warning: tag does not exist while parsing form None on page words
Tag error: <txp:glx_if_not_category_list> ->  Textpattern Warning: tag does not exist while parsing form None on page words

I don’t have a form “None”…

Last edited by alicson (2017-03-05 22:52:03)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#31 2017-03-06 00:00:10

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: txp:article_custom misbehaving?

Fwiw, debug mode is generating these error codes on the Sandbox page:

A problem occurred while loading the plugin: gbp_permanent_links -> Notice: unserialize(): Error at offset 0 of 108 bytes on line 194
textpattern/lib/txplib_misc.php(1368) : eval()'d code:194 unserialize()
GBPPlugin->gbp_serialized()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:123 call_user_func()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:89 GBPPlugin->load_preferences()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:1956 GBPPlugin->GBPPlugin()
textpattern/lib/txplib_misc.php:1782 eval()
textpattern/publish.php:169 load_plugins()
index.php:104 include()
A problem occurred while loading the plugin: gbp_permanent_links -> Notice: unserialize(): Error at offset 0 of 109 bytes on line 194
textpattern/lib/txplib_misc.php(1368) : eval()'d code:194 unserialize()
GBPPlugin->gbp_serialized()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:123 call_user_func()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:89 GBPPlugin->load_preferences()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:1956 GBPPlugin->GBPPlugin()
textpattern/lib/txplib_misc.php:1782 eval()
textpattern/publish.php:169 load_plugins()
index.php:104 include()
A problem occurred while loading the plugin: gbp_permanent_links -> Notice: unserialize(): Error at offset 0 of 108 bytes on line 194
textpattern/lib/txplib_misc.php(1368) : eval()'d code:194 unserialize()
GBPPlugin->gbp_serialized()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:123 call_user_func()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:89 GBPPlugin->load_preferences()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:1956 GBPPlugin->GBPPlugin()
textpattern/lib/txplib_misc.php:1782 eval()
textpattern/publish.php:169 load_plugins()
index.php:104 include()
A problem occurred while loading the plugin: gbp_permanent_links -> Notice: unserialize(): Error at offset 0 of 111 bytes on line 194
textpattern/lib/txplib_misc.php(1368) : eval()'d code:194 unserialize()
GBPPlugin->gbp_serialized()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:123 call_user_func()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:89 GBPPlugin->load_preferences()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:1956 GBPPlugin->GBPPlugin()
textpattern/lib/txplib_misc.php:1782 eval()
textpattern/publish.php:169 load_plugins()
index.php:104 include()
A problem occurred while loading the plugin: gbp_permanent_links -> Notice: unserialize(): Error at offset 0 of 108 bytes on line 194
textpattern/lib/txplib_misc.php(1368) : eval()'d code:194 unserialize()
GBPPlugin->gbp_serialized()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:123 call_user_func()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:89 GBPPlugin->load_preferences()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:1956 GBPPlugin->GBPPlugin()
textpattern/lib/txplib_misc.php:1782 eval()
textpattern/publish.php:169 load_plugins()
index.php:104 include()

It’s the least of my concerns at the moment, as the plugin seems to be working and I have plenty of other errors to keep me busy.. Just thought I’d post this in case it’s of sense to anyone. :)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#32 2017-03-06 01:21:31

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: txp:article_custom misbehaving?

Also, gbp_permanent_links seems to be overriding all my regular permlinks to /category/title/ where they’re meant to be /section/id/title/


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#33 2017-03-06 01:49:33

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

Re: txp:article_custom misbehaving?

alicson wrote #304410:

gbp_permanent_links seems to be overriding all my regular permlinks to /category/title/ where they’re meant to be /section/id/title/

That’s what happened to me. Thought it was just me being a bit thick and not knowing how the plugin was supposed to be used. But if it’s doing the same for you then it sounds like a bug that needs squashing.

That’ll unfortunately take some debugging time because, frankly, the entire plugin is just voodoo to me. But I’ll see what I can do about it. And those unserialize errors.


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

#34 2017-03-06 02:48:48

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: txp:article_custom misbehaving?

re: gbp_permanent_links here


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#35 2017-03-06 07:34:58

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

Re: txp:article_custom misbehaving?

alicson wrote #304407:


Thank you! was already on v0.7, however installed your version just to be safe. Looks like the error is still there —likely something else interfering; I’ll try disabling other plugins and leaving glx_if on..

**update: glx_if error persisted even with other plugins off

Tag error: <txp:glx_if_not_category_list> -> Textpattern Warning: tag does not exist while parsing form None on page words...

My bad… maybe… Try adding ->register('glx_if_not_category_list') after ->register('glx_if_category_list') in the plugin code.


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

Offline

#36 2017-03-06 08:02:17

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: txp:article_custom misbehaving?

colak wrote #304423:

My bad… maybe… Try adding ->register('glx_if_not_category_list') after ->register('glx_if_category_list') in the plugin code.

Really appreciate this! I added the code, and I’m sure twas a good thing, however the error remains.

Tag error: <txp:glx_if_not_category_list> ->  Textpattern Warning: tag does not exist while parsing form None on page words
textpattern/lib/txplib_publish.php:521 trigger_error()
textpattern/lib/txplib_publish.php:463 processTags()
textpattern/lib/txplib_misc.php:4476 parse()
textpattern/publish.php:562 parse_page()
index.php:105 textpattern()

textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

Board footer

Powered by FluxBB