Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The templates don't work #1

Closed
hokkaidoperson opened this issue May 20, 2018 · 9 comments
Closed

The templates don't work #1

hokkaidoperson opened this issue May 20, 2018 · 9 comments
Labels

Comments

@hokkaidoperson
Copy link

Nice to meet you. I am using your wst plugin in my wiki.
At first it worked well, but after I upgraded the wiki, it doesn't work well.
INCLUDEONLY tags and NOINCLUDE tags may be working, but {{wst>}} syntax is not available, and regarded as Interwiki instead.
You can see the situation here (sorry but the page is only in Japanese).

Can you investigate the issue and modify the plugin?
Thanks

@ciubotaru
Copy link
Owner

はじめまして。

不具合のご報告、ありがとうございます!調査致します。

宜しくお願い致します。

ヴィタリエ

@hokkaidoperson
Copy link
Author

Thank you for your rapid check!

@ciubotaru
Copy link
Owner

ciubotaru commented May 21, 2018

Update: I am unable to reproduce this issue.

I created same templates (copy-pasting your 'request' and 'inthemiddle' templates) and same page ('templates') on the latest version of DokuWiki, but the templates work properly. I will investigate further and inform you if I find the cause.

You said that wst stopped working after an update. Maybe there is a conflict with another plugin.

@hokkaidoperson
Copy link
Author

Thanks for your investigation.
I see, and I'll check whether or not there is a conflict with another plugin.

@hokkaidoperson
Copy link
Author

I looked for the conflict with wst plugin, and I found that it conflicts with commentsyntax plugin.
I consider using the similar plugin instead, but it will be convenient for me if you solve this issue.

@ciubotaru
Copy link
Owner

Hm, I installed the commentsyntax plugin along with wst and it still works OK here...

@ciubotaru
Copy link
Owner

If you have access to dokuwiki code and some free time, could you please help me find the problem?

Go to DOKUWIKI_ROOT/lib/plugins/wst/syntax/template.php, and at line 32 find

    public function getSort() {
        return 320; // should go before Doku_Parser_Mode_media 320
    }

Replace "320" with a lower number (e.g. 310, then 300 etc.), and check if the problem disappears.

@hokkaidoperson
Copy link
Author

I tried, and found that the problem disappears when I replaced "320" with "310" or lower number.
And I found that NOCACHE macro also prevents the problem.

@ciubotaru ciubotaru added the bug label May 24, 2018
@ciubotaru
Copy link
Owner

Fixed in 07de1d1. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants