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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Newby question: Install from URL fails, get error about invalid archive??
Pages: [1]

Author Topic: Newby question: Install from URL fails, get error about invalid archive??  (Read 2571 times)

caspersgrin

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: 7.1.5
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Newby question: Install from URL fails, get error about invalid archive??
September 03, 2012, 09:41:25 am
Hi,

I'm trying to install CiviCRM on my local version of Drupal (7.1.5) and I went to Drupal's module tab -> install new module -> install from URL.  There I entered sourceforge URL: sourceforge.net/projects/civicrm/files/civicrm-stable/4.2.0/civicrm-4.2.0-drupal.tar.gz/download, and got the following error:

Cannot extract "temporary://update-cache-570000a4/download", not a valid archive.

What does it mean?  I have no idea what or where temporary://update-cache-570000a4/download is.

Thanks,
Rob

planetwebb

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 2
  • CiviCRM version: 4.5.8
  • CMS version: Joomla 2.5.28 / Drupal 7.34
  • MySQL version: 5.5.34-cll-lve
  • PHP version: 5.3.22
Re: Newby question: Install from URL fails, get error about invalid archive??
September 03, 2012, 09:45:04 am
Hi Rob,

Just remove the /download from the url, then it should pull.

Keith

caspersgrin

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: 7.1.5
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Newby question: Install from URL fails, get error about invalid archive??
September 03, 2012, 11:18:35 am
That did the trick, thanks.

But a new confusion has reared it's ugly head:I went to drupal/sites/all/modules/civicrm/install/index.php as per the installation instructions and get this:

Warning: require_once(WP_PLUGIN_DIR/civicrm/civicrm//CRM/Core/ClassLoader.php) [function.require-once]: failed to open stream: No such file or directory in /Library/WebServer/Documents/drupal/sites/all/modules/civicrm/install/index.php on line 76

Fatal error: require_once() [function.require]: Failed opening required 'WP_PLUGIN_DIR/civicrm/civicrm//CRM/Core/ClassLoader.php' (include_path='.::WP_PLUGIN_DIR/civicrm/civicrm/') in /Library/WebServer/Documents/drupal/sites/all/modules/civicrm/install/index.php on line 76

and from index.php:

global $crmPath;
global $installDirPath;
global $installURLPath;
if ($installType == 'drupal') {
  $crmPath = dirname(dirname($_SERVER['SCRIPT_FILENAME']));
  $installDirPath = $installURLPath = '';
}
elseif ($installType == 'wordpress') {
  $crmPath = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR;
  $installDirPath = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR . 'install' . DIRECTORY_SEPARATOR;

  $installURLPath = WP_PLUGIN_URL . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR . 'civicrm' . DIRECTORY_SEPARATOR . 'install' . DIRECTORY_SEPARATOR;
}

set_include_path(get_include_path() . PATH_SEPARATOR . $crmPath);

require_once $crmPath . '/CRM/Core/ClassLoader.php';

It appears that the installType is being set to wordpress rather than drupal.  How can that be?

~ Rob

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Newby question: Install from URL fails, get error about invalid archive??
September 03, 2012, 11:52:22 am
I don't know but one step to debug would be to manually get the archive from sourceforge and replace the files in sites/all/modules/civicrm to confirm that they are correct. Then try again.

Also, is this OS/X? With Apache?
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.

caspersgrin

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: 7.1.5
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Newby question: Install from URL fails, get error about invalid archive??
September 03, 2012, 04:45:41 pm
It was a stupid user problem.  I'm evaluating CiviCRM and determining the best environment, WordPress or Drupal.  I probably wouldn't even both with WordPress except for the fact that our website is driven by WordPress.  Well, I installed the WordPress version first and then Drupal.  Since I hadn't killed the browser in between, I thought that might be the problem.  Killed Firefox and opened it back up and the install went fine.  Argh.  I make many unfavorable comments about stupid users and so I especially hate it when the stupid user is me.

Oh, and in answer to the question, yes, it's Mac OS/X and apache.

~ Rob

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Newby question: Install from URL fails, get error about invalid archive??

This forum was archived on 2017-11-26.