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) »
  • Error since install
Pages: [1]

Author Topic: Error since install  (Read 3017 times)

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Error since install
October 17, 2011, 02:01:44 pm
I've just done my first Civi install in quite some time and I have set up views integration, although I was getting this error before then. I found some info on Jira about it but there didn't seem to be a clear way to fix it yet - any ideas? Its been there since install.

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

Notice: Use of undefined constant id - assumed 'id' in civicrm_views_data() (line 4861 of /var/www/vhosts/ifm.org.uk/httpdocs/sites/all/modules/civicrm/drupal/modules/views/civicrm.views.inc).
Notice: Use of undefined constant id - assumed 'id' in civicrm_views_data() (line 4940 of /var/www/vhosts/ifm.org.uk/httpdocs/sites/all/modules/civicrm/drupal/modules/views/civicrm.views.inc).
Notice: Undefined variable: custom_link in civicrm_handler_field_event_link->render_link() (line 132 of /var/www/vhosts/ifm.org.uk/httpdocs/sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_field_event_link.inc).
Notice: Undefined variable: custom_link in civicrm_handler_field_event_link->render_link() (line 132 of /var/www/vhosts/ifm.org.uk/httpdocs/sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_field_event_link.inc).
Notice: Undefined variable: custom_link in civicrm_handler_field_event_link->render_link() (line 132 of /var/www/vhosts/ifm.org.uk/httpdocs/sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_field_event_link.inc).

Thanks! Adam

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Re: Error since install
October 17, 2011, 02:03:09 pm
I should have mentioned, only the first two notices were occurring from install. The others appeared when trying to set up a view of events on the site.

Thanks.

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Re: Error since install
October 17, 2011, 02:43:54 pm
Actually now I have another error :(

Notice: Undefined offset: 2 in CRM_Contact_Selector->getColumnHeaders() (line 382 of /var/www/vhosts/ifm.org.uk/httpdocs/sites/all/modules/civicrm/CRM/Contact/Selector.php).
Notice: Undefined offset: 2 in CRM_Contact_Selector->getColumnHeaders() (line 382 of /var/www/vhosts/ifm.org.uk/httpdocs/sites/all/modules/civicrm/CRM/Contact/Selector.php).
Notice: Undefined offset: 2 in CRM_Contact_Selector->getRows() (line 525 of /var/www/vhosts/ifm.org.uk/httpdocs/sites/all/modules/civicrm/CRM/Contact/Selector.php).
Notice: Undefined offset: 2 in CRM_Contact_Selector->getColumnHeaders() (line 382 of /var/www/vhosts/ifm.org.uk/httpdocs/sites/all/modules/civicrm/CRM/Contact/Selector.php).

Got this when searching contacts by clicking on Search -> Find Contacts

Really hard to say I've done anything on this install - its practically fresh. Although it does have the dummy data installed.

PrincessAng417

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 2
  • CiviCRM version: 4.5.4
  • CMS version: Drupal 7.34
Re: Error since install
October 18, 2011, 12:21:41 pm
I am getting the same two error messages.  When I install Views first and then install CiviCRM, it appears... as well as if I do the install in the opposite order and activate Views second.

Any ideas?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Error since install
October 18, 2011, 01:11:28 pm
These are E-Notices - CiviCRM is not yet e-notice compliant so it's recommended you turn off E-Notice error_reporting for your CiviCRM site

You can use ini_set('error_reporting','E_ALL ~E-NOTICE'); in your settings.php - that's from memory - google the syntax.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

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 since install
October 18, 2011, 01:46:53 pm

in drupal7 you can control this from your drupal admin settings error screen:

q=admin/config/development/logging&reset=1

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

PrincessAng417

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 2
  • CiviCRM version: 4.5.4
  • CMS version: Drupal 7.34
Re: Error since install
October 18, 2011, 02:04:36 pm
Thank you so much for the help.

Am I correct in interpreting this to mean that the error can be safely ignored and won't actually cause any malfunction on my site?

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Re: Error since install
October 27, 2011, 01:08:36 pm
Thanks all,

am I understanding that the advice is just to turn off error reporting? While I understand on a production site this is good practice, the errors also usually show an underlying problem of some kind no?

miletus

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: drupal 7
  • MySQL version: 5.1.52
  • PHP version: 5.2.17
Re: Error since install
November 01, 2011, 09:25:32 pm
Hi,
fresh drupal 7 install and civi crm 4.0.7 and I too am getting the error ... civicrm_views_data() (line 4861....
and wondered if this impacts the calendar view ?  In D7, i went to structure / views and there is no civicrm view ??  Is this error related?  If not, any suggestions how to find the civicrm calendar view in D7 ? (the instructions below are older, is option 1 still an option in  D7??)
     Option 1. Use default CiviEvent View to build a CiviEvent Calendar

     wiki.civicrm.org/confluence/display/CRMDOC32/Using+Drupal+Calendar+with+CiviEvent

no need for option 1 vs. option 2, I was just looking for the easiest implementation.

thanks.

Simon147

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 3
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7.30
  • MySQL version: 5.0.92
  • PHP version: 5.2.9
Re: Error since install
December 10, 2011, 11:16:51 am
Fresh install with Drupal 7 and CiviCRM 4.0.7. Whenever I create a group, I get the following error message: 

Notice: Undefined offset: 2 in CRM_Contact_Selector->getColumnHeaders() (line 382 of /home/tedxlaus/public_html/register/sites/all/modules/civicrm/CRM/Contact/Selector.php).

Tried q=admin/config/development/logging&reset=1 as suggested by Lobo, but nothing changed. It doesn't seem to affect any functionality though.

Ideas? 

          Simon

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Error since install
December 19, 2011, 02:21:28 pm
I am getting some errors you had:
Notice: Undefined variable: custom_link in civicrm_handler_field_event_link->render_link() (line 132 of /.../sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_field_event_link.inc).
Notice: Undefined variable: custom_link in civicrm_handler_field_event_link->render_link() (line 132 of /.../sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_field_event_link.inc).
Notice: Undefined variable: custom_link in civicrm_handler_field_event_link->render_link() (line 132 of /.../sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_field_event_link.inc).

And I found that this is caused by the event templates, which means that if you had event templates set up, the system will try to retrieve them in DB and get them into the events view. The event templates are stored in the same table as other events are: 'civicrm_event'. When I delete the event templates, the Notices are gone.  I am not a PHP expert, and do not know how to fix this problem. If anybody here could help, it will be very appreciated.

Simon147

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 3
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7.30
  • MySQL version: 5.0.92
  • PHP version: 5.2.9
Re: Error since install
December 19, 2011, 02:48:14 pm
It seams that this doesn't affect anything (see here). You can deactivate these messages as described here.
« Last Edit: December 19, 2011, 02:52:03 pm by Simon147 »

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Error since install
December 20, 2011, 06:42:37 am
That affects my event view. The event view display empty entries, like event templates which have all null values (please see pic below). Did anybody else have this problem?

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Error since install
August 06, 2012, 06:07:59 pm
Yes - I'm having lot's of problems with views and events - please see the end of this thread: http://forum.civicrm.org/index.php/topic,8911.30.html

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Error since install

This forum was archived on 2017-11-26.