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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Post Installation error messages
Pages: [1]

Author Topic: Post Installation error messages  (Read 736 times)

fanaticdeveloper

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: 7.18
  • MySQL version: 5.5.27
  • PHP version: 5.3.5
Post Installation error messages
January 04, 2013, 06:31:07 am
I installed CiviCRM on my drupal site but after the installation its showing bunch of warning messages:


"Strict warning: Non-static method CRM_Core_Block::setTemplateValues() should not be called statically in CRM_Core_Block::setTemplateValues() (line 587 of D:\Programs\XAMPP\htdocs\drupal101\sites\all\modules\civicrm\CRM\Core\Block.php).
Strict warning: Non-static method CRM_Core_Block::setTemplateShortcutValues() should not be called statically in CRM_Core_Block::setTemplateShortcutValues() (line 287 of D:\Programs\XAMPP\htdocs\drupal101\sites\all\modules\civicrm\CRM\Core\Block.php).
Strict warning: Non-static method CRM_Core_Block::setTemplateValues() should not be called statically in CRM_Core_Block::setTemplateValues() (line 587 of D:\Programs\XAMPP\htdocs\drupal101\sites\all\modules\civicrm\CRM\Core\Block.php).
Strict warning: Non-static method CRM_Core_Block::setTemplateValues() should not be called statically in CRM_Core_Block::setTemplateValues() (line 587 of D:\Programs\XAMPP\htdocs\drupal101\sites\all\modules\civicrm\CRM\Core\Block.php).
Strict warning: Non-static method CRM_Core_Block::setTemplateDashboardValues() should not be called statically in CRM_Core_Block::setTemplateDashboardValues() (line 291 of D:\Programs\XAMPP\htdocs\drupal101\sites\all\modules\civicrm\CRM\Core\Block.php).
Strict warning: Non-static method CRM_Core_Block::setTemplateValues() should not be called statically in CRM_Core_Block::setTemplateValues() (line 587 of D:\Programs\XAMPP\htdocs\drupal101\sites\all\modules\civicrm\CRM\Core\Block.php). "

The problem remains when i went to configure my modules for the CiviCRM:
"Non-static method CRM_Core_l18n_Schema::triggerinfo()should not be called statically in CRM_Core_l18n_Schema::triggerinfo()(line 1530 of CRM\Core\DAO.php


Can anybody help me please ???

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: Post Installation error messages
January 04, 2013, 08:38:48 pm

You will need to suppress strict warnings in your php.ini

civicrm is not strict compliant

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

fanaticdeveloper

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: 7.18
  • MySQL version: 5.5.27
  • PHP version: 5.3.5
Re: Post Installation error messages
January 05, 2013, 02:56:09 am
Appreciate the response

but
Do I have to make changes in both the php.ini files??there are two files : one is production and other is development .

and the file's location is :xampp/php/php.ini development

is this the file ?

suegeuens

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Drupal
  • MySQL version: 5.5.25
  • PHP version: 3.5.1
Re: Post Installation error messages
January 18, 2013, 03:32:22 am
Could I please join Fanaticdeveloper in asking for assistance.

I have the same errors and I've been right through php.ini a couple of times ... I cannot see where I am supposed to suppress the strict warnings. I noticed a line "error_reporting  =  E_ALL" which I then disabled, but this has not changed anything that I can see.

Help??? ??? ???

suegeuens

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Drupal
  • MySQL version: 5.5.25
  • PHP version: 3.5.1
Re: Post Installation error messages
January 18, 2013, 03:49:33 am
Hi Fanaticdeveloper - I found this on another site - tried it and it worked ... however I am not sure it's a good way to stop those errors .. so if we can get a better suggestion from this forum, I will certainly try that.

At the beginning of civicrm.module add this piece of code!
error_reporting(null);

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Post Installation error messages

This forum was archived on 2017-11-26.