Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#769 2016-10-04 11:36:05

ENB
New Member
Registered: 2016-10-04
Posts: 5

Re: tru_tags: A tagging plugin for textpattern

Bloke wrote #301943: Drop back here if you have issues.

Thank you! I added and replace the strings and no error “mysql_query”.
But, when I get a plugin settings page, I see in browser popup window with :
“User_error Unknown column ‘NULLDATETIME’ in ‘where clause’

Offline

#770 2016-10-04 12:26:48

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: tru_tags: A tagging plugin for textpattern

ENB wrote #301947:

[…] But, when I get a plugin settings page, I see in browser popup window with :
“User_error Unknown column ‘NULLDATETIME’ in ‘where clause’

Does this help?


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#771 2016-10-04 14:09:29

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

Re: tru_tags: A tagging plugin for textpattern

Looking at https://github.com/truist/tru-tags/blob/master/tru_tags.php

	if (!$publish_expired_articles) {
		$time .= " and (now() <= Expires or Expires = ".NULLDATETIME.")";
	}

I am thinking should become

	if (!$publish_expired_articles) {
		$time .= " and (now() <= Expires or Expires IS NULL)";
	}

or something like that.

Offline

#772 2016-10-05 16:54:52

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

Re: tru_tags: A tagging plugin for textpattern

Hi all, I haven’t worked on this plugin in a long time, but if somebody wants to fork it and make a pull request, I’ll take it and publish an updated version. github.com/truist/tru-tags

Offline

#773 2016-12-14 07:23:50

spiridon
Member
From: Mariupol, Ukraine
Registered: 2011-01-30
Posts: 43
Website

Re: tru_tags: A tagging plugin for textpattern

Tag error: <txp:tru_tags_handler listform="article_listing" /> ->  Textpattern Notice: Unknown tag attribute: listform while parsing form None on page blog
textpattern/lib/txplib_misc.php:2152 trigger_error()
textpattern/publish.php:754 lAtts()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:60 doArticles()
tru_tags_handler()

function tru_tags_fixup_query_atts has such a code:

if (isset($atts['searchform']) && !isset($atts['listform'])) {
        $atts['listform'] = $atts['searchform'];
}

maybe it’s worth it to remove
or add at the end of function next code:

if (isset($atts['listform'])) {
	$atts['form'] = $atts['listform'];
	unset($atts['listform']);
}

Offline

#774 2016-12-14 07:57:30

Vienuolis
Member
From: Vilnius, Lithuania
Registered: 2009-06-14
Posts: 309
Website GitHub GitLab Twitter

Re: tru_tags: A tagging plugin for textpattern

Unknown tag attribute: listform

Replace listform with form<txp:tru_tags_handler form="article_listing" /> works fine for me after such replacing.

Offline

#775 2016-12-14 11:14:25

spiridon
Member
From: Mariupol, Ukraine
Registered: 2011-01-30
Posts: 43
Website

Re: tru_tags: A tagging plugin for textpattern

that’s exactly what I did.

Offline

#776 2016-12-14 18:39:26

spiridon
Member
From: Mariupol, Ukraine
Registered: 2011-01-30
Posts: 43
Website

Re: tru_tags: A tagging plugin for textpattern

under php7 got error:

tru_tags -> 8192: Methods with the same name as their class will not be constructors in a future version of PHP; tru_tags_pref has a deprecated constructor on line 970

should be line with:

function tru_tags_pref($name, $default_value, $type) {

replace on:

public function __construct($name, $default_value, $type) {

Offline

#777 2017-02-03 01:14:34

frickinmuck
Member
Registered: 2008-05-01
Posts: 118

Re: tru_tags: A tagging plugin for textpattern

I know this is an orphan plugin, but it still works fine for my purposes, so I’m still using it. Only thing is, I’m having one minor issue. The txp tags that output lists of tags are no longer working in txp 4.6.2. I’m talking about tru_tags_cloud, tru_tags_list, etc.

If anyone has any ideas on what might be causing that, and any way I might fix it, that would be most appreciated.


The AI does not hate you, nor does it love you, but you are made out of atoms which it can use for something else.

Offline

#778 2017-02-03 09:05:32

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

Re: tru_tags: A tagging plugin for textpattern

frickinmuck wrote #303813:

The txp tags that output lists of tags are no longer working in txp 4.6.2.

If you stick the site in Debugging mode, do you get any useful error messages out in the stack trace that could help a potential developer to hone in on where the problems lie?


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

#779 2017-02-03 15:10:50

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

Re: tru_tags: A tagging plugin for textpattern

frickinmuck wrote #303813:

I know this is an orphan plugin, but it still works fine for my purposes, so I’m still using it. Only thing is, I’m having one minor issue. The txp tags that output lists of tags are no longer working in txp 4.6.2. I’m talking about tru_tags_cloud, tru_tags_list, etc.

I use tru_tags on michaelkpate.com – which I just noticed is still on 4.5.7. So I can help with this later today but I am going to be out of pocket for the next few hours.

Offline

#780 2017-02-04 07:54:32

frickinmuck
Member
Registered: 2008-05-01
Posts: 118

Re: tru_tags: A tagging plugin for textpattern

Bloke wrote #303820:

If you stick the site in Debugging mode, do you get any useful error messages out in the stack trace that could help a potential developer to hone in on where the problems lie?

Of course, I totally forgot about that – I’ve been away from this stuff for awhile. :)

Tag error: <txp:tru_tags_cloud setsizes="0" /> ->  Textpattern Notice: unregistered_tag while_parsing_page_form: default, music_sidebar

textpattern/lib/txplib_publish.php:518 trigger_error()
textpattern/lib/txplib_publish.php:463 processTags()
textpattern/lib/txplib_misc.php:4415 parse()
textpattern/publish/taghandlers.php:487 parse_form()
output_form()
textpattern/vendors/Textpattern/Tag/Registry.php:83 call_user_func()
textpattern/lib/txplib_publish.php:514 Textpattern\Tag\Registry->process()
textpattern/lib/txplib_publish.php:463 processTags()
textpattern/lib/txplib_misc.php:4476 parse()
textpattern/publish.php:562 parse_page()

Tag error: <txp:tru_tags_cloud setsizes="0" /> ->  Notice: Use of undefined constant NULLDATETIME - assumed 'NULLDATETIME' while_parsing_page_form: default, music_sidebar

textpattern/lib/txplib_misc.php(1782) : eval()'d code:89 tru_tags_cloud_query()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:83 tru_tags_list()
tru_tags_cloud()
textpattern/vendors/Textpattern/Tag/Registry.php:83 call_user_func()
textpattern/lib/txplib_publish.php:519 Textpattern\Tag\Registry->process()
textpattern/lib/txplib_publish.php:463 processTags()
textpattern/lib/txplib_misc.php:4415 parse()
textpattern/publish/taghandlers.php:487 parse_form()
output_form()
textpattern/vendors/Textpattern/Tag/Registry.php:83 call_user_func()

A problem occured while loading the plugin: tru_tags -> Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) on line 947

textpattern/lib/txplib_misc.php(1782) : eval()'d code:947 mysql_query()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:29 tru_tags_load_prefs()
textpattern/lib/txplib_misc.php:1782 eval()
textpattern/publish.php:169 load_plugins()
index.php:104 include()

A problem occured while loading the plugin: tru_tags -> Warning: mysql_query() [function.mysql-query]: A link to the server could not be established on line 947

textpattern/lib/txplib_misc.php(1782) : eval()'d code:947 mysql_query()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:29 tru_tags_load_prefs()
textpattern/lib/txplib_misc.php:1782 eval()
textpattern/publish.php:169 load_plugins()
index.php:104 include()

Last edited by frickinmuck (2017-02-04 07:56:41)


The AI does not hate you, nor does it love you, but you are made out of atoms which it can use for something else.

Offline

Board footer

Powered by FluxBB