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

plugin»structtasks»completed config option cannot be edited - becomes red and reset upon save #6

Open
Chris75forumname opened this issue Aug 22, 2023 · 4 comments

Comments

@Chris75forumname
Copy link

plugin»structtasks»completed config option cannot be edited - becomes red and reset upon save, but without message, as to what's wrong with the edit?

@cmacmackin
Copy link
Owner

I've reproduced this. Not sure what would be the source of the problem though. Have you tried manually editing your dokuwiki config files (i.e., conf/local.php) and seeing if it works? Not a long-term solution but might give some insight.

@Chris75forumname
Copy link
Author

Chris75forumname commented Aug 23, 2023

Hi, thanks for your quick reply! I really appreciate this! 😃

No, but I will happily try that. I am just about to setup your plugin.

BTW: How do you delete page data? Is it enough to delete the associated page?
EDIT: Yes, it works by deleting the associated page. Solved! 😄

What's next, is to set up the cronjob. I have a crontab file, where I run tasks like this:

cp /var/www/dokuwiki/data/meta/struct.sqlite3 /var/www/dokuwiki/data/attic/struct_db_daily/struct_`date "+\%Y-\%m-\%d--\%H-\%M-\%S"`.sqlite3

What exact lines do I have to add to this crontab file? Is that it:

/usr/bin/php /var/www/dokuwiki/bin/plugin.php structtasks -v &> /var/www/dokuwiki/structtasks-cron.log

I will try all that and report back.

Cheers!

@Chris75forumname
Copy link
Author

Chris75forumname commented Aug 23, 2023

I found, text input field validation of the DokuWiki admin config panel does not like the / character. If you remove only those from the statement, it passes. Strangely, for other plugins this works, though. I don't see the catch. Editing /conf/local.php manually, worked!

@Chris75forumname
Copy link
Author

Chris75forumname commented Aug 24, 2023

I checked those other plugins (discussion plugin and numbering plugin). What they do different, they would expect
$meta['completed'] = array('string'); instead of $meta['completed'] = array('regex');
in /plugins/structtasks/conf/metadata.php. That should work, then.

So I consider this as solved. Cheers! 👍

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

No branches or pull requests

2 participants