English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

Install of Partial User Sharing 1.1.3
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Install of Partial User Sharing 1.1.3
#9834
Install of Partial User Sharing 1.1.3 12 Years ago Karma: 1
We are using Joomla 2.5.4.

I tried to install Partial User Sharing V1.1.3 and got following SQL error during installation.
It's a plain Joomla, we created one Site clone with Miltisites and then I wanted to install PUS.

Do I have to remove kreated sites first???
SymLink is not working as we are using Plesk and I could not figoure out how to activate, but this should not affekt the SQL.

Code:

        JInstaller: :Install: SQL-Fehler DB-Funktion mit Fehlercode 1064 fehlgeschlagen!
        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 'TYPE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8' at line 17 SQL=CREATE TABLE IF NOT EXISTS `main_multisites_users` ( `id` int(11)  NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL COMMENT 'reference to the joomla user id', `site_id` varchar(100) NOT NULL COMMENT 'reference to the MULTISITES_ID that created the record', `home` tinyint(1)  NOT NULL default '0' COMMENT 'Default or home websites where the user were registered', `params` text NULL COMMENT 'Additional parameters.', `checked_out` tinyint(1) NOT NULL default '0', `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00: 00:00', `created_dt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Creation date/time', `created_by` int(10) unsigned NULL COMMENT 'reference to the user id who created the record', `modified_dt` datetime NOT NULL DEFAULT '0000-00-00 00: 00:00' COMMENT 'Date/Time of the modification', `modified_by` int(10) unsigned NULL COMMENT 'reference to the user id who modified the record', PRIMARY KEY (`id`), KEY `idx_usersite` (`user_id`, `site_id`) )  TYPE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
        SQL =

        CREATE TABLE IF NOT EXISTS `#__multisites_users` (
           `id`                 int(11)           NOT NULL AUTO_INCREMENT,
           `user_id`            int(10) unsigned  NOT NULL                                  COMMENT 'reference to the joomla user id',
           `site_id`            varchar(100)      NOT NULL                                  COMMENT 'reference to the MULTISITES_ID that created the record',
           `home`               tinyint(1)        NOT NULL default '0'                      COMMENT 'Default or home websites where the user were registered',
           `params`             text              NULL                                      COMMENT 'Additional parameters.',
           
           `checked_out`        tinyint(1)        NOT NULL default '0',
           `checked_out_time`   datetime          NOT NULL DEFAULT '0000-00-00 00:00:00',
           `created_dt`         datetime          NOT NULL DEFAULT '0000-00-00 00:00:00'    COMMENT 'Creation date/time',
           `created_by`         int(10) unsigned  NULL                                      COMMENT 'reference to the user id who created the record',
           `modified_dt`        datetime          NOT NULL DEFAULT '0000-00-00 00:00:00'    COMMENT 'Date/Time of the modification',
           `modified_by`        int(10) unsigned  NULL                                      COMMENT 'reference to the user id who modified the record',
           
           PRIMARY KEY (`id`),
           KEY     `idx_usersite` (`user_id`, `site_id`)
        ) TYPE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;

        Komponenteninstallation: SQL-Dateifehler DB-Funktion mit Fehlercode 1064 fehlgeschlagen!
        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 'TYPE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8' at line 17 SQL=CREATE TABLE IF NOT EXISTS `main_multisites_users` ( `id` int(11)  NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL COMMENT 'reference to the joomla user id', `site_id` varchar(100) NOT NULL COMMENT 'reference to the MULTISITES_ID that created the record', `home` tinyint(1)  NOT NULL default '0' COMMENT 'Default or home websites where the user were registered', `params` text NULL COMMENT 'Additional parameters.', `checked_out` tinyint(1) NOT NULL default '0', `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00: 00:00', `created_dt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Creation date/time', `created_by` int(10) unsigned NULL COMMENT 'reference to the user id who created the record', `modified_dt` datetime NOT NULL DEFAULT '0000-00-00 00: 00:00' COMMENT 'Date/Time of the modification', `modified_by` int(10) unsigned NULL COMMENT 'reference to the user id who modified the record', PRIMARY KEY (`id`), KEY `idx_usersite` (`user_id`, `site_id`) )  TYPE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
        SQL =

        CREATE TABLE IF NOT EXISTS `#__multisites_users` (
           `id`                 int(11)           NOT NULL AUTO_INCREMENT,
           `user_id`            int(10) unsigned  NOT NULL                                  COMMENT 'reference to the joomla user id',
           `site_id`            varchar(100)      NOT NULL                                  COMMENT 'reference to the MULTISITES_ID that created the record',
           `home`               tinyint(1)        NOT NULL default '0'                      COMMENT 'Default or home websites where the user were registered',
           `params`             text              NULL                                      COMMENT 'Additional parameters.',
           
           `checked_out`        tinyint(1)        NOT NULL default '0',
           `checked_out_time`   datetime          NOT NULL DEFAULT '0000-00-00 00:00:00',
           `created_dt`         datetime          NOT NULL DEFAULT '0000-00-00 00:00:00'    COMMENT 'Creation date/time',
           `created_by`         int(10) unsigned  NULL                                      COMMENT 'reference to the user id who created the record',
           `modified_dt`        datetime          NOT NULL DEFAULT '0000-00-00 00:00:00'    COMMENT 'Date/Time of the modification',
           `modified_by`        int(10) unsigned  NULL                                      COMMENT 'reference to the user id who modified the record',
           
           PRIMARY KEY (`id`),
           KEY     `idx_usersite` (`user_id`, `site_id`)
        ) TYPE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;




Thanks for Help!
SeeNet
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9849
Re: Install of Partial User Sharing 1.1.3 12 Years ago Karma: 54
Which version of MySQL do you use.

Do you use a version greater than 5.1 ?

Do you use a MySQL 5.5 ?
If yes, they have changed the MySQL statement to create the table.

) TYPE=MyISAM
should be replaced by
) ENGINE=MyISAM

The word "type" must be replaced by "engine".

We will create a new package to reflect this new MySQL 5.5 syntax and no more support the MySQL 4.x.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2012/04/10 18:21 By edwin2win.
The administrator has disabled public write access.
 
#9864
Re:Install of Partial User Sharing 1.1.3 12 Years ago Karma: 1
Hi
yes we are using MySQL greater then 5.1.

In which file are the SQL statements to edit?
Or when is the new package awaylable?

Tanks
SeeNet
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9873
Re:Install of Partial User Sharing 1.1.3 12 Years ago Karma: 54
If you are using MySQL 5.1 this should work.

Just copy/past the SQL statement in a PHPMyAdmin and execute it to try identifying the reason. On MYSQL 5.1, the syntax is correct but on MySQL 5.5 or higher, the syntax has changed.

As I told you, try replacing the "type" by "engine" but type is accepted under MySQL 5.1
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla