dokuwiki-plugin-translation icon indicating copy to clipboard operation
dokuwiki-plugin-translation copied to clipboard

Error message "undefined method helper_plugin_translation::getTransItem()" after update

Open Juergen-aus-Zuendorf opened this issue 2 years ago • 3 comments

Hi, after updating to the current version, I get the following error message when I open a translated page:

2023-02-02 08:16:00
Error: Call to undefined method helper_plugin_translation::getTransItem()
/var/www/html/wiki/lib/tpl/bootstrap3/tpl/translation.php(31)
#0 /var/www/html/wiki/lib/tpl/bootstrap3/tpl/navbar.php(89): include_once()
#1 /var/www/html/wiki/lib/tpl/bootstrap3/main.php(51): require_once('/var/www/html/w...')
#2 /var/www/html/wiki/inc/actions.php(27): include('/var/www/html/w...')
#3 /var/www/html/wiki/doku.php(126): act_dispatch()
#4 {main}

I've posted the same issue at the bootstrap3 template page: #584

Regards Juergen

Juergen-aus-Zuendorf avatar Feb 02 '23 08:02 Juergen-aus-Zuendorf

Hmm I thought about readding the function, as a wrapper around the new prepareLanguageSelectorItem(), but the output would differ and require changes in the template code anyway, so it's probably better for template authors to directly use prepareLanguageSelectorItem() anyway...

splitbrain avatar Feb 02 '23 11:02 splitbrain

I'm seeing the same error message after updating to Jack Jackrum. I applied https://github.com/giterlizzi/dokuwiki-template-bootstrap3/commit/e01e4012c2edb8ef3007d517417af0dbfbe5c579 which seems to do the trick.

tobiasd avatar Apr 04 '23 18:04 tobiasd

Is there a way within dokuwiki to change the branch for the updates?

LouisOuellet avatar Oct 11 '23 15:10 LouisOuellet