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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.3 Release Testing (Moderator: pdelbar) »
  • Error upgrading 4.2.7 -> 4.3beta2
Pages: [1]

Author Topic: Error upgrading 4.2.7 -> 4.3beta2  (Read 1134 times)

GinkgoDOB

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 1
  • Dir. of Product Development, Ginkgo Street Labs
    • Ginkgo Street Labs
  • CiviCRM version: v4.5-4.7
  • CMS version: Drupal
Error upgrading 4.2.7 -> 4.3beta2
March 08, 2013, 05:17:35 pm
I'm following the usual upgrade process and I'm getting an odd error. As soon as I access the upgrade URL, I get the message:

Quote
CiviCRM 4.3.beta2 requires PHP version 5.3.3 (or newer), but the current system uses 5.3.3

Anyone seen this? I'm on a fully-patched CentOS 6.3 system with the following PHP RPMs installed. Drupal is still at 7.17; I wanted to tackle the CiviCRM upgrade before doing the CMS.

php-5.3.3-14.el6_3.x86_64
php-cli-5.3.3-14.el6_3.x86_64
php-common-5.3.3-14.el6_3.x86_64
php-gd-5.3.3-14.el6_3.x86_64
php-imap-5.3.3-14.el6_3.x86_64
php-mbstring-5.3.3-14.el6_3.x86_64
php-mysql-5.3.3-14.el6_3.x86_64
php-pdo-5.3.3-14.el6_3.x86_64
php-pear-1.9.4-4.el6.noarch
php-pecl-apc-3.1.9-2.el6.x86_64
php-pecl-memcache-3.0.5-4.el6.x86_64
php-soap-5.3.3-14.el6_3.x86_64
php-xml-5.3.3-14.el6_3.x86_64

GinkgoDOB

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 1
  • Dir. of Product Development, Ginkgo Street Labs
    • Ginkgo Street Labs
  • CiviCRM version: v4.5-4.7
  • CMS version: Drupal
Re: Error upgrading 4.2.7 -> 4.3beta2
March 08, 2013, 05:33:02 pm
Getting the same error upgrading a WordPress site from 4.3beta1 -> 4.3beta2

What PHP version check changed between 4.3beta1 and 4.3beta2?

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 upgrading 4.2.7 -> 4.3beta2
March 08, 2013, 06:57:52 pm

That check is in CRM/Upgrade/Form.php (search for 5.3.3)

i took a look at the version control history and has not changed for some time. Seems like the requirement is a version higher than 5.3.3

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

GinkgoDOB

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 1
  • Dir. of Product Development, Ginkgo Street Labs
    • Ginkgo Street Labs
  • CiviCRM version: v4.5-4.7
  • CMS version: Drupal
Re: Error upgrading 4.2.7 -> 4.3beta2
March 08, 2013, 07:31:56 pm
Still scratching my head.

I was able to do a clean install on WordPress with the 4.3.beta1 release (which, I'm assuming, would not be executing the code in CRM/Upgrade/Form.php).

This check in install/index.php passed:

Quote
    $this->requirePHPVersion('5.3.3', array("PHP Configuration", "PHP5 installed", NULL, "PHP version " . phpversion()));

This check in CRM/Upgrade/Form.php doesn't pass:

Quote
    $phpVersion = phpversion();
    $minPhpVersion = '5.3.3';
    if (version_compare($phpVersion, $minPhpVersion) <= 0) {


It *should* pass the check:

Quote
php > $phpVersion = phpversion();
php > $minPhpVersion = '5.3.3';
php > print version_compare($phpVersion, $minPhpVersion);
0

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 upgrading 4.2.7 -> 4.3beta2
March 08, 2013, 09:18:22 pm

the installer makes a check for version >= 5.3.3

the upgrader makes a check for version > 5.3.3

and hencethe upgrade fails. can u please file an issue and we'll make the upgrade match the install check

thanx

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

GinkgoDOB

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 1
  • Dir. of Product Development, Ginkgo Street Labs
    • Ginkgo Street Labs
  • CiviCRM version: v4.5-4.7
  • CMS version: Drupal
Re: Error upgrading 4.2.7 -> 4.3beta2
March 09, 2013, 05:03:54 am
Whoops... Trudging through PHP code late on a Friday night after a couple of glasses of wine not such a good idea! Issue CRM-12079 filed.

http://issues.civicrm.org/jira/browse/CRM-12079

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.3 Release Testing (Moderator: pdelbar) »
  • Error upgrading 4.2.7 -> 4.3beta2

This forum was archived on 2017-11-26.