Console, List execute; Action working when done manually, rejected when using the CLI (die silently with tiki scheduler)
- Status
- Open
- Subject
- Console, List execute; Action working when done manually, rejected when using the CLI (die silently with tiki scheduler)
- Version
- 25.x
26.x
master - Category
- Bug
- Consistency
- Feature
- Console / Command Line
Scheduler
Wiki Plugin (extends basic syntax) - Resolution status
- New
- Submitted by
- Bernard Sfez / Tiki Specialist
- Lastmod by
- Bernard Sfez / Tiki Specialist
- Rating
- Description
Sorry for the multi-drawer report.
On a Tiki25 I have a "tracker_item_modify" action (see last point, can be debatted).
- Wiki Page vs CLI
When applying manually the action on a wiki page it work just fine.When I run the command through the scheduler, while verbose and logs says it was done, in reality the action is not applied.
When I use the CLI I have this error:
Copy to clipboardphp console.php list:execute "List executes control page" "Resave evaluations" Undefined property: Search_ResultSet::$errorInQuery on line 313 of /home/happyhome/public_html/lib/wiki-plugins/wikiplugin_list.php Action Resave evaluations executed on page List executes control page. error: Error executing action Resave evaluations on item 1677099144: tracker_item_modify action missing value, calc, add or remove parameter.
After fixing the issue (again see below) the CLI is still reporting an error but the action is completed correctly.Copy to clipboardphp console.php list:execute "List executes control page" "Resave evaluations" Undefined property: Search_ResultSet::$errorInQuery on line 313 of /home/happyhome/public_html/lib/wiki-plugins/wikiplugin_list.php Action Resave evaluations executed on page List executes control page. <feedback>feedback: Action Resave evaluations executed successfully on 1 item(s). </feedback>- Scheduler inaccurate report
The scheduler report (run now) and logs make the admin believe all went right while the CLI shows errors.
If an action is not completed the logs should show the output (from the console).- Empty action to re-save item with item-list
The targeted item has been created from list execute with a duplicate action and has 2 item-list.
The item-list field are not populated after the action, and they need to be "manually" edited/save to get the other items values.To make it automatic, I added a list execute with an empty tracker_item_modify action set only to force a "manual" save of the item.
Copy to clipboard{step action="tracker_item_modify" field="dailyevaluationDate"}This work manually but failed when using the CLI
I changed for
Copy to clipboard{step action="tracker_item_modify" field="dailyevaluationDate" calc="(concat (add dailyevaluationDate 1))"}This work (it change the date and time, but it is not critical in this case - all stays within the same day)
- Wiki Page vs CLI
- Importance
- 5
- Easy to solve?
- 5
- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 8346
- Created
- Thursday 23 February, 2023 05:47:15 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Thursday 23 February, 2023 05:47:15 UTC