Posted by bensnyder on October 29, 2010 at 5:29pm
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
(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
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
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!
Great thanks!
I just want to understand
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
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
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 ...
but i doubt that 5.3 is the source of your image upload problem. what does the drupal status report say?
Class errors
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
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.