Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#829 2020-07-28 19:57:10

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

Re: tru_tags: A tagging plugin for textpattern

Thanks so much for your help. I’ve managed to fix it.

I’ve actually been procrastinating on rebuilding this site. I guess I’d better get to it! :)


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

#830 2020-09-25 10:21:14

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 38
Website

Re: tru_tags: A tagging plugin for textpattern

Hi, so I just upgraded my neglected site to 4.8.2 and tru_tags to 3.9.2.

In debugging mode, I will get this error:

User_Error "Table 'tru_tags_redirects' doesn't exist"
in /..../textpattern/lib/txplib_db.php at line 448.

I double checked and the table indeed does not exist. Re-installing the plugin does not help. I can try to manually create the table but where do I find the schema?

Offline

#831 2020-09-26 04:40:30

peterj
Member
From: Melbourne, Australia
Registered: 2005-06-02
Posts: 65

Re: tru_tags: A tagging plugin for textpattern

I have an install running TXP 4.8.2 with tru_tags 3.9(patched) – which isn’t the latest but seems to still work.
I tried renaming the prefix on the database table, and was able to get the redirects table back by visiting the tru_tags settings page on the extensions tab – just opening that settings page runs a script that checks for the table and creates it if not there.

Offline

#832 2020-09-28 06:33:29

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 38
Website

Re: tru_tags: A tagging plugin for textpattern

Weirdly the extensions tab did not trigger the table creation. Had to go through the plugin code and dig out the schema. Leaving it here if anyone else needs this:

tru_tags_redirects
—————————
lefttag (varchar 255, primary key)
righttag (varchar 255, not null)

Offline

#833 2020-12-10 17:06:31

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 293
Website GitHub Twitter

Re: tru_tags: A tagging plugin for textpattern

For getting this plugin to work with php 8.0.0, I had to change the following line:

$count = $countwrapchars{0} . $weight . $countwrapchars{1};

into

$count = $countwrapchars[0] . $weight . $countwrapchars[1];

Without that I got an Fatal error: Array and string offset access syntax with curly braces is no longer supported.

I’m not sure, whether that breaks something or not, but works for now.

Last edited by whocarez (2021-06-03 09:29:52)

Offline

#834 2021-06-03 03:13:56

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

Re: tru_tags: A tagging plugin for textpattern

Your patch helped me, too — thanks, whocarez!

Offline

Board footer

Powered by FluxBB