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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • [FIXED] Error messages in 4.5Beta6
Pages: [1]

Author Topic: [FIXED] Error messages in 4.5Beta6  (Read 537 times)

spalmstr

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 2
  • CiviCRM version: 4.5.4
  • CMS version: Joomla! 3.3.6 Stable [ Ember ] 01-October-2014 02:00 GMT
  • MySQL version: 5.6.21
  • PHP version: 5.6.0
[FIXED] Error messages in 4.5Beta6
August 20, 2014, 03:04:43 am
When first entering CiviCRM I sometimes get these errors:

Notice: Undefined offset: 1 in D:\CiviCRM\Joomla\administrator\components\com_civicrm\civicrm\CRM\Utils\Check\Security.php on line 100

Notice: Undefined offset: 1 in D:\CiviCRM\Joomla\administrator\components\com_civicrm\civicrm\CRM\Utils\Check\Security.php on line 290

Notice: Undefined offset: 1 in D:\CiviCRM\Joomla\administrator\components\com_civicrm\civicrm\CRM\Utils\Check\Security.php on line 290

I am running a test environment under Windows 8.1/IIS with Joomla 3.3.
« Last Edit: August 27, 2014, 05:49:19 pm by totten »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error messages in 4.5Beta6
August 21, 2014, 12:21:02 pm
I think you'll need to add some debug outputs in that file (Security.php). Seems like your directory setup is different than what's expected so $log_path doesn't contain expected array ???

      if ($log_path = explode($filePathMarker, $log_filename)) {
        $url[] = $log_path[1];
Protect your investment in CiviCRM by  becoming a Member!

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Error messages in 4.5Beta6
August 21, 2014, 12:40:04 pm
The problem is that $filePathMarker is hardcoded to use Unix-style paths ("/") instead of Windows-style paths ("\"). However, since Windows-PHP accepts both styles, I think we can something simple around line 91 like:

Code: [Select]
  $log_filename = str_replace('\\', '/', $log->_filename);

And then something similar around line 285. I'll open an issue+PR.

FWIW, this would affect 4.4 and 4.5.

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Error messages in 4.5Beta6
August 21, 2014, 12:42:55 pm
Issue: https://issues.civicrm.org/jira/browse/CRM-15163

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: [FILED] Error messages in 4.5Beta6
August 27, 2014, 05:48:43 pm
Merged patch for the next 4.4 release ( https://github.com/civicrm/civicrm-core/pull/3975 ). It should be brought forward to 4.5 within a few days (along with any other 4.4 improvements).

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • [FIXED] Error messages in 4.5Beta6

This forum was archived on 2017-11-26.