J3 Issue ?
avatar acs-ferreira
acs-ferreira
16 Apr 2019

Steps to reproduce the issue

Create a new module, it is saved with id=0 and asset_id=0

Expected result

Module has in incremented id

Actual result

Actually id=0

Which results in module can't be edited or deleted (it can be Trashed with an error: Null primary key not allowed but when try to delete i have Delete not permitted.)

IF this module isn't deleted manually from the DB, no other module can't be created as it will trow a duplicated PRIMARY KEY.

The only similar thing found is #11468

I've reinstalled Joomla core files (trough com_joomlaupdate) and Fixed the DB (trough com_installer)

System information (as much as possible)

Setting Value
Database Version MariaDB-10.3.14
Database Collation utf8mb4_general_ci
Database Connection Collation utf8mb4_general_ci
Database driver pdomysql
PHP Version 7.2.17
Web Server Apache/2.4.39 (Unix) OpenSSL/1.1.0g
WebServer to PHP Interface fpm-fcgi
Joomla! Version Joomla! 3.9.5 Stable [ Amani ] 9-April-2019 15:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

Additional comments

image

image

avatar acs-ferreira acs-ferreira - open - 16 Apr 2019
avatar joomla-cms-bot joomla-cms-bot - change - 16 Apr 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Apr 2019
avatar acs-ferreira acs-ferreira - change - 16 Apr 2019
The description was changed
avatar acs-ferreira acs-ferreira - edited - 16 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Apr 2019
Labels Added: J3 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 16 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Apr 2019
Title
[3.9] Created modules have id=0
Created modules have id=0
avatar franz-wohlkoenig franz-wohlkoenig - edited - 16 Apr 2019
avatar acs-ferreira acs-ferreira - change - 16 Apr 2019
The description was changed
avatar acs-ferreira acs-ferreira - edited - 16 Apr 2019
avatar acs-ferreira acs-ferreira - change - 16 Apr 2019
The description was changed
avatar acs-ferreira acs-ferreira - edited - 16 Apr 2019
avatar acs-ferreira acs-ferreira - change - 16 Apr 2019
Title
Created modules have id=0
New created content (articles,modules) have id=0
avatar acs-ferreira acs-ferreira - edited - 16 Apr 2019
avatar acs-ferreira acs-ferreira - change - 16 Apr 2019
The description was changed
avatar acs-ferreira acs-ferreira - edited - 16 Apr 2019
avatar ReLater
ReLater - comment - 16 Apr 2019

I can't reproduce the issue with Database Type "MySql (PDO)", Joomla 3.9.5, 5.5.5-10.1.34-MariaDB, PHP 7.2.

Normally errors like this occur if your database tables are broken.

Check if the field id of table #__modules is marked as AUTO_INCREMENT.

If not please ask in a forum to get help.

16-04-_2019_14-21-14

avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Apr 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-04-16 12:27:06
Closed_By franz-wohlkoenig
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 16 Apr 2019

Closed Issue as stated above.
Please ask on Forum

avatar franz-wohlkoenig franz-wohlkoenig - close - 16 Apr 2019
avatar acs-ferreira
acs-ferreira - comment - 16 Apr 2019

Ok thanks anyway, forum is completely useless, my last three questions had no answers at all since weeks. Cheers!

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 16 Apr 2019

Sorry to hear that @acs-ferreira but here are also Forummember so if you Link to the Questions i'm sure they will answer (@wojsmol)

avatar acs-ferreira
acs-ferreira - comment - 16 Apr 2019

No problem, thanks.
I've managed to solve it myself, it was indeed an AUTO_INCREMENT problem.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 16 Apr 2019

thanks @ReLater for help.

Add a Comment

Login with GitHub to post a comment