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) »
  • Upgrade script not recognising 4.1.1 files?
Pages: [1]

Author Topic: Upgrade script not recognising 4.1.1 files?  (Read 1843 times)

nae

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • Play Australia
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 7.31
  • MySQL version: 5.1
  • PHP version: 5.3
Upgrade script not recognising 4.1.1 files?
April 09, 2012, 12:10:36 am
I have a perplexing issue where I am trying to run an upgrade on my test local site, and I have unpacked the 4.1.1 files for drupal 6 under the sites/all/modules folder where I always put them, and when I point the browser to the upgrade script it says:

Your database has already been upgraded to CiviCRM 4.1.0

It is not recognising that the 4.1.1 files are there.

I have unpacked and placed the files there three times now, so I am certain they are correct. Also, I confirm they are the 4.1.1 files by looking in the civicrm.version.php file which also confirms they are 4.1.1 files.

Why are the new files not registering on the upgrade script page?

thanks.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrade script not recognising 4.1.1 files?
April 15, 2012, 07:42:12 am
Hard to say. Remove the files and then run the upgrade URL and make sure you get a 404 Page Not Found.

Then try again.
 
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.

nae

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • Play Australia
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 7.31
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Upgrade script not recognising 4.1.1 files?
April 16, 2012, 08:12:01 pm
when running the upgrade script with the civicrm 4.1.1 files removed I get white screen.

any other clues?
thankyou.

Renaee.

« Last Edit: April 16, 2012, 08:18:48 pm by nae »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrade script not recognising 4.1.1 files?
April 17, 2012, 02:31:54 am
That doesn't sound right. You should get a Drupal page saying Page Not Found. Can you make sure you don't have two copies of the CiviCRM files on your site?
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.

secularaugust

  • I’m new here
  • *
  • Posts: 26
  • Karma: -1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.1.41-3ubuntu12.10
  • PHP version: 5.3
Re: Upgrade script not recognising 4.1.1 files?
April 22, 2012, 08:54:43 am
I'm trying to upgrade from 4.0.5 to 4.1.2 and was getting exactly the same behavior:

It tells me I'm already upgraded to 4.0.5 when I run the upgrade script AND
when I remove the files, I get a white screen instead of a 404 page.

After doing some digging, I discovered that my civicrm.setting.php file was still pointing to an old development instalation of civi in these lines:

Code: [Select]
$civicrm_root = '/srv/www/example.org/www.example.org/htdocs/sites/all/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/srv/www/example.org/www.example.org/htdocs/sites/default/files/civicrm/templates_c/' );

I fixed these lines and tried again. 

When I do this, I get a 404 error if and only if the files in the production /sites/all/modules director doesn't have a civicrm directory in it.  So that's like it should be.

However, I need to have civicrm in BOTH the production AND development /sites/all/modules director or I get errors.  Specifically:

Quote
Exception: XML data could not be loaded. Make sure you specified the correct path. in IDS_Filter_Storage->getFilterFromXML() (line 220 of /srv/www/secularstudents.org/www.secularstudents.org/htdocs/sites/all/modules/civicrm/packages/IDS/Filter/Storage.php).

This seems related to http://forum.civicrm.org/index.php?topic=23855.0

That thread suggests rm -rf sites/all/files/civicrm/ConfigAndLog/

I am curious that it's sites/all/files and not sites/default/files (which is where I've got my civi files living... maybe that's bad).

Also, I'm on a managed server and don't have permission to delete ConfigAndLog.  I'm going to email my sys admin in a moment to get his help with this.  But I thought that this might at least point nae in the right direction.

I'll keep you posted and good luck!
« Last Edit: April 29, 2012, 06:27:03 am by secularaugust »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrade script not recognising 4.1.1 files?
April 22, 2012, 10:33:34 am
Quote from: secularaugust on April 22, 2012, 08:54:43 am
That thread suggests rm -rf sites/all/files/civicrm/ConfigAndLog/

I am curious that it's sites/all/files and not sites/default/files (which is where I've got my civi files living... maybe that's bad).

That command was specific to that thread. Usually it indeed is:

Code: [Select]
rm -rf sites/default/files/civicrm/ConfigAndLog/
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.

nae

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • Play Australia
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 7.31
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Upgrade script not recognising 4.1.1 files?
April 26, 2012, 03:44:57 am
thanks secularaugust

I actually did get the WSOD just after I did the copy of the live site to my test server, so I deleted that ConfigandLog directory back then (saw similar post) and this did fix the white screen and my test set up then worked. However the problem remains when I now try to upgrade test site, just will not recognize the new 4.1.1 files.

I deleted the ConfigandLog directory again (it rebuilds itself ) and then when I tried to run the upgrade script, as well as it saying I was already on 4.1.0, it gave this error message the first time round, but then refresh browser to try again and it is gone.

warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'civicrm_invoke' not found or invalid function name in /Users/renaeechurches/Sites/PRAV/BACKUPS/April2012/public_html/includes/menu.inc on line 350.

then just left with message saying my site is already updated.  ???
nae.

« Last Edit: April 26, 2012, 03:53:39 am by nae »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrade script not recognising 4.1.1 files?
April 26, 2012, 03:52:18 am
Quote from: nae on April 26, 2012, 03:44:57 am
I deleted the ConfigandLog directory again (it rebuilds itself?)

Yes it's supposed to.

I would say remove your CiviCRM 4.1.1 files and ConfigandLog and then run the Updater. I think you have two copies of CiviCRM code in there somewhere.
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.

nae

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • Play Australia
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 7.31
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Upgrade script not recognising 4.1.1 files?
April 26, 2012, 04:04:33 am
aha - no i found the problem. was just like the poster above, I had link to an old copy of test install on the civicrm settings file. When I put the 4.1.1 files back, then deleted the configandlog, then it worked,

and acutally this was in effect like I had the setting files pointing at two installations/sets of files.

many thanks,
nae.
« Last Edit: April 26, 2012, 04:12:33 am by nae »

secularaugust

  • I’m new here
  • *
  • Posts: 26
  • Karma: -1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.1.41-3ubuntu12.10
  • PHP version: 5.3
Re: Upgrade script not recognising 4.1.1 files?
April 29, 2012, 06:31:21 am
I've now successfully installed 4.1.2.  Yay!

Not only did I have to delete /files/civicrm/ConfigAndLog/ but also /files/civicrm/templates_c/en_US/ConfigAndLog

But that did it.

Thanks for pointing me in the right direction nae and Hershel.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade script not recognising 4.1.1 files?

This forum was archived on 2017-11-26.