[TYPO3-mvc] Re: Create predefined fe_groups when activating extension

NGUYEN Duc Quan quan at apart.lu
Mon Dec 7 09:42:53 CET 2015


Hi Chris,

unfortunately your answers doesn't show up in this thread.

I have the fe_users and fe_groups in a folder with uid=4.

This is the content of my ext_tables_static+adt.sql file:

---
#
# Table structure for table "fe_groups"
#
DROP TABLE IF EXISTS fe_groups;
CREATE TABLE fe_groups (
  uid int(11) unsigned NOT NULL AUTO_INCREMENT,
  pid int(11) unsigned NOT NULL default '0',
  tstamp int(11) unsigned NOT NULL default '0',
  crdate int(11) unsigned NOT NULL default '0',
  cruser_id int(11) unsigned NOT NULL default '0',
  title varchar(50) NOT NULL default '',
  hidden tinyint(3) unsigned NOT NULL default '0',
  lockToDomain varchar(50) NOT NULL default '',
  deleted tinyint(3) unsigned NOT NULL default '0',
  description longtext NOT NULL,
  subgroup varchar(255) NOT NULL default '',
  TSconfig longtext NOT NULL,
  tx_extbase_type varchar(255) NOT NULL default '0',
  felogin_redirectPid tinytext,
  PRIMARY KEY (uid),
  KEY parent (pid)
);


INSERT INTO fe_groups VALUES ('1', '4', '1355222769', '1352755872', '1', 'Group1', '0', '', '1', '', '', '', '0', '');
INSERT INTO fe_groups VALUES ('2', '4', '1354701648', '1354701648', '3', 'Group2', '0', '', '0', '', '', '', '0', NULL);
INSERT INTO fe_groups VALUES ('3', '4', '1355222774', '1355221494', '3', 'Group3', '0', '', '1', 'Description 3', '', '', '0', NULL);
INSERT INTO fe_groups VALUES ('4', '4', '1446288673', '1446288664', '1', 'Group4', '0', '', '0', '', '', '', '0', '');
INSERT INTO fe_groups VALUES ('5', '4', '1446288673', '1446288664', '1', 'new Group', '0', '', '0', '', '', '', '0', '');
---

It is really hard to debug the issue why the file doesn't get executed since there's no error message or output.

Is there no other way to solve this issue? Like what David suggested by calling a method to insert new groups?


More information about the TYPO3-project-typo3v4mvc mailing list