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 CiviContribute (Moderator: Donald Lobo) »
  • Undefined index args in Error.php
Pages: [1]

Author Topic: Undefined index args in Error.php  (Read 1971 times)

steveplatz

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.65
  • PHP version: 5.3.17
Undefined index args in Error.php
November 30, 2012, 04:21:56 am
I've looked around on the forums a little and haven't found this mentioned. I'm using Drupal 7.17 and CiviCRM 4.2. 

Quote
Notice: Undefined index: args in CRM_Core_Error::formatBacktrace() (line 528 of /home/suffolk/public_html/ahrcsuffolkfoundation.org/sites/all/modules/contrib/civicrm/CRM/Core/Error.php).
Warning: Invalid argument supplied for foreach() in CRM_Core_Error::formatBacktrace() (line 528 of /home/suffolk/public_html/ahrcsuffolkfoundation.org/sites/all/modules/contrib/civicrm/CRM/Core/Error.php).

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Undefined index args in Error.php
November 30, 2012, 06:55:20 am
hey there,

are these notices and warnings actually preventing you from doing anything?  if not, then there is nothing to worry about.

you're probably seeing them because you have your drupal set up to show notices / warnings, which are useful to developers / implementors / coders and useful for diagnosis when things go wrong, but if you are just trying to use CiviCRM / Drupal then they get in the way.

Try turning them off in the Drupal settings. (errors and logging or something similar).

Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

steveplatz

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.65
  • PHP version: 5.3.17
Re: Undefined index args in Error.php
November 30, 2012, 09:32:09 am
Hi, Michael - I'm not sure if there is a problem with the installation or not. The notices themselves are not preventing anything, of course; there is, however another issue I've been experiencing, I'm sometimes getting logged-out when I try to edit payment processors (so I get an Access Denied page). I really can't tell if these issues are related at all, only thought I would start by diagnosing the notices, since I have something explicit to go on.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Undefined index args in Error.php
December 03, 2012, 07:11:41 am
Hey Steve,

I suspect that these are not related.

Are you ever able to edit payment processors? Does it depend on what route you take to get to the payment processor page?  One way to debug the 'getting logged-out when I try to edit payment processors' issue is to try and isolate it. i.e. i always get logged out when it use this method to get to the payment processor page, but never when I use this method.

when you 'get logged out', if you go back to the page you were on, are you logged in again? One thing that springs to mind is to check that the URL that you are getting for the payment processor page when you are 'getting logged out' is the same, i.e. not http://example.com vs. http://www.example.com or http://example.com vs https://example.com (i.e. httpS)


Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

steveplatz

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.65
  • PHP version: 5.3.17
Re: Undefined index args in Error.php
December 03, 2012, 08:45:45 am
Yes, I'm getting logged out every time, but, like i reported in this post, is it because the www is getting dropped from my URL. Is this common?

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Undefined index args in Error.php
December 05, 2012, 06:10:26 am
If you add the www back into the URL, are you still logged in?

I'm not clear from that other post whether you have fixed the problem but it sounds like you might not have.

Once you have fixed that problem, this problem should go away.

Let us know if it doesn't.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

steveplatz

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.65
  • PHP version: 5.3.17
Re: Undefined index args in Error.php
December 05, 2012, 06:21:16 am
Thanks, yes, the problem was fixed by making sure 1.) the civicrm.settings.php was set to the desired URL and 2.) my .htaccess configurations were using the correct rewrite rules and conditions.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Undefined index args in Error.php

This forum was archived on 2017-11-26.