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) »
  • Undefined Offset Error in Civicrm 444
Pages: [1]

Author Topic: Undefined Offset Error in Civicrm 444  (Read 2615 times)

adizo

  • I post occasionally
  • **
  • Posts: 70
  • Karma: -1
  • It doesn't take time. It takes truth!
  • CiviCRM version: 4
  • CMS version: Joomla
  • MySQL version: 3.6
  • PHP version: php5
Undefined Offset Error in Civicrm 444
March 07, 2014, 01:30:49 pm
Hello All,
I just installed Civicrm 4.4.4 and  i got this error:

Notice: Undefined offset: 1 in CRM_Utils_Check_Security->checkLogFileIsNotAccessible() (line 153 of C:\xampp\htdocs\milkshake\sites\all\modules\civicrm\CRM\Utils\Check\Security.php).
Notice: Undefined offset: 1 in CRM_Utils_Check_Security->checkUploadsAreNotAccessible() (line 194 of C:\xampp\htdocs\milkshake\sites\all\modules\civicrm\CRM\Utils\Check\Security.php).
Notice: Undefined offset: 1 in CRM_Utils_Check_Security->checkUploadsAreNotAccessible() (line 194 of C:\xampp\htdocs\milkshake\sites\all\modules\civicrm\CRM\Utils\Check\Security.php).
Notice: Undefined offset: 1 in CRM_Utils_Check_Security->checkUploadsAreNotAccessible() (line 194 of C:\xampp\htdocs\milkshake\sites\all\modules\civicrm\CRM\Utils\Check\Security.php).

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Undefined Offset Error in Civicrm 444
March 08, 2014, 10:41:54 am
What is your PHP version?
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.

corri90

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Drupal
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Undefined Offset Error in Civicrm 444
March 14, 2014, 07:50:54 am
Hi!

I'm having exactly the same issue. PHP 5.4.26, Windows system. I tested it in Ubuntu too, and I only receive the errors related to Uploads folder.
Notice: Undefined offset: 1 in CRM_Utils_Check_Security->checkUploadsAreNotAccessible() (line 194 of C:\xampp\htdocs\milkshake\sites\all\modules\civicrm\CRM\Utils\Check\Security.php).

Any tip of what could be happening?

Thanks!

corri90

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Drupal
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Undefined Offset Error in Civicrm 444
March 14, 2014, 09:49:49 am
Moreover, the error only appears after login, accessing mydomain/civicrm/dashboard. If I reload the page, the warnings disappear. But if I log out and log in again, it appears again...

corri90

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Drupal
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Undefined Offset Error in Civicrm 444
March 17, 2014, 07:40:24 am
Hi all!

I think I've discovered the problem. The functions checkLogFileIsNotAccessible() and checkUploadsAreNotAccessible() converts the path of the Logs and Upload folders to an URL, looking for the separator /sites/. There are two possible bugs here:

In Windows, the path to those folders will contain \sites\ instead of /sites/, so it will fail.
If you set a different path for upload and log folder using the $civicrm_setting['Directory Preferences']['uploadDir'] variable in the civicrm.settings.php file, and this folder is outside the rootDir (as I did for security reasons) it will fail too.

I think you should change this functions to avoid this kind of errors. What I've done right know is to disable them.

pmoz

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.0, 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.68
  • PHP version: 5.4.9
Re: Undefined Offset Error in Civicrm 444
September 08, 2014, 03:11:06 pm
Same issue for me on Windows and IIS.

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

This forum was archived on 2017-11-26.