I am trying to upgrade from 4.1.5 to the latest CiviCRM but need to go through some intermediate releases to get there. I have installed 4.2.20 but get the following error dozens of times on each screen.

Strict warning: Non-static method CRM_Core_Block::setTemplateValues() should not be called statically in CRM_Core_Block::setTemplateValues() (line 587 of

Is there any way to get rid of it?

2 Answers 2


Those are warnings, not errors. It's simply PHP telling you that CiviCRM 4.2 is a rather old piece of software (which it is!). They will not prevent CiviCRM from working normally, certainly not for the brief time between now and when you get it upgraded further.

I recommend you ignore them and proceed with the upgrade. The latest version of CiviCRM is more up-to-date so will not trigger php warnings.


Can you upgrade to a later version than 4.2.20? Some Googling indicates this error may be solved in later versions.

  • It was suggested in an answer to another question that I update the 4.1.5 database in 4.2.xx then upgrade to a later release after that.
    – Vietyank
    May 24, 2015 at 3:08
  • Assuming you are on a dev/testing server with a copy of the database, I would now try to upgrade to the next version (despite these Strict warnings).
    – Laryn
    May 24, 2015 at 3:10
  • Okay. I'll try to update the database now then upgrade.
    – Vietyank
    May 24, 2015 at 3:12
  • Did it work? :)
    – Laryn
    May 26, 2015 at 14:38
  • update did not work.
    – Vietyank
    May 26, 2015 at 14:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.