Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-07-13 12:34:41

Ciges
Member
From: Vigo (España)
Registered: 2013-08-21
Posts: 12

unregistered_tag, lot of plugins not working inTextpattern 4.6 :-(

Hello,

I am begginning a new web and I have installed revision 5854 from textpattern development branch.

I am testing a few themes and plugins and I have seen that apparently there is a lot of plugins whose tags does not get registered, becoming useless then :-(

What I am doing wrong? Is this normal? I need the development branch to use markdown as syntax.

You can see an example of what I am saying at this URL (a clean installation with the Yoko theme installed)

Regards

Last edited by Ciges (2014-07-13 12:35:46)

Offline

#2 2014-07-13 13:16:46

Ciges
Member
From: Vigo (España)
Registered: 2013-08-21
Posts: 12

Re: unregistered_tag, lot of plugins not working inTextpattern 4.6 :-(

The plugins work, the message is a warning :-)

To not showing this annoying message the following hack can be done

Edit the “textpattern/lib/txplib_publish.php” file. At line 482 you can see the following code

// Deprecated in 4.6.0.
else if (maybe_tag($tag )) {
    $out = $tag(splat($atts), $thing);
    trigger_error(gTxt('unregistered_tag'), E_USER_NOTICE);
}

It says clearly it’s deprecated in 4.6.0, so I commented the user notification (the trigger_error call) without fear

// Deprecated in 4.6.0.
else if (maybe_tag($tag)) {
    $out = $tag(splat($atts), $thing);
    //trigger_error(gTxt('unregistered_tag'), E_USER_NOTICE);
}

Dirty, but working :-)

Offline

#3 2014-07-13 20:08:14

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

Re: unregistered_tag, lot of plugins not working inTextpattern 4.6 :-(

Ciges wrote #282100:

To not showing this annoying message the following hack can be done

See here.


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

Board footer

Powered by FluxBB