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) »
  • Upgrading CiviCRM and re-coding all customization?
Pages: [1]

Author Topic: Upgrading CiviCRM and re-coding all customization?  (Read 692 times)

Sasha08

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal
  • MySQL version: No idea
  • PHP version: No idea
Upgrading CiviCRM and re-coding all customization?
March 16, 2012, 07:29:57 am
Hello - we recently started using Civi as our company's CMS and due to what we wanted/needed it to do for us, we had some custom coding done. Our developers have indicated that in order for us to upgrade to the next version(s), any customized code will have to be re-created or it won't work. Is this in fact the case? Or if the code was written cleanly enough, is it reasonable to expect to be able to upgrade to the next version somewhat seamlessly?  ??? We are currently using 4.0.5 via Drupal.

Any insight would be appreciated!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrading CiviCRM and re-coding all customization?
March 16, 2012, 08:22:59 am
If you are upgrading from 4.0.5 to 4.1.1 then the answer is maybe. Some code changed in that upgrade (if no code changed, then there would it wouldn't be an upgraded, heh heh) so if they customized a file that has changed OR that references a function or method that has changed, then that would have to be adjusted.

All custom code should be compared against the new versions and see what needs to be done. Should be a simple job and certainly the customizations don't need to be redone from scratch.
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.

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: Upgrading CiviCRM and re-coding all customization?
March 16, 2012, 09:12:50 am

In general this should not be the case. We strongly encourage that folks extend Civi via hooks and API (which minimizes the amount of change required in upgrades) and avoid hacking the core / overwriting the main files (though that needs to happen due to some missing features/hooks in the codebase)

would be good for your developer to post on the forum with regard to the changes they made and why they think it needs to be re-created

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

Sasha08

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal
  • MySQL version: No idea
  • PHP version: No idea
Re: Upgrading CiviCRM and re-coding all customization?
March 19, 2012, 02:08:31 pm
Thank you very much for the insight. Part of the issue is that our developers have never used Civi before and we worry that all this customization was done due to lack of knowledge about the CMS - ie. customization was done where it didn't really need to be done and the code wasn't written using proper programming logic. For example, there are many different ways to search for things within Civi, and for us, depending on which way you search, you get a different answer each time. Not one result is the same. This, to me, means that things aren't working in a straight line behind the scenes or there is multiple versions of the same data back there. Something isn't quite right anyways...

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Upgrading CiviCRM and re-coding all customization?
March 19, 2012, 04:06:44 pm
Well, they are plenty of ways to query, but you shouldn't get different results to the same question indeed.

Hard to be able to give you more specific answers, in our books we try to present the different options, you might want to read some chapters to confirm/infirm the way that's been done is correct
http://book.civicrm.org/

Trust to your tools is a big part of their usefulness. You might want to hire one of the consultants that know civi well in your country to spend a couple of hours auditing/brainstorming on your install to give you an idea if something needs to be fix or if it's a matter of small adjustments.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrading CiviCRM and re-coding all customization?

This forum was archived on 2017-11-26.