Drupal – Fix Ubercart Error Messages

If you get a bunch of error messages after installing Ubercart as follow

  • # Notice: Undefined index: #element_validate in summarize_form() (line 27 of /var/www/pressflow-6.20/sites/all/modules/ubercart/uc_store/includes/summaries.inc).
  • # Notice: Undefined index: #type in summarize_element() (line 84 of /var/www/pressflow-6.20/sites/all/modules/ubercart/uc_store/includes/summaries.inc).
  • # Notice: Undefined index: #type in summarize_element() (line 124 of /var/www/pressflow-6.20/sites/all/modules/ubercart/uc_store/includes/summaries.inc).

No worry, these messages could be removed after modifying the error reporting setting in the php.ini.
/etc/php5/apache2/php.ini

; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; http://php.net/error-reporting
;error_reporting = E_ALL & ~E_DEPRECATED
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR

 

Done =)

Reference: Ubercart – Bunch of error messages when logging in as normal user

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.