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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Undefined index error in pages with php block
Pages: [1]

Author Topic: Undefined index error in pages with php block  (Read 227 times)

vences

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Drupal
  • MySQL version: 5.5.4
  • PHP version: 5.3
Undefined index error in pages with php block
November 16, 2014, 07:56:46 pm
I'm using drupal 7, with CiviCRM 4.4.6. I have a PHP block in my drupal header block.

Undefined index error as below appears in every page which PHP block appears.

Quote
Notice: Undefined index: CiviCRM in eval() (line 7 of /home/mydomain/www/civicrm/modules/php/php.module(80) : eval()'d code).

When I remove the PHP block, this error disappears.

Is there any method I can configure it so that I can display PHP block without CiviCRM error?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Undefined index error in pages with php block
November 17, 2014, 05:57:17 am
Your term "PHP Block" would infer that it's a block with custom PHP code. You would need to debug that code and fix it, that's all.
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.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Undefined index error in pages with php block

This forum was archived on 2017-11-26.