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) »
  • CiviCRM 4.1.2 to 4.2.7 on Joomla
Pages: 1 [2]

Author Topic: CiviCRM 4.1.2 to 4.2.7 on Joomla  (Read 2610 times)

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: CiviCRM 4.1.2 to 4.2.7 on Joomla
March 12, 2013, 08:56:39 pm

r u sure u have the right version (4.2.7?)? I could not find a call to fatal() near line 113 on Upgrade.php in 4.2.x

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

benmoreassynt

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Joomla 2.5.19/Wordpress 3.8
  • MySQL version: 5.5.35
  • PHP version: 5.3.10
Re: CiviCRM 4.1.2 to 4.2.7 on Joomla
March 12, 2013, 10:14:55 pm
It was 4.2.7 when I started, now it's 4.2.8! Ive been stuck for a while ;-)

The error revolves around CiviCRM seeing a variable that suggests an older database is being installed over a newer one. Tried commenting out - no dice ... led to further fatal errors. Somewhere along the line Joomla seems to have recorded multiple installs of CiviCRM, with one very old version staying in the system, albeit disabled (and code long gone). A bit of a mess!

Have now completely uninstalled CiviCRM and installed 4.2.8 as clean install. Still saw quite a few errors concerning versions in Upgrade.php when running with debugging on, and had to comment out a few lines of code in Upgrade.php, however the DB upgrade script eventually ran, and the install appears to work.

Now need to find a way to safely get my 4.1.2 DB data into 4.2.7 manually. I've tried that before, and it led me back into the constant problems of the upgrade dying when I tried to run the upgrade script again.

Any ideas on a safe way to do this?


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: CiviCRM 4.1.2 to 4.2.7 on Joomla
March 13, 2013, 07:56:26 am

In general commenting out lines from Upgrade.php is not recommended at all and will likely lead to problems further on

seems like your jooml db and civi have a fair bit of old stale info. I would sort that out first, clean things up and get civi working nicely in 4.1.x

once that is working, try it with a clean version of the new code rather than hacking the code to run to completion

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

benmoreassynt

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Joomla 2.5.19/Wordpress 3.8
  • MySQL version: 5.5.35
  • PHP version: 5.3.10
Re: CiviCRM 4.1.2 to 4.2.8 on Joomla
March 13, 2013, 09:47:15 am
Thanks Lobo, really appreciate your help. I guess I've been trying to get a clean install, but I'm obviously missing something.

Yesterday I:
1.Completely uninstalled CiviCRM using Joomla uninstall method.
2.Ensured CiviCRM MySQL tables deleted completely.
3.Ensured CiviCRM files gone completely.
4.Uploaded/installed fresh version of 4.2.8
5.After install of 4.2.8, required 'upgrade' of database.
6.Upgrade ran, but with errors...Commenting out lines allowed install to complete, but obviously not in ideal way.

Today I:
1. Did manual import of 4.2.1 tables containing real data from backup SQL.
2. Ran upgrade script again to upgrade 4.2.1 database to 4.2.8
3. Upgrade ran with errors.

4.2.8 now runs after a fashion, but CiviContribute reports it is 'unavailable'. Main 'live search' from dashboard produces PHP errors.

This is all being done on a backup server obviously, and I can roll back to pre-upgrade status at any time.

Assuming the upgrade I've 'forced' through is no good because of something I failed to remove or delete, what would you recommend I would do to enable a completely fresh/clean/safe install of 4.2.8, followed by a successful import of the data that needs to be preserved?

I have contracted some contractors for quotes, although seeing as I'm a contractor myself - I kind of want to get this done in house!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviCRM 4.1.2 to 4.2.8 on Joomla
March 13, 2013, 09:49:57 am
Quote from: benmoreassynt on March 13, 2013, 09:47:15 am
1.Completely uninstalled CiviCRM using Joomla uninstall method.
2.Ensured CiviCRM MySQL tables deleted completely.
3.Ensured CiviCRM files gone completely.
4.Uploaded/installed fresh version of 4.2.8
5.After install of 4.2.8, required 'upgrade' of database.
6.Upgrade ran, but with errors...Commenting out lines allowed install to complete, but obviously not in ideal way.

You didn't write something here. After step 4 and a fresh install in 5, you shouldn't need an upgrade.

Did you replace the tables in between 4 and 5 ? Or between 5a and 5b? :)
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.

benmoreassynt

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Joomla 2.5.19/Wordpress 3.8
  • MySQL version: 5.5.35
  • PHP version: 5.3.10
Re: CiviCRM 4.1.2 to 4.2.7 on Joomla
March 13, 2013, 09:54:24 am
Yeah - that could be the root of the problem. The 'fresh install' behaved like an upgrade, and asked for the DB upgrade script to be run.

So in other words, my uninstall was not complete. Given that DB tables removed, admininstator/components/com_civicrm/ removed and /components/com_civicrm/ removed - what else could be polluting the system that's preventing me getting to a clean state?


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviCRM 4.1.2 to 4.2.7 on Joomla
March 13, 2013, 10:00:01 am
I would triple check that the tables are NOT in the database that you are installing on. Sounds like a human error. :(

Then be sure to remove

media/civicrm

also....
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.

benmoreassynt

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Joomla 2.5.19/Wordpress 3.8
  • MySQL version: 5.5.35
  • PHP version: 5.3.10
Re: CiviCRM 4.1.2 to 4.2.7 on Joomla
March 15, 2013, 10:49:36 pm
FYI - finally found a solution.

CiviCRM logging was enabled on the site, which should be disabled before upgrading. However the error reporting functions for some reason were not/are not working, so I never got the message to switch off logging, resulting in repeated failed upgrades. The log tables in the database were also adding another level of complexity to things. Table foreign key restraints, undeleted data and the rest were just adding additional levels of confusion trying to nail down the real root cause.

Switching off logging after I'd finally managed to echo the errors so I could read them resulted in a successful upgrade, although there were still a few SQL errors during the upgrade - but that may have just been a result of the fact I had Joomla debugging switched on.

Any idea why CiviCRMs 'fatal' function would not echo errors?

Many thanks to all who helped.


Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • CiviCRM 4.1.2 to 4.2.7 on Joomla

This forum was archived on 2017-11-26.