Installation fails with database error

Trying to install 7.3.1 on tso host. I have run through the installer a few times and now cleared out the install logs. suitecrm.log has this error:

Thu Sep 24 22:01:11 2015 [16487][-none-][FATAL] Error creating table: leads: Query Failed: CREATE TABLE leads (id char(36) NOT NULL ,date_entered datetime NULL ,date_modified datetime NULL ,modified_user_id char(36) NULL ,created_by char(36) NULL ,description text NULL ,deleted bool DEFAULT ‘0’ NULL ,assigned_user_id char(36) NULL ,salutation varchar(255) NULL ,first_name varchar(100) NULL ,last_name varchar(100) NULL ,title varchar(100) NULL ,photo varchar(255) NULL ,department varchar(100) NULL ,do_not_call bool DEFAULT ‘0’ NULL ,phone_home varchar(100) NULL ,phone_mobile varchar(100) NULL ,phone_work varchar(100) NULL ,phone_other varchar(100) NULL ,phone_fax varchar(100) NULL ,primary_address_street varchar(150) NULL ,primary_address_city varchar(100) NULL ,primary_address_state varchar(100) NULL ,primary_address_postalcode varchar(20) NULL ,primary_address_country varchar(255) NULL ,alt_address_street varchar(150) NULL ,alt_address_city varchar(100) NULL ,alt_address_state varchar(100) NULL ,alt_address_postalcode varchar(20) NULL ,alt_address_country varchar(255) NULL ,assistant varchar(75) NULL ,assistant_phone varchar(100) NULL ,converted bool DEFAULT ‘0’ NULL ,refered_by varchar(100) NULL ,lead_source varchar(100) NULL ,lead_source_description text NULL ,status varchar(100) NULL ,status_description text NULL ,reports_to_id char(36) NULL ,account_name varchar(255) NULL ,account_description text NULL ,contact_id char(36) NULL ,account_id char(36) NULL ,opportunity_id char(36) NULL ,opportunity_name varchar(255) NULL ,opportunity_amount varchar(50) NULL ,campaign_id char(36) NULL ,birthdate date NULL ,portal_name varchar(255) NULL ,portal_app varchar(255) NULL ,website varchar(255) NULL , NULL , NULL , NULL , NULL , PRIMARY KEY (id), KEY idx_lead_acct_name_first (account_name, deleted), KEY idx_lead_last_first (last_name, first_name, deleted), KEY idx_lead_del_stat (last_name, status, deleted, first_name), KEY idx_lead_opp_del (opportunity_id, deleted), KEY idx_leads_acct_del (account_id, deleted), KEY idx_del_user (deleted, assigned_user_id), KEY idx_lead_assigned (assigned_user_id), KEY idx_lead_contact (contact_id), KEY idx_reports_to (reports_to_id), KEY idx_lead_phone_work (phone_work), KEY idx_leads_id_del (id, deleted)) CHARACTER SET utf8 COLLATE utf8_general_ci: MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘NULL , NULL , NULL , NULL , PRIMARY KEY (id), KEY idx_lead_acct_name_fi’ at line 1

Looking at the database other tables have been created. Is this a known problem, comfortable with SQL but don’t want to start editing things if there is a patch up coming.

Cheers

Rowan

This is a known issue, that usually happens when your first install fails and have to go again,

The quick work around, for now, is to deleted the custom folder, and get a clean custom folder from the zip, to replace it with, make sure all permissions are right etc and go again

Thanks for the quick reply that worked.

I’m now back where I think I was to start with. The installer completed and I was left with a final next button which did nothing. Now when I go to index.php in verbose mode in addition to the strict standard messages I have a couple of warnings:

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/sites/s/suitecrm.domain/public_html/include/SugarEmailAddress/SugarEmailAddress.php:1113) in /var/sites/s/suitecrm.domain/public_html/include/MVC/SugarApplication.php on line 602

Warning: Cannot modify header information - headers already sent by (output started at /var/sites/s/suitecrm.domain/public_html/include/SugarEmailAddress/SugarEmailAddress.php:1113) in /var/sites/s/suitecrm.domain/public_html/include/utils.php on line 2698

Is it likely because I have stuck this on a sub domain (the person who’s website it is already has wordpress on the domain root.

You need to disable strict standards

Yep that work - thanks!

Sorry more questions. Now I have the install complete when I go to the main page it looks like this:

Guessing broken CSS?

Found the problem - no write access to the cache sub folder. Chmod -R 755 fixed it