geekitude / dokuwiki-plugin-userhomepage

Dokuwiki plugin to automatically create user's homepage and/or namespace
https://www.dokuwiki.org/plugin:userhomepage
5 stars 9 forks source link

Copy errors of template when language is not present #40

Closed arteteco closed 2 years ago

arteteco commented 3 years ago

Hello everyone, I know there is another issue open which may look similar but I think is a different thing.

The error is this: Copy error (lib/plugins/userhomepage/lang/it/userhomepage_private.default > ./data/./pages/user/userhomepage_private.txt)

Also, on the top, I have a php error:

Warning: copy(lib/plugins/userhomepage/lang/it/userhomepage_private.default): failed to open stream: No such file or directory in /web/htdocs/www.asnuaps.it/home/doku/lib/plugins/userhomepage/action.php on line 366

I checked via ftp and there is no it folder under lang/, so I think the problem is a lack of translation. In this case, to avoid the error, I think the plugin should just use the English template.

I'm solving the issue by copying the en folder and renaming it to it

Thanks!

geekitude commented 3 years ago

Hi

Thanks for that discover, I will make sure it defaults to english templates.

Happy new year

Le mer. 30 déc. 2020 à 22:03, arteteco notifications@github.com a écrit :

Hello everyone, I know there is another issue open which may look similar but I think is a different thing.

The error is this: Copy error (lib/plugins/userhomepage/lang/it/userhomepage_private.default

./data/./pages/user/userhomepage_private.txt)

Also, on the top, I have a php error:

Warning: copy(lib/plugins/userhomepage/lang/it/userhomepage_private.default): failed to open stream: No such file or directory in /web/htdocs/ www.asnuaps.it/home/doku/lib/plugins/userhomepage/action.php on line 366

I checked via ftp and there is no it folder under lang/, so I think the problem is a lack of translation. In this case, to avoid the error, I think the plugin should just use the English template.

I'm solving the issue by copying the en folder and renaming it to it

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/geekitude/dokuwiki-plugin-userhomepage/issues/40, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACA5CCP64GHNEMYTT66YVS3SXOIRLANCNFSM4VOW2SZA .

geekitude commented 2 years ago

Finally fixed that long forgotten issue :blush: https://github.com/geekitude/dokuwiki-plugin-userhomepage/commit/c27212a697a6a238853ff3dc68dc333c9f36e72c