Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#781 2017-02-04 08:56:19

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

Re: tru_tags: A tagging plugin for textpattern

frickinmuck wrote #303831:

undefined constant NULLDATETIME

Thanks, that’s the main issue then. Here’s the primer to help fix it.

The other mysql issue can more than likely be solved by perusing the mysql to mysqli thread.

You can ignore the warnings for now, but there is a fix for unregistered tags. Hope all that helps.


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

#782 2017-02-04 20:56:19

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: tru_tags: A tagging plugin for textpattern

My mini-fork that includes all of Stef’s modifications and seems to be working correctly:

# Name: tru_tags v3.7a 
# Type: Admin/Public plugin
# Article tagging
# Author: Nathan Arthur
# URL: http://www.rainskit.com/
# 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:
# .....................................................................

YToxMTp7czo0OiJuYW1lIjtzOjg6InRydV90YWdzIjtzOjY6ImF1dGhvciI7czoxMzoiTmF0
aGFuIEFydGh1ciI7czoxMDoiYXV0aG9yX3VyaSI7czoyNDoiaHR0cDovL3d3dy5yYWluc2tp
dC5jb20vIjtzOjc6InZlcnNpb24iO3M6NDoiMy43YSI7czoxMToiZGVzY3JpcHRpb24iO3M6
MTU6IkFydGljbGUgdGFnZ2luZyI7czo0OiJjb2RlIjtzOjQ1ODc2OiIvLyBUWFAgNC42IHRh
ZyByZWdpc3RyYXRpb24NCmlmIChjbGFzc19leGlzdHMoJ1xUZXh0cGF0dGVyblxUYWdcUmVn
aXN0cnknKSkgew0KVHhwOjpnZXQoJ1xUZXh0cGF0dGVyblxUYWdcUmVnaXN0cnknKQ0KLT5y
ZWdpc3RlcigndHJ1X3RhZ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IVE1MPC9zcGFuPiBvZiB0aGUgdXNhZ2Ug
aW5zdHJ1Y3Rpb25zIGlzIGF2YWlsYWJsZSBhdCA8YSBocmVmPSJodHRwOi8vY29kZS5nb29n
bGUuY29tL3AvdHJ1LXRhZ3Mvc291cmNlL2Jyb3dzZS90cnVuay90cnVfdGFncy1kb2NzLmh0
bWwiIHJlbD0ibm9mb2xsb3ciPmh0dHA6Ly9jb2RlLmdvb2dsZS5jb20vcC90cnUtdGFncy9z
b3VyY2UvYnJvd3NlL3RydW5rL3RydV90YWdzLWRvY3MuaHRtbDwvYT48L3A+IjtzOjM6Im1k
NSI7czozMjoiYTM3ODI3ODNkNzc0MDY4YmZiMmJlMWQzOGViNDEwYWUiO30=

Offline

#783 2017-02-25 03:27:48

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

Hello all, sorry for my long absence. Prompted by the generosity of the people who submitted pull requests, I finally got my site updated to the latest Textpattern (4.6 as of this writing) and updated tru_tags to work with it.

As far as I can tell, the pull requests were sufficient to make it work. If that’s not correct, please let me know so I can apply whatever other fixes are needed.

You can grab the latest version from the Releases page.

Offline

#784 2017-04-05 14:09:08

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: tru_tags: A tagging plugin for textpattern

truist wrote #304258:

Hello all, sorry for my long absence.

As someone who has been using tru_tags on their personal site for nearly a decade, good to have you back.

I am trying to get tru_tags 3.9 working on a site running 4.7 dev. I am constantly getting this error in the backend.

A problem occurred while loading the plugin: tru_tags -> User_Error: Table '[databasename].tru_tags_prefs' doesn't exist on line 409

Offline

#785 2017-04-05 15:47:46

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

Do you have a way to build a local version? Poking around the code, I’m guessing I need to change “PFX” to “safe_pfx(” on line 1039 (and probably line 1068, too). Does that fix it for you?

Offline

#786 2017-04-05 17:38:17

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

Re: tru_tags: A tagging plugin for textpattern

truist wrote #305228:

I’m guessing I need to change “PFX” to “safe_pfx(”

They should still both work. Sounds like installation failed or maybe we broke something in 4.7.0-dev…


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

#787 2017-04-05 17:56:16

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: tru_tags: A tagging plugin for textpattern

Bloke wrote #305233:

They should still both work. Sounds like installation failed or maybe we broke something in 4.7.0-dev…

I haven’t been able to get the fix to work but I think I may have the coding wrong. I sent truist an e-mail with an account so he can login and get a better look.

It is a tiny bit frustrating because I can’t smd_tags working either. The price you pay to live on the bleeding edge… :)

Offline

#788 2017-04-06 07:50:21

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

Re: tru_tags: A tagging plugin for textpattern

michaelkpate wrote #305235:

It is a tiny bit frustrating because I can’t smd_tags working either. The price you pay to live on the bleeding edge… :)

[OT, sorry] I’m running smd_tags on 4.7.0-dev. It’s not pretty, but it’s working and I’ll be ironing out the kinks soon. Get in touch if you’d like me to help you figure it out.


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

#789 2017-04-06 12:41:42

etc
Developer
Registered: 2010-11-11
Posts: 5,192
Website GitHub

Re: tru_tags: A tagging plugin for textpattern

Sidenote: I have set up a recent 4.7 to share an existing db with 4.5.7 and 4.6.2, for tests. After the install, prefs_id column is gone from txp_prefs table. This has left pre-4.7 versions prefless and mostly inoperable. Related?

Offline

#790 2017-04-06 13:19:05

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: tru_tags: A tagging plugin for textpattern

etc wrote #305241:

Related?

I just reinstalled the smd_tags beta. I got a whole page full of this.

User_Error "Unknown column 'prefs_id' in 'field list'"
in /home/cmsstyles/cmsstyles.com/textpattern/lib/txplib_db.php at line 409.
adminErrorHandler()
textpattern/lib/txplib_db.php:409 trigger_error()
textpattern/lib/txplib_db.php:483 safe_query()
textpattern/lib/txplib_misc.php(1407) : eval()'d code:847 safe_insert()
textpattern/lib/txplib_misc.php(1407) : eval()'d code:787 smd_tags_prefs_install()
textpattern/lib/txplib_misc.php(1407) : eval()'d code:193 smd_tags_table_install()
smd_tags_welcome()
textpattern/lib/txplib_misc.php:1948 call_user_func_array()
textpattern/include/txp_plugin.php:565 callback_event()
textpattern/include/txp_plugin.php:50 plugin_install()

So I think it is safe to say it is definitely related in some manner.

Offline

#791 2017-04-07 01:10:17

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

I’d like to help debug, but I don’t have the time available to spend trying out prerelease versions of textpattern and debugging issues. If 4.7 comes out, and has an issue, I’ll upgrade and try to fix it. Before that, though, is a bigger investment than I’m willing to make in this.

Offline

#792 2017-04-07 01:31:24

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: tru_tags: A tagging plugin for textpattern

truist wrote #305247:

I’d like to help debug, but I don’t have the time available to spend trying out prerelease versions of textpattern and debugging issues. If 4.7 comes out, and has an issue, I’ll upgrade and try to fix it. Before that, though, is a bigger investment than I’m willing to make in this.

That makes perfect sense. I mainly wanted to make sure you had a heads-up that there may be a problem when 4.7 is finalized – which is several months away at least.

Offline

Board footer

Powered by FluxBB