欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

warning: chmod() has been disabled for security reasons in /data/home/hmu178154/htdocs/includes/file.inc on line 1471.

shiping1 的头像

My host will not allow some actions to be taken. Is there any way of turning 'OFF' the warnings that appear when permissions are not allowed?

(EX: Warning: chmod() has been disabled for security reasons in /mnt/www/isi_chicago1-www1/www/j/o/sample.com/html/drupal/includes/file.inc on line 381.)

Comments

goto administer -> settings

goto

administer -> settings -> error handling

set: Error reporting: to write errors to the log

Found it! thanks!

Happy New Year!

php_value error_reporting

php_value error_reporting 0
php_value display_errors 0

in your .htaccess file should do it. This assumes that your PHP is running as a module - if it's not (ie., it's a CGI under FastCGI or something similar), you'd have to use the equivalent ini_set()s in settings.php.

http://www.disobey.com/
http://www.gamegrene.com/
Developer of Drupal's GameAPI

My host does not allow access to .htaccess

Hmmmm.

Your host is weird. You'll

Your host is weird. You'll have to make them ini_sets in the settings.php then.

http://www.disobey.com/
http://www.gamegrene.com/
Developer of Drupal's GameAPI

its really good information

its really good information

yes add this code in
php_value error_reporting 0
php_value display_errors 0

# PHP 5, Apache 1 and 2.

php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
php_value error_reporting 0
php_value display_errors 0

thanks for given information

Its realy help full to us

来自 https://drupal.org/node/105806

 

普通分类: