? ?
avatar infograf768
infograf768
11 Aug 2018

Steps to reproduce the issue

Install blog or multilingual sample data from the module in CPanel.

Expected result

New articles created should display in the Articles Manager.
(They display in the Multilanguage Associations component as that component is anyway not adapted to workflow...)

Actual result

They don't.
They are created in the content table, but absent from the new workflow tables.

And we do get this error
[11-Aug-2018 06:25:43 Europe/Berlin] PHP Notice: Trying to get property of non-object in /administrator/components/com_content/Model/ArticleModel.php on line 544

which is to be expected.

avatar infograf768 infograf768 - open - 11 Aug 2018
avatar joomla-cms-bot joomla-cms-bot - change - 11 Aug 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 11 Aug 2018
avatar infograf768 infograf768 - change - 11 Aug 2018
Labels Added: J4 Issue ?
avatar infograf768 infograf768 - labeled - 11 Aug 2018
avatar infograf768 infograf768 - labeled - 11 Aug 2018
avatar infograf768 infograf768 - change - 11 Aug 2018
The description was changed
avatar infograf768 infograf768 - edited - 11 Aug 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 11 Aug 2018

Issue confirmed.

avatar brianteeman
brianteeman - comment - 11 Aug 2018

probably the same root cause as #21541

avatar infograf768
infograf768 - comment - 11 Aug 2018

Issue is worse than I thought:
We would have to create an entry for the new articles in _workflow_associations.
item_id is the id of the article in the _content table. No problem there.

But what about the state_id? It will totally depend on the existing workflow. With a Joomla default workflow, it should be 2 for Published. But that number may be anything else depending on the default workflow...

avatar infograf768
infograf768 - comment - 11 Aug 2018

and evidently same issue for Category params as we have to state a workflow_id in its params.

avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Aug 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Aug 2018
Category com_workflow
avatar infograf768
infograf768 - comment - 11 Aug 2018

See POC here #21553

avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Aug 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-08-11 10:08:27
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 11 Aug 2018
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 11 Aug 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 11 Aug 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 11 Aug 2018

closed as having Pull Request #21553

avatar infograf768
infograf768 - comment - 11 Aug 2018

@franz-wohlkoenig
As my solution is a POC (i.e. it does not take into account some workflow issues), we may have to re-open this. We will see.

avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Apr 2019
Labels Added: ?
Removed: J4 Issue ?
avatar franz-wohlkoenig franz-wohlkoenig - unlabeled - 20 Apr 2019

Add a Comment

Login with GitHub to post a comment