CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • this is what I get
Pages: [1]

Author Topic: this is what I get  (Read 2482 times)

maymoonshine

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
this is what I get
December 27, 2010, 11:06:15 am
Installed civicRM on another site since my first one did not work. Thought i'd try it on a new one. This is the error it gave me in both - whether I tried the upgrade on the first or a brand new install on the second:
___

Cannot execute CREATE TABLE civicrm_option_value ( id int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option ID', option_group_id int unsigned NOT NULL COMMENT 'Group which this option belongs to.', label varchar(255) NOT NULL COMMENT 'Option string as displayed to users - e.g. the label in an HTML OPTION tag.', value varchar(512) NOT NULL COMMENT 'The actual value stored (as a foreign key) in the data record. Functions which need lookup option_value.title should use civicrm_option_value.option_group_id plus civicrm_option_value.value as the key.', name varchar(255) COMMENT 'Stores a fixed (non-translated) name for this option value. Lookup functions should use the name as the key for the option value row.', grouping varchar(255) COMMENT 'Use to sort and/or set display properties for sub-set(s) of options within an option group. EXAMPLE: Use for college_interest field, to differentiate partners from non-partners.', filter int unsigned COMMENT 'Bitwise logic can be used to create subsets of options within an option_group for different uses.', is_default tinyint DEFAULT 0 COMMENT 'Is this the default option for the group?', weight int unsigned NOT NULL COMMENT 'Controls display sort order.', description text COMMENT 'Optional description.', is_optgroup tinyint DEFAULT 0 COMMENT 'Is this row simply a display header? Expected usage is to render these as OPTGROUP tags within a SELECT field list of options?', is_reserved tinyint DEFAULT 0 COMMENT 'Is this a predefined system object?', is_active tinyint DEFAULT 1 COMMENT 'Is this option active?', component_id int unsigned COMMENT 'Component that this option value belongs/caters to.', domain_id int unsigned COMMENT 'Which Domain is this option value for', visibility_id int unsigned DEFAULT NULL , PRIMARY KEY ( id ) , INDEX index_option_group_id_value( value , option_group_id ) , INDEX index_option_group_id_name( option_group_id , name ) , CONSTRAINT FK_civicrm_option_value_option_group_id FOREIGN KEY (option_group_id) REFERENCES civicrm_option_group(id) ON DELETE CASCADE, CONSTRAINT FK_civicrm_option_value_component_id FOREIGN KEY (component_id) REFERENCES civicrm_component(id) , CONSTRAINT FK_civicrm_option_value_domain_id FOREIGN KEY (domain_id) REFERENCES civicrm_domain(id) ) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci: DB Error: unknown error
__

Just an FYI... in the first, it was an upgrade so I uninstalled from Joomla then went to all the database and manually removed all civicrm tables. When I tried to reinstall for the upgrade, it gave me the error above.
In the new site, with a different domain and everything, I installed a brand new copy of civicrm and still got this same error.

Any ideas?
Thanks

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: this is what I get
December 27, 2010, 11:38:38 am
Can you post your precise versions of Joomla, CiviCRM, MySQL and PHP? Your error appears to be DB Error: unknown error which is a bit difficult to pinpoint, so the more details, the better.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

maymoonshine

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
Re: this is what I get
December 30, 2010, 12:17:24 pm
Thanks for the reply. Here it is
Joomla: 1.5.22
CiviCRM: the newest 3.3.1 [that's when I started having problems. With the one before this version I was fine]
MySQL: 4.1.22
PHP: 3.3.8.1

I know the database is Mysiam and not innodb but in the earlier version it was fine and worked wonderfully. It is only when I removed it and tried to update that i got the problem. I therefore deleted the entire thing - with all related files and folders and removed civicrm completely from the db and tried to reinstall the 3.3.1 and it gave me exact same error.

Any ideas?
Thanks

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: this is what I get
December 30, 2010, 12:21:44 pm
Please see http://civicrm.org/aboutcivicrm where it says

# PHP 5.2.1+ (PHP 5.3 is supported starting with CiviCRM 3.2)
# MySQL 5.0.x+ with InnoDB support

under "Technical Requirements." Your versions of PHP and MySQL are extremely old and if you are paying for hosting and getting those versions, I am shocked. No responsible host should be using such outdated technology.

Anyhow, that is your problem--your versions of PHP and MySQL are not compatible with CiviCRM.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

maymoonshine

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
Re: this is what I get
December 30, 2010, 12:32:11 pm
Ah!! that's what!! but it worked on civicrm 3.2 I reinstalled 3.2 just now and it is working wonderfully!  :'(

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: this is what I get
December 30, 2010, 12:35:33 pm
I can not say for sure because I have no experience using those versions of PHP and MySQL with modern CiviCRM but the potential exists that you may run into a snag one day.

However if the functions you have tested thus far work, then they should continue to work going forward.

Obviously, no other upgrades will be feasible however.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

maymoonshine

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
Re: this is what I get
December 30, 2010, 12:42:09 pm
Yup. Thanks a million. The hosting co definitely needs to upgrade anyways if it is outdated and yes, for sure for future updates of civicrm.
What a drag!!
Thanks a billion for your responses.
 ;D

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: this is what I get
January 10, 2011, 05:53:14 pm
you will eventually run into issues with v3.2 and those versions of php/mysql
most of the functionality may work fine. but you'll have issues with some of the ajax stuff as that version of php doesn't have native json support
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

barry

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.2
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.0.90
  • PHP version: 5.2.14
Re: this is what I get
February 04, 2011, 12:45:34 pm
I have the same error, but I think we're missing the real problem here.

If I exit the update and then delete to reinstall, the second install appears to work correctly, but I get an out-of-memory error.  After I uninstalled and deleted the civiCRM tables in the database, I ran into the same error mentioned in this post again.

When I look at the mySQL tables, the civicrm_option_value table is MISSING... so I tried to paste the SQL into myPHPAdmin to manually create the table.  It returned Error #1071, (Specified key was too long; max key length is 1000 bytes).  As it turns out, the key length with utf8 is causing some excessive key lengths. 

So, I think this clarifies the problem but doesn't really provide an answer since the install obviously works for many.

Barry

barry

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.2
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.0.90
  • PHP version: 5.2.14
Re: this is what I get
February 04, 2011, 05:15:26 pm
And some more research shows that if you remove the following from that CREATE TABLE SQL, you can create the table.

"INDEX index_option_group_id_value( value , option_group_id ) , INDEX index_option_group_id_name( option_group_id , name ) , "

This gives credibility to the 1000-character max in the INDEX that mySQL limits. 

The problem with forcing this after a botched install is that the rest of the tables aren't created.  If you run the install script with the tables still in mySQL, the script assumes an UPDATE and doesn't necessarily fix all the missing tables.

If you run the initial install on a clean server and the 1000-character limits stops the script, you can force the SQL via the cpanel then run install again without dropping tables in mySQL and you'll think you have a good install.  When you try to get to CiviCRM, you will get "Unrecoverable error" and see the tables that are missing.

Barry

barry

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.2
  • CMS version: Joomla 1.5.22
  • MySQL version: 5.0.90
  • PHP version: 5.2.14
Re: this is what I get
February 05, 2011, 12:41:54 pm
Yep... I missed something.

I thought my server had InnoDB enabled, but the database engine defaulted to MyISAM even though the SQL was asking for a different engine.  Once I enabled InnoDB, the install went perfectly and have no issues.

Barry

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • this is what I get

This forum was archived on 2017-11-26.