Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-02-18 21:23:10

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 619
Website

Textpattern Notice: tag is not registered on TXP 4.8.0 beta3

Hi, I’m having an issue while on debugging mode, I get errors of rah_ plugins tags not being registered.
What does it means that they are not registered and how can I register them please?
Using TXP 4.8.0 beta3 (upgraded, not a clean setup)

Textpattern Notice: rah_replace tag is not registered
Textpattern Notice: rah_repeat tag is not registered
Textpattern Notice: rah_repeat_value tag is not registered
Textpattern Notice: rah_repeat_if_first tag is not registered

Offline

#2 2020-02-18 21:33:23

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: Textpattern Notice: tag is not registered on TXP 4.8.0 beta3

This post is a good start for several plugin related issues.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2020-02-18 21:34:05

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,595
Website

Re: Textpattern Notice: tag is not registered on TXP 4.8.0 beta3

Hi The Blue Dragon,

What you need are just updates of Jukka’s plugin:

Unfortunately, Jukka has stopped providing .txt and .zip.txt installers and recommends installing using composer.

Otherwise, you can add the following lines to the top of the code of your existing plugins:

if (class_exists('\Textpattern\Tag\Registry')) {
    Txp::get('\Textpattern\Tag\Registry')
        ->register('rah_replace');
}

and for rah_repeat:

if (class_exists('\Textpattern\Tag\Registry')) {
    Txp::get('\Textpattern\Tag\Registry')
        ->register('rah_repeat')
        ->register('rah_repeat_value')
        ->register('rah_repeat_if_first')
        ->register('rah_repeat_if_last');
}

TXP Builders – finely-crafted code, design and txp

Offline

#4 2020-02-18 21:53:41

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 619
Website

Re: Textpattern Notice: tag is not registered on TXP 4.8.0 beta3

uli wrote #321761:

This post is a good start for some plugin related issues.

Thanks, I will follow that post for other plugins as well :)

jakob wrote #321762:

Hi The Blue Dragon,

What you need are just updates of Jukka’s plugin:

Unfortunately, Jukka has stopped providing .txt and .zip.txt installers and recommends installing using composer.

Otherwise, you can add the following lines to the top of the code of your existing plugins:

if (class_exists('\Textpattern\Tag\Registry')) {...

and for rah_repeat:

if (class_exists('\Textpattern\Tag\Registry')) {...

Thanks a lot it works :)

Offline

Board footer

Powered by FluxBB