What time does the scheduler use? Is it server time or the client time?
FriendsOfFlarum Drafts
The scheduler is not working for me. Getting this error message in log:
Starting...
In Builder.php line 479:
No query results for model [Flarum\Discussion\Discussion].
drafts:publish [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [--] <command>
Also having a bit of an issue with the scheduler, we can pick a date with no problem but then get no way to set a time at all.
- Edited
hi dear devs, add please button "delete all drafts"
its spamm if more time read topics
upd:
TOWUK Already it has updated. Just update the extension.
TOWUK fakruzaruret That screenshot is from discuss, so we'll need to update it here.
@Kyrne The scheduler is not working for me.
Getting this error message in log:
Starting...
In Builder.php line 479:
No query results for model [Flarum\Discussion\Discussion].
drafts:publish [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [--] <command>
Other schedules like sitemap and best answer is working. I'm on beta15.
- Edited
So I tried removing off/drafts since I couldn't upgrade. But then when I went to re-install I got this:
https://flagrow.io/satis could not be fully loaded (The "https://extiverse.com/satis/packages.json" file could not be downloaded (HTTP/2 400 )), package information was loaded from the local cache and may be out of date
Using version ^0.3.2 for fof/drafts
./composer.json has been updated
Running composer update fof/drafts
Loading composer repositories with package information
https://flagrow.io/satis could not be fully loaded (The "https://extiverse.com/satis/packages.json" file could not be downloaded (HTTP/2 400 )), package information was loaded from the local cache and may be out of date
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires fof/drafts ^0.3.2 -> satisfiable by fof/drafts[0.3.2].
- fof/drafts 0.3.2 requires fof/console ^0.6.2 -> found fof/console[0.6.2, 0.6.3] but the package is fixed to 0.6.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
What is fof/console never heard of it? How should I install it?
I figured it out I had to install with the -w command and it installed all the things it needed.
Ffuser1 the scheduler is most likely broken due to a bug, this is something that will need to wait for a fix.
Extension not create database:
My Log in local server:
Next Illuminate\Database\QueryException: SQLSTATE[HY000]: General error: 1005 Can't create table
fdb.
fpr_drafts(errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table
fpr_draftsadd constraint
fpr_drafts_user_id_foreignforeign key (
user_id) references
fpr_users(
id) on delete cascade) in /var/www/niktechnet.com/public_html/vendor/illuminate/database/Connection.php:669
NikolayIvanov what version of mysql are you using?
mariadb-10.3 (1:10.3.25-0ubuntu0.20.04.1)
It is important to note that the extension is not activated on the work server either.
Otherwise, the other extensions are disabled and activated normally. They also delete and create a database.
0.4.0
- Beta 16 ready
Updating
composer require fof/drafts:"*"
php flarum cache:clear
Question, is some specific configuration/activity required to have draft autopublish scheduling working? Able to set date of scheduled publication, but nothing is never published. Is there some kind of time zone congiguration, or it's just broken feature?
[deleted]
Trolololodev hi, I believe it uses the Flarum scheduler, which you can find your to configure here
https://discuss.flarum.org/d/24118-setup-the-flarum-scheduler-using-cron