J4 Issue ?
avatar astridx
astridx
7 Feb 2018

Steps to reproduce the issue

  1. Create an article with a title and a text
  2. Save and close this article
  3. Open this article again and save it.

Expected result

The article is saved

Actual result

You see the error Save failed with the following error: Incorrect datetime value: '' for column 'created' at row 1
It is not possible to fill the date fields

articles edit test administration

avatar astridx astridx - open - 7 Feb 2018
avatar joomla-cms-bot joomla-cms-bot - change - 7 Feb 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Feb 2018
avatar astridx astridx - change - 7 Feb 2018
The description was changed
avatar astridx astridx - edited - 7 Feb 2018
avatar dgt41
dgt41 - comment - 7 Feb 2018

@astridx is this behaviour with language debug on? Does it work when not in debug mode?

avatar astridx
astridx - comment - 7 Feb 2018

Yes, you are right. The error occurs only with debug mode.

avatar astridx astridx - change - 7 Feb 2018
Title
[4.0] Editing an article failed with error **Save failed with the following error: Incorrect datetime value: '' for column 'created' at row 1**
[4.0] Editing an article failed in debug mode with error **Save failed with the following error: Incorrect datetime value: '' for column 'created' at row 1**
avatar astridx astridx - edited - 7 Feb 2018
avatar dgt41
dgt41 - comment - 7 Feb 2018

I see the problem: the field value somehow becomes translatable:
screen shot 2018-02-07 at 23 08 27

avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Feb 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Feb 2018
Category com_content
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar brianteeman brianteeman - change - 8 Jun 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-06-08 20:40:46
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 8 Jun 2018

i cant replicate this. I am going to assume this has been fixed elsewhere and close it. it can always be reopened if required

avatar brianteeman brianteeman - close - 8 Jun 2018
avatar carlitorweb
carlitorweb - comment - 8 Jun 2018

@brianteeman the issue still. You need active the language debug for replicate. And the problem is what said dgrammtiko.
screenshot_20180608164807

avatar brianteeman
brianteeman - comment - 8 Jun 2018

My error - it is ok on creating an article just not for editing

avatar brianteeman brianteeman - change - 8 Jun 2018
Status Closed New
Closed_Date 2018-06-08 20:40:46
Closed_By brianteeman
avatar brianteeman brianteeman - reopen - 8 Jun 2018
avatar brianteeman
brianteeman - comment - 8 Jun 2018

Interesting there is the same problem in Joomla 3 but instead of getting a save failed error the field is blanked and the article is saved.

The assumption of @dgrammatiko cannot be correct as all the date fields are displayed that way with debug on and its just this one field that has a problem

avatar dgrammatiko
dgrammatiko - comment - 8 Jun 2018

@brianteeman but that is the problem: the value with the ** is nowhere near valid so it throws

avatar brianteeman
brianteeman - comment - 8 Jun 2018

well its probably something to do with this line then
translateformat="true"

avatar mbabker
mbabker - comment - 8 Jun 2018

In the form field or the HTML helper or whatever it is handling that you’re
going to need to force JLanguage out of debug mode, translate the format,
and reset the state. Check for other uses of setDebug for examples, I’m
sure there’s one out there.

On Fri, Jun 8, 2018 at 5:02 PM Brian Teeman notifications@github.com
wrote:

well its probably something to do with this line then
translateformat="true"


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#19607 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWfoTN19Wp3HcBdV0AoqUiZz-avHxVjks5t6vRcgaJpZM4R9dUl
.

--

  • Michael Please pardon any errors, this message was sent from my iPhone.
avatar brianteeman
brianteeman - comment - 8 Jun 2018

If anyone works on this then you need to also check all date fields - i quickly checked publishing dates in modules and its the same behaviour

avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Jun 2018
Status New Discussion
avatar brianteeman
brianteeman - comment - 23 Jul 2018

I did find some uses of setDebug to try and learn from them and create a pr but I failed

avatar wilsonge wilsonge - change - 19 Aug 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-08-19 11:40:54
Closed_By wilsonge
avatar wilsonge
wilsonge - comment - 19 Aug 2018

PR to staging with #21717

avatar wilsonge wilsonge - close - 19 Aug 2018

Add a Comment

Login with GitHub to post a comment