Error Handling & Logging

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
bensnyder's picture

http://groups.drupal.org/node/70258

No settings available for error_reporting?

Default: E_ALL & ~E_DEPRECATED
Desired: error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE

Thanks :)

In the meantime I'm manually changing in /etc/php5/apache2/php.ini but it seems to default back on config update.

edit: fixed & ~E_NOTICE

Comments

I have the same question

Vacilando's picture

(Also posted here but a bit lost amongst other talk.)


---
Tomáš J. Fülöpp
http://twitter.com/vacilandois

Put your overrides a .ini file in conf.d

Vacilando's picture

I believe this is a solution -- put your override

error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE

in a file in conf.d, e.g.

nano /etc/php5/apache2/conf.d/myini.ini

That is on Ubuntu (Lucid) at least.


---
Tomáš J. Fülöpp
http://twitter.com/vacilandois

re: Error Handling & Logging

Greg Coit's picture

We're adding support for the error_reporting variable to the server tuneables file in Pantheon 1.2. I the meantime, Tomáš solution should work.

Greg

--
Greg Coit
Systems Administrator
http://www.chapterthree.com

Great thanks!

bensnyder's picture

Great thanks!

I just want to understand

cookiesunshinex's picture

I just want to understand this a bit more clearly. Please let me know if I've got this correct.

In Pressflow, error reporting is set to strict, whereas Drupal core it is not.

The result is that I'm seeing several errors for undefined variable on several modules:

Notice: Undefined variable: register in mailchimp_mailchimp_merge_keys() (line 754 of /vol/var/www/sites/all/modules/mailchimp/mailchimp.module).
Notice: Undefined variable: messages in drupal_mail_wrapper() (line 28 of /vol/var/www/sites/all/modules/returnpath/returnpath.module).
Notice: Undefined variable: icons in _rpx_update_user_login_form() (line 610 of /vol/var/www/sites/all/modules/rpx/rpx.module).

Are these actual bugs in modules, or are they notifications about PHP 5.3 incompatibility?

Thanks.

Symetrik Design
Drupal Consulting
http://www.symetrkdesign.com

PHP 5.3

BarwonHack's picture

I believe that these are PHP 5.3 errors.

You probably need change your PHP error reposting settings in php.ini (not in Drupal).

Also, I've found that often dev versions of modules are more PHP5.3 tolerant.

PHP 5.3

protoplasm's picture

Testing out this platform, I migrated a bloated existing site with 331 database tables to Project Mercury 1.1b using ubuntu and everything went very smoothly. The site is up and running but I am generating about a 1000 of these type of errors every minute I am on the site. Looks to me like many modules are affected. I run many of the dev versions already. I had no idea there was so much incompatibility with 5.3. The site is actually visible and mostly functioning, but functionality like uploading images is gone.

you can downgrade php ...

BarwonHack's picture

but i doubt that 5.3 is the source of your image upload problem. what does the drupal status report say?

Class errors

protoplasm's picture

A lot of the errors included class problems, so I already moved on. Guess I am stuck with php 5.2.x for a while.

Attempted Tomáš's solution

mathieuhelie's picture

Attempted Tomáš's solution followed by /etc/init.d/apache2 restart, no change in notice errors. Running PHP5.2 on Lucid.

How does the webserver read this ini file?

edit: Problem magically solved itself.

Mercury

Group organizers

Group categories

Post Type

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: