CMS/Drupal

drupal::Error::Notice: Undefined index~

onesixx 2013. 9. 2. 14:57
반응형

In drupal 7 , the error reporting settings in php.ini is overridden by the bootstrap sequence. Even error reporting changes in your htaccess won’t work… drupal force you to use E_ALL , the new standard for upcoming php 6

As result some modules may produce undefined variables that will be displayed as messages “Notice: Undefined index” or “Notice: Undefined variable” and your logs will grow insanely…

the solution is to add in your settings.php the line

 

ini_set('error_reporting', 'E_ALL ^ E_NOTICE');
 
 

to micmic the default behavior of php 5.2

http://www.citytree.be/blog/undefined-index-quick-fix-in-drupal7-error-reporting

 

You can also go tohttp://mydrupalsite.com/admin/config/development/logging and
adjust the options under “Error messages to display”

반응형

'CMS > Drupal' 카테고리의 다른 글

Update Drupal Core (Minor update procedure)  (0) 2013.09.05
MAP  (0) 2013.09.05
Drupal::View::Page  (0) 2013.09.05
Drupal::Libraries API  (0) 2013.08.31
FireFox paste security Setting  (0) 2013.08.21
Flag  (0) 2013.08.19