drush pm-info syslog

	Extension        :  syslog                                    
	Project          :  drupal                                    
	Type             :  module                                    
	Title            :  Syslog                                    
	Description      :  Logs and records system events to syslog. 
	Version          :  7.26                                      
	Date             :  2014-01-15                                
	Package          :  Core                                      
	Core             :  7.x                                       
	PHP              :  5.2.4                                     
	Status           :  enabled                                   
	Path             :  modules/syslog                            
	Schema version   :  module has no schema                      
	Files            :  syslog.test                               
	Requires         :  none                                      
	Required by      :  none                                      
	Permissions      :  none                                      
	Configure        :  admin/config/development/logging          

drush en syslog

	The following extensions will be enabled: syslog
	Do you really want to continue? (y/n): y
		openlog() expects parameter 3 to be long, string given syslog.module:103                                  [warning]
		syslog was enabled successfully.                                                       

cat syslog.module

	  if (!$log_init) {
	    $log_init = TRUE;
	    $default_facility = defined('LOG_LOCAL0') ? LOG_LOCAL0 : LOG_USER;
103	    openlog(variable_get('syslog_identity', 'drupal'), LOG_NDELAY, variable_get('syslog_facility', $default_facility));
	  }

Comments

ano.nimmus’s picture

Anyone?

vm’s picture

Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)

https://drupal.org/comment/8504411#comment-8504411 responded to in the forum post. I can't reproduce the issue on a new install. User has been asked to test on a new install to ensure a core bug.

ano.nimmus’s picture

Status: Postponed (maintainer needs more info) » Active

This was reported on my production install -- with a number of contrib modules.

I can reproduce this on both the prod instance with contrib modules disabled, as well as a vanilla install with no contrib modules. I've tried vanilla installs on both this box, and another -- but they're virtually identically configured.

vm’s picture

The only difference I can see between my install and your own is the version of PHP. I'm running 5.4.12. I didn't test on the public server but on localhost.

Some more information about the environment you are running in may aid. shared hosting?

https://drupal.org/documentation/modules/syslog = docs for the module in question though I don't know that they will aid.

ano.nimmus’s picture

Some more information about the environment you are running in may aid. shared hosting?

here,

no, not shared hosting -- standalone box.

uname -ris
  Linux 3.7.10-1.28-desktop x86_64

php -v  (i've NO idea why pm-info reports "PHP:  5.2.4"  ...)
  PHP 5.6.0-dev (cli) (built: Feb 16 2014 11:14:08) 
  Copyright (c) 1997-2014 The PHP Group
  Zend Engine v2.6.0-dev, Copyright (c) 1998-2014 Zend Technologies
      with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

httpd -V
 Server version: Apache/2.4.8-dev (Unix)
 Server built:   Feb 15 2014 21:04:39
 Server's Module Magic Number: 20120211:28
 Server loaded:  APR 2.0.0-dev
 Compiled using: APR 2.0.0-dev
 Architecture:   64-bit
 Server MPM:     event
   threaded:     yes (fixed thread count)
     forked:     yes (variable process count)
 Server compiled with....
  -D APR_HAS_SENDFILE
  -D APR_HAS_MMAP
  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
  -D APR_USE_SYSVSEM_SERIALIZE
  -D APR_USE_PTHREAD_SERIALIZE
  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
  -D APR_HAS_OTHER_CHILD
  -D AP_HAVE_RELIABLE_PIPED_LOGS
  -D DYNAMIC_MODULE_LIMIT=256
  -D HTTPD_ROOT="/usr/local/apache24x"
  -D SUEXEC_BIN="/usr/local/apache24x/bin/suexec"
  -D DEFAULT_PIDLOG="/var/run/apache2/logs/httpd.pid"
  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
  -D DEFAULT_ERRORLOG="logs/error_log"
  -D AP_TYPES_CONFIG_FILE="/usr/local/etc/apache2/mime.types"
  -D SERVER_CONFIG_FILE="/usr/local/etc/apache2/httpd.conf"
  
vm’s picture

I'm not in a position to test on PHP 5.6.0-dev

longwave’s picture

What is the value of the variable "syslog_facility"? This should be one of the PHP-defined LOG_LOCALn constants, but somehow it seems it is a string on your setup.

dcam’s picture

Status: Active » Closed (cannot reproduce)

Closing old issues.

If you're still experiencing this problem then please check the value of the syslog_facility variable as mentioned in #7. If you have Drush installed then you can use drush vget syslog_facility to see the value. If not, I think the Variable module will allow you to inspect variable values via an admin page.