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) »
  • moving to new server
Pages: 1 [2]

Author Topic: moving to new server  (Read 5811 times)

mpalfrey

  • Guest
Re: moving to new server
June 06, 2010, 06:53:44 pm
Join in on this as well, as I am trying to do a server move as well and life is getting frustrating with how much is tied to the old links. I have tried the softlink option, also deleted all files asked of and clearing out the database field and it still gives white screen when trying to run this:

http://208.109.243.97/index.php?q=civicrm/admin/setting/updateConfigBackend&reset=1

I looked into the log file and it keeps complaining about this:

[Mon Jun 07 22:38:13 2010] [error] [client 71.142.139.6] PHP Fatal error:  Call to undefined function date_parse() in /var/www/html/sites/all/modules/civicrm/CRM/Utils/Date.php on line 252,
[Mon Jun 07 22:38:26 2010] [error] [client 71.142.139.6] PHP Fatal error:  Call to undefined function date_parse() in /var/www/html/sites/all/modules/civicrm/CRM/Utils/Date.php on line 252,
[Mon Jun 07 22:52:28 2010] [error] [client 71.142.139.6] PHP Fatal error:  Call to undefined function date_parse() in /var/www/html/sites/all/modules/civicrm/CRM/Utils/Date.php on line 252

The Drupal move went fine, but I am struggling with this Civi part.

I read these last steps and boy they aren't too helpful either:

Alternatively, If both of these solutions fail: 1/. run a clean database installation to a new database (by deleting/renaming civicrm.settings.php). 2/. Confirm that this clean installation works 3/. Download clean database. 4/. Replace the SQL for the `civicrm_domain` table in your original database with the new SQL from the clean database. 5/. Upload the updated original database. 6/. edit civicrm.settings.php to repoint to the original database. 7/. rebuild the menus as instructions above

Once you rename civicrm.settings.php the site stops, and I don't get clean installing meaning running a fresh Civi install or dropping my cividatabase and re-importing it?

Thanks for the help

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: moving to new server
June 07, 2010, 12:29:03 am
Can you update your profile with CiviCRM and php version.

Kurund
Found this reply helpful? Support CiviCRM

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: moving to new server
June 07, 2010, 02:08:20 am
I would also guess that your PHP version is the problem. I believe date_parse() requires PHP 5.1.3 or greater.
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.

mpalfrey

  • Guest
Re: moving to new server
June 07, 2010, 07:27:08 am
Updated the info

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: moving to new server
June 07, 2010, 07:31:07 am
Can you put this text into a file:
Code: [Select]
<?php
print_r
(date_parse("2006-12-12 10:00:00.5"));
?>

and save it as a date.php in your Drupal root (i.e. same place as index.php) and then load it in your browser? See http://php.net/manual/en/function.date-parse.php for expected output.
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.

mpalfrey

  • Guest
Re: moving to new server
June 07, 2010, 07:31:44 am
Quote from: mpalfrey on June 07, 2010, 07:27:08 am
Updated the info

Found this in my Drupal:
Constituent Relationship Management CRM - v3.1. Allows sites to manage contacts, relationships and groups, and track contact activities, contributions, memberships and events.
This module requires PHP version 5.2.* and is incompatible with PHP version 5.1.6.

Looks like you need at least version 5.2, let me work on updating it now.

mpalfrey

  • Guest
Re: moving to new server
June 07, 2010, 08:04:52 am
Quote from: hershel on June 07, 2010, 07:31:07 am
Can you put this text into a file:
Code: [Select]
<?php
print_r
(date_parse("2006-12-12 10:00:00.5"));
?>

and save it as a date.php in your Drupal root (i.e. same place as index.php) and then load it in your browser? See http://php.net/manual/en/function.date-parse.php for expected output.

It is still throwing that error message in the logs, and maybe it is a php 5.1.6 issue? We are moving from a hosting server to a dedicated at go daddy. I am on the support line with them now to see if they can update it to the latest as yum thinks everything is updated.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: moving to new server
June 07, 2010, 08:15:56 am
> maybe it is a php 5.1.6 issue

Certainly sounds like it is.
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.

mpalfrey

  • Guest
Re: moving to new server
June 07, 2010, 08:45:22 am
Ok, got it up and running. I will stop hijacking the thread but now to work on getting the directory list updated and remove the soft links. My issue was a PHP version problem so maybe this will help others to double check their php when they get that date error in the log.

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • moving to new server

This forum was archived on 2017-11-26.