tstaerk / mediasyntax

Mediasyntax is a plugin for Dokuwiki that enables Mediawiki syntax.
http://www.staerk.de/thorsten/Mediasyntax
GNU General Public License v2.0
10 stars 6 forks source link

Include feature not working. Worked fine before. #35

Open AzureCloudMonk opened 1 year ago

AzureCloudMonk commented 1 year ago

MediaWiki style Include feature not working. Worked fine before. e.g.

{{navbar_footer}}

should include [[navbar_footer]]

The URL on my site is https://www.devopscloud.io/lib/exe/fetch.php?media=navbar_footer

get error: "Not Found"

instead of including the file navbar_footer.txt as it should and did previously.

This feature allows me to use many Wikipedia templates such as https://en.wikipedia.org/w/index.php?title=Template:C%2B%2B_programming_language&action=edit

With a little modification these Wikipedia templates are transcluded by your MediaSyntax plugin making for simple reusable navbars and headers and footers. This is what is no longer working after your latest fixes.

Otherwise, everything is working great now such as the #redirect [[file]] feature. Formatting and TOC looks goods.

Again, 🙏 thank you for your hard work and awesome plugin allowing DokuWiki to be a much simpler drop-in replacement for overly complex MediaWiki.

tstaerk commented 1 year ago

many thanks for your feedback, I just discovered that the codeblock feature no longer works either and repaired it. Hope you report this from PHP 8 :)

tstaerk commented 1 year ago

I suspect this change to be the reason: https://github.com/tstaerk/mediasyntax/commit/d526650fbb7f4e853530fd9b2d0268be296b417f#r123047460

tstaerk commented 1 year ago

changed, could not test, need to go, feel free to test

AzureCloudMonk commented 1 year ago

I FTP uploaded just this include.php file to my /lib/plugins/mediasyntax directory and it didn’t solve the include {{navbar}} bug. Also replaced the whole plugin from the Admin Extension Manager UI and clicked “update” with no success. Downloaded the zip file of the whole repo and uploaded it, also with no success.

tstaerk commented 1 year ago

your wiki article containing {{navbar}} is probably in the attic, in some kind of cache. Change it to find out if the patch has helped.

AzureCloudMonk commented 1 year ago

Just to be safe, I deleted the ENTIRE directory contents of both data/cache and data/attic.

I then went to my CDN at https://dash.cloudflare.com and set my DokuWiki site to "Development Mode" ("Temporarily bypass our cache. See changes to your origin server in realtime.")

But, it did not solve it.

Nowhere are the includes working. Not in {{navbar_footer}}, {{navbar_header}}, {{navbar_java}}, {{navbar_react.js}} (e.g. https://www.devopscloud.io/doku.php?id=navbar_react.js), or anywhere else.

Please let me know what to try next.

Thanks.

AzureCloudMonk commented 1 year ago

If you look at https://www.devopscloud.io/doku.php?id=navbar, you can see I use a ton of "navbars" on thousands of articles. So this is one of the key uses for me of the MediaSyntax plugin. It let's me pull Wikipedia templates (navbars), modify them slightly and use them on my site.

tstaerk commented 1 year ago

I like your website... please try again, sorry.

AzureCloudMonk commented 1 year ago

Thanks. Just tried your latest fix using the "reinstall" button on https://www.devopscloud.io/doku.php?id=todo&do=admin&page=extension&tab=plugins and it worked perfectly! The Admin Extension Manager GUI didn't tell me there is a new version available however like other plugins do when there is an update. No worries.

Again, thank you SO MUCH for making the best plugin on DokuWiki and thus allowing a simple file-based DokuWiki to become a drop-in replacement for the overly complex MediaWiki. See my review here: https://www.devopscloud.io/doku.php?id=dokuwiki_mediawiki_syntax_mediasyntax_plugin

Please see your PayPal for another "thank you".