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) »
  • Install Fail Joomla 1.5
Pages: [1]

Author Topic: Install Fail Joomla 1.5  (Read 2353 times)

nptech

  • Guest
Install Fail Joomla 1.5
August 10, 2008, 11:40:58 am

Hi,

I'm receiving a very peculiar error installing the latest alpha build.  A bit about my server first:

PHP Version: 5.25
Joomla Version: Joomla! 1.5.3 Production/Stable
Mysql version: 5.0.51a

After unpacking to the directory, per instructions on http://wiki.civicrm.org/confluence/display/CRMDOC/Install+2.1+for+Joomla, I hit an error screen outside Joomla with the following text:

Code: [Select]
Cannot execute CREATE TABLE civicrm_cache ( id int unsigned NOT NULL AUTO_INCREMENT , group_name varchar(255) NOT NULL COMMENT 'group name for cache element, useful in cleaning cache elements', path varchar(255) COMMENT 'Unique path name for cache element', data text COMMENT 'data associated with this path', component_id int unsigned COMMENT 'Component that this menu item belongs to', created_date datetime COMMENT 'When was the cache item created', expired_date datetime COMMENT 'When should the cache item expire' , PRIMARY KEY ( id ) , UNIQUE INDEX UI_group_path( group_name , path ) , CONSTRAINT FK_civicrm_cache_component_id FOREIGN KEY (component_id) REFERENCES civicrm_component(id) ) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci: DB Error: unknown error
I ran the create table query directly in PhpMyAdmin to get an idea of the error code from MySql:

Code: [Select]
Error

SQL query:

CREATE TABLE civicrm_cache(
id int unsigned NOT NULL AUTO_INCREMENT ,
group_name varchar( 255 ) NOT NULL COMMENT 'group name for cache element, useful in cleaning cache elements',
path varchar( 255 ) COMMENT 'Unique path name for cache element',
DATA text COMMENT 'data associated with this path',
component_id int unsigned COMMENT 'Component that this menu item belongs to',
created_date datetime COMMENT 'When was the cache item created',
expired_date datetime COMMENT 'When should the cache item expire',
PRIMARY KEY ( id ) ,
UNIQUE INDEX UI_group_path( group_name, path ) ,
CONSTRAINT FK_civicrm_cache_component_id FOREIGN KEY ( component_id ) REFERENCES civicrm_component( id )
) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci

MySQL said: Documentation
#1071 - Specified key was too long; max key length is 1000 bytes

When I take out this line, the query runs just fine:

Code: [Select]
UNIQUE INDEX UI_group_path( group_name , path )
This leads me to believe that the utf8 limitation. I recommend changing the table creation script to (per: http://bugs.mysql.com/bug.php?id=6604):

Code: [Select]
UNIQUE INDEX UI_group_path( group_name(100), path(100) ) ,
This will index the first 100 'characters', which may be a limitation on the path, but should suffice on the group name.



Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Install Fail Joomla 1.5
August 10, 2008, 02:05:24 pm

so not sure why it works for all our installs (developer) but fails for you?

any thoughts on that?

changing the index is a wee bit more difficult, since the schema is auto generated etc. i'd like to avoid going down that route as possible. I'm also using 5.0.51a on macosx 10.5

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

aspagarino

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 10
  • San Diego Joomla
    • California Center for Sustainable Energy
  • CiviCRM version: CiviCRM 4.3
  • CMS version: Drupal 7
Re: Install Fail Joomla 1.5
August 22, 2008, 10:50:26 am
I got the exact same problem...

My environment is:
 
PHP Version 5.2.6
Joomla Version: Joomla! 1.5.6 Production/Stable
Mysql version: 5.0.51a-community

I am on a shared host environment nptech's sql solution eliminated the error.

After creating the table with phpMyAdmin I went back to the administrator Components>>CivicCRM>>Home and I got this error:
Code: [Select]
Warning: include_once(civicrm.settings.php) [function.include-once]: failed to open stream: No such file or directory in /home/xxxx/public_html/administrator/components/com_civicrm/admin.civicrm.php on line 14

Warning: include_once() [function.include]: Failed opening 'civicrm.settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/administrator/components/com_civicrm/admin.civicrm.php on line 14

Warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxxx/public_html/administrator/components/com_civicrm/admin.civicrm.php on line 18

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/administrator/components/com_civicrm/admin.civicrm.php on line 18

I searched the forum and it might be an installation error... any ideas??
« Last Edit: August 22, 2008, 12:46:31 pm by aspagarino »
Andres

Open Source is Green

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Install Fail Joomla 1.5
December 03, 2008, 10:39:26 am
Same problem on ubuntu 8.10 fresh install on the svn trunk.



-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Install Fail Joomla 1.5

This forum was archived on 2017-11-26.