Can't install Xibo - An error occured populating the database

Hi! I have never used Xibo before, I have been following the installation instructions (http://xibo.org.uk/manual/en/install_cms.html), but when I try to create the database I receive a huge error. I have the last version of MySQL (5.6.22), Windows 7 and IIS7.

Here is an screenshot of the error: http://postimg.org/image/zcga0hld7/

An error occurred populating the database. Statement number: 89. Error Message = [SQLSTATE[HY000]: General error: 1366 Incorrect integer value: ‘’ for column ‘ordering’ at row 62]. File = [Array]. SQL = [INSERT INTO setting (settingid, setting, value, fieldType, helptext, options, cat, userChange, title, validation, ordering, default, userSee, type) VALUES (1, ‘MEDIA_DEFAULT’, ‘private’, ‘dropdown’, ‘Media will be created with these settings. If public everyone will be able to view and use this media.’, ‘private|public’, ‘permissions’, 1, ‘Media Permissions’, ‘’, 20, ‘private’, 1, ‘word’), (2, ‘LAYOUT_DEFAULT’, ‘private’, ‘dropdown’, ‘New layouts will be created with these settings. If public everyone will be able to view and use this layout.’, ‘private|public’, ‘permissions’, 1, ‘Layout Permissions’, ‘’, 10, ‘private’, 1, ‘word’), (3, ‘defaultUsertype’, ‘User’, ‘dropdown’, ‘Sets the default user type selected when creating a user.\r\n
\r\nWe recommend that this is set to “User”’, ‘User|Group Admin|Super Admin’, ‘users’, 1, ‘Default User Type’, ‘’, 10, ‘User’, 1, ‘string’), (7, ‘userModule’, ‘module_user_general.php’, ‘dirselect’, ‘This sets which user authentication module is currently being used.’, NULL, ‘users’, 0, ‘User Module’, ‘’, 0, ‘module_user_general.php’, 0, ‘string’), (11, ‘defaultTimezone’, ‘Europe/London’, ‘timezone’, ‘Set the default timezone for the application’, ‘Europe/London’, ‘regional’, 1, ‘Timezone’, ‘’, 20, ‘Europe/London’, 1, ‘string’), (18, ‘mail_to’, ‘mail@yoursite.com’, ‘email’, ‘Errors will be mailed here’, NULL, ‘maintenance’, 1, ‘Admin email address’, ‘’, 30, ‘mail@yoursite.com’, 1, ‘string’), (19, ‘mail_from’, ‘mail@yoursite.com’, ‘email’, ‘Mail will be sent from this address’, NULL, ‘maintenance’, 1, ‘Sending email address’, ‘’, 40, ‘mail@yoursite.com’, 1, ‘string’), (23, ‘jpg_length’, ‘10’, ‘number’, ‘Default length for JPG files (in seconds)’, NULL, ‘content’, 1, ‘Default Image Duration’, ‘’, 30, ‘10’, 1, ‘int’), (26, ‘ppt_length’, ‘10’, ‘number’, ‘Default length for PPT files (in seconds)’, NULL, ‘content’, 1, ‘Default PowerPoint Duration’, ‘’, 10, ‘10’, 1, ‘int’), (29, ‘swf_length’, ‘10’, ‘number’, ‘Default length for SWF files’, NULL, ‘content’, 1, ‘Default Flash Duration’, ‘’, 20, ‘10’, 1, ‘int’), (30, ‘audit’, ‘error’, ‘dropdown’, ‘Set the level of logging the CMS should record. In production systems “error” is recommended.’, ‘error|info|audit|off’, ‘troubleshooting’, 1, ‘Log Level’, ‘’, 20, ‘error’, 1, ‘word’), (33, ‘LIBRARY_LOCATION’, ‘’, ‘text’, ‘The fully qualified path to the CMS library location.’, NULL, ‘configuration’, 1, ‘Library Location’, ‘required’, 10, ‘’, 1, ‘string’), (34, ‘SERVER_KEY’, ‘’, ‘text’, NULL, NULL, ‘configuration’, 1, ‘CMS Secret Key’, ‘required’, 20, ‘’, 1, ‘string’), (35, ‘HELP_BASE’, ‘Xibo User Manual | Xibo Digital Signage’, ‘text’, NULL, NULL, ‘general’, 1, ‘Location of the Manual’, ‘required’, 10, ‘Xibo Digital Signage’, 1, ‘string’), (36, ‘PHONE_HOME’, ‘On’, ‘dropdown’, ‘Should the server send anonymous statistics back to the Xibo project?’, ‘On|Off’, ‘general’, 1, ‘Allow usage tracking?’, ‘’, 10, ‘On’, 1, ‘word’), (37, ‘PHONE_HOME_KEY’, ‘’, ‘text’, ‘Key used to distinguish each Xibo instance. This is generated randomly based on the time you first installed Xibo, and is completely untraceable.’, NULL, ‘general’, 0, ‘Phone home key’, ‘’, 20, ‘’, 0, ‘string’), (38, ‘PHONE_HOME_URL’, ‘http://www.xibo.org.uk/stats/track.php’, ‘text’, ‘The URL to connect to to PHONE_HOME (if enabled)’, NULL, ‘network’, 0, ‘Phone home URL’, ‘’, 60, ‘http://www.xibo.org.uk/stats/track.php’, 0, ‘string’), (39, ‘PHONE_HOME_DATE’, ‘0’, ‘text’, ‘The last time we PHONED_HOME in seconds since the epoch’, NULL, ‘general’, 0, ‘Phone home time’, ‘’, 30, ‘0’, 0, ‘int’), (40, ‘SERVER_MODE’, ‘Production’, ‘dropdown’, ‘This should only be set if you want to display the maximum allowed error messaging through the user interface.
Useful for capturing critical php errors and environment issues.’, ‘Production|Test’, ‘troubleshooting’, 1, ‘Server Mode’, ‘’, 30, ‘Production’, 1, ‘word’), (41, ‘MAINTENANCE_ENABLED’, ‘Off’, ‘dropdown’, ‘Allow the maintenance script to run if it is called?’, ‘Protected|On|Off’, ‘maintenance’, 1, ‘Enable Maintenance?’, ‘’, 10, ‘Off’, 1, ‘word’), (42, ‘MAINTENANCE_EMAIL_ALERTS’, ‘On’, ‘dropdown’, ‘Global switch for email alerts to be sent’, ‘On|Off’, ‘maintenance’, 1, ‘Enable Email Alerts?’, ‘’, 20, ‘On’, 1, ‘word’), (43, ‘MAINTENANCE_KEY’, ‘changeme’, ‘text’, ‘String appended to the maintenance script to prevent malicious calls to the script.’, NULL, ‘maintenance’, 1, ‘Maintenance Key’, ‘’, 50, ‘changeme’, 1, ‘string’), (44, ‘MAINTENANCE_LOG_MAXAGE’, ‘30’, ‘number’, ‘Maximum age for log entries. Set to 0 to keep logs indefinitely.’, NULL, ‘maintenance’, 1, ‘Max Log Age’, ‘’, 60, ‘30’, 1, ‘int’), (45, ‘MAINTENANCE_STAT_MAXAGE’, ‘30’, ‘number’, ‘Maximum age for statistics entries. Set to 0 to keep statistics indefinitely.’, NULL, ‘maintenance’, 1, ‘Max Statistics Age’, ‘’, 70, ‘30’, 1, ‘int’), (46, ‘MAINTENANCE_ALERT_TOUT’, ‘12’, ‘number’, ‘How long in minutes after the last time a client connects should we send an alert? Can be overridden on a per client basis.’, NULL, ‘maintenance’, 1, ‘Max Display Timeout’, ‘’, 80, ‘12’, 1, ‘int’), (47, ‘SHOW_DISPLAY_AS_VNCLINK’, ‘’, ‘text’, ‘Turn the display name in display management into a VNC link using the IP address last collected. The %s is replaced with the IP address. Leave blank to disable.’, NULL, ‘displays’, 1, ‘Display a VNC Link?’, ‘’, 30, ‘’, 1, ‘string’), (48, ‘SHOW_DISPLAY_AS_VNC_TGT’, ‘_top’, ‘text’, ‘If the display name is shown as a link in display management, what target should the link have? Set _top to open the link in the same window or _blank to open in a new window.’, NULL, ‘displays’, 1, ‘Open VNC Link in new window?’, ‘’, 40, ‘_top’, 1, ‘string’), (49, ‘MAINTENANCE_ALWAYS_ALERT’, ‘Off’, ‘dropdown’, ‘Should Xibo send an email if a display is in an error state every time the maintenance script runs?’, ‘On|Off’, ‘maintenance’, 1, ‘Send repeat Display Timeouts’, ‘’, 80, ‘Off’, 1, ‘word’), (50, ‘SCHEDULE_LOOKAHEAD’, ‘On’, ‘dropdown’, ‘Should Xibo send future schedule information to clients?’, ‘On|Off’, ‘general’, 0, ‘Send Schedule in advance?’, ‘’, 40, ‘On’, 1, ‘word’), (51, ‘REQUIRED_FILES_LOOKAHEAD’, ‘172800’, ‘number’, ‘How many seconds in to the future should the calls to RequiredFiles look?’, NULL, ‘general’, 1, ‘Send files in advance?’, ‘’, 50, ‘172800’, 1, ‘int’), (52, ‘REGION_OPTIONS_COLOURING’, ‘Media Colouring’, ‘dropdown’, NULL, ‘Media Colouring|Permissions Colouring’, ‘permissions’, 1, ‘How to colour Media on the Region Timeline’, ‘’, 30, ‘Media Colouring’, 1, ‘string’), (53, ‘LAYOUT_COPY_MEDIA_CHECKB’, ‘Unchecked’, ‘dropdown’, ‘Default the checkbox for making duplicates of media when copying layouts’, ‘Checked|Unchecked’, ‘defaults’, 1, ‘Default copy media when copying a layout?’, ‘’, 20, ‘Unchecked’, 1, ‘word’), (54, ‘MAX_LICENSED_DISPLAYS’, ‘0’, ‘number’, ‘The maximum number of licensed clients for this server installation. 0 = unlimited’, NULL, ‘displays’, 0, ‘Number of display slots’, ‘’, 50, ‘0’, 0, ‘int’), (55, ‘LIBRARY_MEDIA_UPDATEINALL_CHECKB’, ‘Unchecked’, ‘dropdown’, ‘Default the checkbox for updating media on all layouts when editing in the library’, ‘Checked|Unchecked’, ‘defaults’, 1, ‘Default update media in all layouts’, ‘’, 10, ‘Unchecked’, 1, ‘word’), (56, ‘USER_PASSWORD_POLICY’, ‘’, ‘text’, ‘Regular Expression for password complexity, leave blank for no policy.’, ‘’, ‘users’, 1, ‘Password Policy Regular Expression’, ‘’, 20, ‘’, 1, ‘string’), (57, ‘USER_PASSWORD_ERROR’, ‘’, ‘text’, ‘A text description of this password policy. Will be show to users when their password does not meet the required policy’, ‘’, ‘users’, 1, ‘Description of Password Policy’, ‘’, 30, ‘’, 1, ‘string’), (58, ‘MODULE_CONFIG_LOCKED_CHECKB’, ‘Unchecked’, ‘dropdown’, ‘Is the module config locked? Useful for Service providers.’, ‘Checked|Unchecked’, ‘defaults’, 0, ‘Lock Module Config’, ‘’, 30, ‘Unchecked’, 0, ‘word’), (59, ‘LIBRARY_SIZE_LIMIT_KB’, ‘0’, ‘number’, ‘The Limit for the Library Size in KB’, NULL, ‘network’, 0, ‘Library Size Limit’, ‘’, 50, ‘0’, 1, ‘int’), (60, ‘MONTHLY_XMDS_TRANSFER_LIMIT_KB’, ‘0’, ‘number’, ‘XMDS Transfer Limit in KB/month’, NULL, ‘network’, 0, ‘Monthly bandwidth Limit’, ‘’, 40, ‘0’, 1, ‘int’), (61, ‘DEFAULT_LANGUAGE’, ‘en_GB’, ‘text’, ‘The default language to use’, NULL, ‘regional’, 1, ‘Default Language’, ‘’, 10, ‘en_GB’, 1, ‘string’), (62, ‘TRANSITION_CONFIG_LOCKED_CHECKB’, ‘Unchecked’, ‘dropdown’, ‘Is the Transition config locked?’, ‘Checked|Unchecked’, ‘defaults’, 0, ‘Allow modifications to the transition configuration?’, ‘’, 40, ‘Unchecked’, 1, ‘word’), (63, ‘GLOBAL_THEME_NAME’, ‘default’, ‘text’, ‘The Theme to apply to all pages by default’, NULL, ‘configuration’, 1, ‘CMS Theme’, ‘’, 30, ‘default’, 1, ‘word’), (64, ‘DEFAULT_LAT’, ‘51.504’, ‘number’, ‘The Latitude to apply for any Geo aware Previews’, NULL, ‘displays’, 1, ‘Default Latitude’, ‘’, 10, ‘51.504’, 1, ‘double’), (65, ‘DEFAULT_LONG’, ‘-0.104’, ‘number’, ‘The Longitude to apply for any Geo aware Previews’, NULL, ‘displays’, 1, ‘Default Longitude’, ‘’, 20, ‘-0.104’, 1, ‘double’), (66, ‘SCHEDULE_WITH_VIEW_PERMISSION’, ‘No’, ‘dropdown’, ‘Should users with View permissions on displays be allowed to schedule to them?’, ‘Yes|No’, ‘permissions’, 1, ‘Schedule with view permissions?’, ‘’, 40, ‘No’, 1, ‘word’), (67, ‘SETTING_IMPORT_ENABLED’, ‘1’, ‘checkbox’, NULL, NULL, ‘general’, 1, ‘Allow Import?’, ‘’, 80, ‘1’, 1, ‘checkbox’), (68, ‘SETTING_LIBRARY_TIDY_ENABLED’, ‘1’, ‘checkbox’, NULL, NULL, ‘general’, 1, ‘Enable Library Tidy?’, ‘’, 90, ‘1’, 1, ‘checkbox’), (69, ‘SENDFILE_MODE’, ‘Off’, ‘dropdown’, ‘When a user downloads a file from the library or previews a layout, should we attempt to use Apache X-Sendfile, Nginx X-Accel, or PHP (Off) to return the file from the library?’, ‘Off|Apache|Nginx’, ‘general’, 1, ‘File download mode’, ‘’, 60, ‘Off’, 1, ‘word’), (70, ‘EMBEDDED_STATUS_WIDGET’, ‘’, ‘text’, ‘HTML to embed in an iframe on the Status Dashboard’, NULL, ‘general’, 0, ‘Status Dashboard Widget’, ‘’, 70, ‘’, 1, ‘htmlstring’), (71, ‘PROXY_HOST’, ‘’, ‘text’, ‘The Proxy URL’, NULL, ‘network’, 1, ‘Proxy URL’, ‘’, 10, ‘’, 1, ‘string’), (72, ‘PROXY_PORT’, ‘0’, ‘number’, ‘The Proxy Port’, NULL, ‘network’, 1, ‘Proxy Port’, ‘’, 20, ‘0’, 1, ‘int’), (73, ‘PROXY_AUTH’, ‘’, ‘text’, ‘The Authentication information for this proxy. username:password’, NULL, ‘network’, 1, ‘Proxy Credentials’, ‘’, 30, ‘’, 1, ‘string’), (74, ‘DATE_FORMAT’, ‘Y-m-d H:i’, ‘text’, ‘The Date Format to use when displaying dates in the CMS.’, NULL , ‘regional’, ‘1’, ‘Date Format’, ‘required’, 30, ‘Y-m-d’, ‘1’, ‘string’), (75, ‘DETECT_LANGUAGE’, ‘1’, ‘checkbox’, ‘Detect the browser language?’, NULL , ‘regional’, ‘1’, ‘Detect Language’, ‘’, 40, ‘1’, 1, ‘checkbox’), (76, ‘DEFAULTS_IMPORTED’, ‘0’, ‘text’, ‘Has the default layout been imported?’, NULL, ‘general’, 0, ‘Defaults Imported?’, ‘required’, 100, ‘0’, 0, ‘checkbox’), (77, ‘FORCE_HTTPS’, ‘0’, ‘checkbox’, ‘Force the portal into HTTPS?’, NULL, ‘network’, 1, ‘Force HTTPS?’, ‘’, 70, ‘0’, 1, ‘checkbox’), (78, ‘ISSUE_STS’, ‘0’, ‘checkbox’, ‘Add STS to the response headers? Make sure you fully understand STS before turning it on as it will prevent access via HTTP after the first successful HTTPS connection.’, NULL, ‘network’, 1, ‘Enable STS?’, ‘’, 80, ‘0’, 1, ‘checkbox’), (79, ‘STS_TTL’, ‘600’, ‘text’, ‘The Time to Live (maxage) of the STS header expressed in minutes.’, NULL, ‘network’, 1, ‘STS Time out’, ‘’, 90, ‘600’, 1, ‘int’), (80, ‘MAINTENANCE_ALERTS_FOR_VIEW_USERS’, ‘0’, ‘checkbox’, ‘Email maintenance alerts for users with view permissions to effected Displays.’, NULL, ‘displays’, 1, ‘Maintenance Alerts for Users’, ‘’, 60, ‘0’, 1, ‘checkbox’), (81, ‘CALENDAR_TYPE’, ‘Gregorian’, ‘dropdown’, ‘Which Calendar Type should the CMS use?’, ‘Gregorian|Jalali’, ‘regional’, 1, ‘Calendar Type’, ‘’, 50, ‘Gregorian’, 1, ‘string’), (82, ‘DASHBOARD_LATEST_NEWS_ENABLED’, ‘0’, ‘checkbox’, ‘Should the Dashboard show latest news? The address is provided by the theme.’, ‘’, ‘general’, 1, ‘Enable Latest News?’, ‘’, 110, ‘1’, 1, ‘checkbox’), (83, ‘LIBRARY_MEDIA_DELETEOLDVER_CHECKB’,‘Unchecked’,‘dropdown’,‘Default the checkbox for Deleting Old Version of media when a new file is being uploaded to the library.’,‘Checked|Unchecked’,‘defaults’,1,‘Default for “Delete old version of Media” checkbox. Showen when Editing Library Media.’,‘dropdown’,‘’,50,‘Unchecked’,1), (84, ‘USE_INTL_DATEFORMAT’, ‘0’, ‘checkbox’, ‘Should dates be internationalised where possible.’, ‘’, ‘regional’, 1, ‘Show international dates?’, ‘’, 60, ‘0’, 1, ‘checkbox’)].

Does somebody know what should I do? I have read a lot of posts but anything works for me, and my boss is pushing me a lot.

Thanks in advanced!!

The fix for this is explained here: General error: 1366

It only seems to effect some users.

1 Like

Thank you very much!! I could install it successfully! :grinning:

1 Like