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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Error when upgrading from 2.1 to 2.2: Could not copy PHP install file
Pages: [1]

Author Topic: Error when upgrading from 2.1 to 2.2: Could not copy PHP install file  (Read 2629 times)

jgowans

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 3
    • CiviCRM
Error when upgrading from 2.1 to 2.2: Could not copy PHP install file
March 29, 2009, 10:20:43 am
Upgrading from 2.1.2 to 2.2 on Joomla 1.5.10 and when I click install from directory, this is what I get:

        * JInstaller::install: File 'JOOMLA_ROOT/administrator/components/com_installer/component/com_civicrm/install.civicrm.php' does not exist.
        * Component Install: Could not copy PHP install file.

Tried zip and non-zip versions and receive the same error.  Probably missing something obvious, but everything that I can think of checks out.
CiviCRM Core Team

neherp

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: Error when upgrading from 2.1 to 2.2: Could not copy PHP install file
April 01, 2009, 05:19:37 pm
I am having this same problem.  Does anybody have any suggestions?

I can install any version up to 2.1.6 without error, but both 2.2.0 and 2.2.1 give me the same error. 

HELP!!!!

Cheers,
Mike

Michael Labbe
New England Herpetological Society

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: Error when upgrading from 2.1 to 2.2: Could not copy PHP install file
April 01, 2009, 06:30:41 pm

and what is the error that you get?

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

neherp

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: Error when upgrading from 2.1 to 2.2: Could not copy PHP install file
April 02, 2009, 04:10:12 am
Thank you for your very prompt reply.  Sorry, I should have given more complete information in my post.

I am receiving the same error reported in the original message in this thread:

        * JInstaller::install: File 'JOOMLA_ROOT/administrator/components/com_installer/component/com_civicrm/install.civicrm.php' does not exist.
        * Component Install: Could not copy PHP install file.

The error is accurate, the file does not exist in the directory shown.  The actual path to the file is: 'JOOMLA_ROOT/administrator/components/com_installer/component/com_civicrm/admin/install.civicrm.php'

I am attempting the installation as described in the installation documentation.  I have copied the contents of the installation archive into the /tmp directory of the JOOMLA/ROOT.  I am installing from that directory.  The install script copies the files to JOOMLA_ROOT/administrator/components/com_installer/component/com_civicrm/.  The script then fails because it can't find the install.civicrm.php file.

Thank you for any ideas or suggestions you can offer.

Cheers,
Mike

Michael Labbe
New England Herpetological Society

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Error when upgrading from 2.1 to 2.2: Could not copy PHP install file
April 02, 2009, 08:32:00 am
We were able to replicate the problem and filed an issue here - http://issues.civicrm.org/jira/browse/CRM-4330

A quick fix is to -
COPY "com_civicrm/admin/install.civicrm.php" INSIDE "com_civicrm/"
COPY "com_civicrm/admin/uninstall.civicrm.php" INSIDE "com_civicrm/"

The fix will be available /w next release.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

jgowans

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 3
    • CiviCRM
Re: Error when upgrading from 2.1 to 2.2: Could not copy PHP install file
April 03, 2009, 03:23:05 pm
Copying to the "com_civicrm" file worked for the install, but when attempting to upgrade the database, it generated the following error:

Error Details:

Code: [Select]
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

     => -18
    [message] => DB Error: no such table
    [mode] => 16
    [debug_info] =>
SHOW COLUMNS
FROM civicrm_participant
LIKE 'registered_by_id'
 [nativecode=1146 ** Table 'database#####.civicrm_participant' doesn't exist]
    [type] => DB_Error
    [user_info] =>
SHOW COLUMNS
FROM civicrm_participant
LIKE 'registered_by_id'
 [nativecode=1146 ** Table 'database#####.civicrm_participant' doesn't exist]
    [to_string] => [db_error: message="DB Error: no such table" code=-18 mode=callback callback=CRM_Core_Error::handle prefix="" info="
SHOW COLUMNS
FROM civicrm_participant
LIKE 'registered_by_id'
 [nativecode=1146 ** Table 'database#####.civicrm_participant' doesn't exist]"]
)
CiviCRM Core Team

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: Error when upgrading from 2.1 to 2.2: Could not copy PHP install file
April 03, 2009, 08:00:36 pm

1. u might want to try 2.2.2 since it has the proper fix

2. do u have 2 databases, one for joomla and one for civicrm? can u check if your database has the civicrm_participant table. this table has been around for a long long time

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

jgowans

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 3
    • CiviCRM
Re: Error when upgrading from 2.1 to 2.2: Could not copy PHP install file
April 05, 2009, 05:33:44 am
lobo:

Thanks for your help.  I have only one database and verified that the 'civicrm_participant' table was present. 

Figuring that there might be other issues existing here, I opted to do a full restore to a clean database, then attempt the upgrade to 2.2.2 as you recommended.  Restore and everything went fine, except now when I attempt to access CiviCRM from either the live site or the admin area, I get an error message.  I posted this new issue here http://forum.civicrm.org/index.php/topic,7428.0.html given that it is probably unrelated to the initial error.  I did leave it in the 'upgrading' section, though maybe it should be under the 'installation' section.
CiviCRM Core Team

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Error when upgrading from 2.1 to 2.2: Could not copy PHP install file

This forum was archived on 2017-11-26.