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 Profiles (Moderator: Dave Greenberg) »
  • Error - Notice: Undefined variable: editURL in civicrm_user_view() (line 218
Pages: [1]

Author Topic: Error - Notice: Undefined variable: editURL in civicrm_user_view() (line 218  (Read 885 times)

FreeXenon

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • newb
  • CiviCRM version: 4.08
  • CMS version: Drupal 7
  • MySQL version: 5.1.56-log
  • PHP version: 5.2.17
Error - Notice: Undefined variable: editURL in civicrm_user_view() (line 218
January 12, 2012, 01:44:29 pm
I am getting the following 2 errors when viewing a user profile on Drupal 7 CiviCRM 4:

    Notice: Undefined variable: editURL in civicrm_user_view() (line 218 of /home/fxadmin/IAAY_Drupal/sites/all/modules/civicrm/drupal/civicrm_user.inc).
    Notice: Undefined variable: editURL in civicrm_user_view() (line 219 of /home/fxadmin/IAAY_Drupal/sites/all/modules/civicrm/drupal/civicrm_user.inc).


The lines 218 and 219 are in last in the following code:


           if ( $pageContent ) {
                $user->content[$title['title']] =
                    array( '#title'  => $title['title'],
                           '#type'   => 'user_profile_category',
                           '#weight' => $weight );
                $user->content[$title['title']][$title['title']] =
                    array(  '#type'   => 'user_profile_item',
                            '#title'  => null,
                            '#value'  => $pageContent . $editURL,
             '#markup' => $pageContent . $editURL );


I searched this error but all I found were websites that had had this error present on it.

Any thoughts? Thanks all!

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error - Notice: Undefined variable: editURL in civicrm_user_view() (line 218
January 13, 2012, 12:16:45 am
Note that these are not errors and won't affect any functionality. You can ignore the notices and can be turned off by changing drupal's error reporting to write to log.

Kurund
Found this reply helpful? Support CiviCRM

FreeXenon

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • newb
  • CiviCRM version: 4.08
  • CMS version: Drupal 7
  • MySQL version: 5.1.56-log
  • PHP version: 5.2.17
Re: Error - Notice: Undefined variable: editURL in civicrm_user_view() (line 218
January 13, 2012, 07:05:18 am
Good to know.

So, once the site goes to production, set Drupal to write errors to log. Gotcha...

Thanks.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Error - Notice: Undefined variable: editURL in civicrm_user_view() (line 218

This forum was archived on 2017-11-26.