No Code Attached Yet
avatar waader
waader
16 Aug 2019

Steps to reproduce the issue

In backend - article a newly entered category is displayed but not created.

Expected result

Actual result

System information (as much as possible)

Additional comments

avatar waader waader - open - 16 Aug 2019
avatar joomla-cms-bot joomla-cms-bot - change - 16 Aug 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Aug 2019
avatar brianteeman
brianteeman - comment - 16 Aug 2019

Can not confirm.

avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Aug 2019
Labels Added: ?
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 16 Aug 2019
avatar waader
waader - comment - 16 Aug 2019

Digging a little bit deeper, in administrator/components/com_categories/Model/CategoryModel.php Line 602 I get the following error: "Field 'description' doesn't have a default value"

With this message I found an older issue: #18993

I am using mariadb 10.1.36. According to https://mariadb.com/kb/en/library/sql-mode/#strict-mode strict mode is enabled per default only from 10.2.4 onwards.

Now I have to find out how to set strict mode for mariadb 10.1. These two commands did not work:
SET sql_mode = 'STRICT_TRANS_TABLES';
SET GLOBAL sql_mode = 'STRICT_TRANS_TABLES';

avatar ghost
ghost - comment - 16 Aug 2019

Can't confirm Issue. Created Category "new" in Article-View is assigned to Article and shown in Categories.

System Information

Setting Value
PHP Built On Linux lamp129.cloudaccess.net 3.10.0-962.3.2.lve1.5.24.5.el6h.x86_64 #1 SMP Thu Nov 22 10:07:47 EST 2018 x86_64
Database Type mysql
Database Version 5.7.23-cll-lve
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 7.3.7
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 4.0.0-alpha11-dev Development [ Amani ] 29-June-2019 11:27 GMT
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:68.0) Gecko/20100101 Firefox/68.0
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Aug 2019
Status New Discussion
avatar waader
waader - comment - 16 Aug 2019

I think you didn“t read my last message in which I analyzed the origin of the problem.

avatar ghost
ghost - comment - 16 Aug 2019

@waader i read your last Message but i couldn't get your Issue described in opening Comment.

avatar Quy Quy - change - 6 Oct 2019
Labels Removed: ?
avatar Quy Quy - unlabeled - 6 Oct 2019
avatar waader
waader - comment - 23 Oct 2019

In mariadb strict-mode is set by default from version 10.2.4 onwards (https://mariadb.com/kb/en/library/sql-mode/#strict-mode).
So I tested with a more current version (10.4.8) and now the adhoc creation of a category works.

@richard67: Maybe it should be documented that older mariadb versions could cause problems with J4.

avatar richard67
richard67 - comment - 23 Oct 2019

In mariadb strict-mode is set by default from version 10.2.4 onwards (https://mariadb.com/kb/en/library/sql-mode/#strict-mode).
So I tested with a more current version (10.4.8) and now the adhoc creation of a category works.

@richard67: Maybe it should be documented that older mariadb versions could cause problems with J4.

@wilsonge Maybe we should check and if necessary increase minimum version requirement for MariaDB in the DB driver?

avatar brianteeman
brianteeman - comment - 10 Jan 2020

If I read this correctly the issue is that we require strict_mode and with 5 year old (but still supported) versions of mariadb it is not enabled by default. If that is correct then either

  1. We document that strict mode is required in the system requirements
  2. If possible check for strict mode in the installer
avatar brianteeman
brianteeman - comment - 9 Apr 2021

@richard67 @wilsonge is this still an issue to resolve?

avatar richard67
richard67 - comment - 9 Apr 2021

I don't know.

avatar brianteeman
brianteeman - comment - 10 Apr 2021

I am referring to the comments about mariadb

#25903 (comment)
#25903 (comment)

avatar richard67
richard67 - comment - 10 Apr 2021

@brianteeman I wish I could help here, but to be honest, I did not really understand these comments. From my experience I would expect problems to appear when strict mode is on and not when it's off, and the error message fits to that, but here it seems to be vice versa, i.e. problems coming with the older version where strict mode was not enabled by default, and that confuses me.

So either I understand this issue completely wrong, or I am at least missing something.

avatar brianteeman
brianteeman - comment - 15 Aug 2022

@richard67 that is my reading of the op issue as well.

avatar joomdonation joomdonation - change - 12 Nov 2022
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2022-11-12 09:08:11
Closed_By joomdonation
Labels Added: No Code Attached Yet
Removed: ?
avatar joomdonation joomdonation - close - 12 Nov 2022
avatar joomdonation
joomdonation - comment - 12 Nov 2022

Joomla 4 was released more than one year ago and we didn't receive any other report, so I assume this was solved elsewhere. Therefore, I'm closing this issue. Feel free to re-open if the issue still valid.

Add a Comment

Login with GitHub to post a comment