Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hi,

I am now having couch in a server, besides local. While on the local installation Couch output warning message both on the admin panel and the site front-end, it did not in the server. So, I just want to make sure Couch will not output any warning message on my production site. How do I do this?

Thanks!
Hi,

Is this the same issue you reported a few days back? -
viewtopic.php?f=4&t=10572&p=26352#p26350

Sorry I couldn't attend to it any earlier. I'll try to do that tonight.

Thanks.
No, it is not the same. This time I ask the way to switch. It is like switching from develoment mode to production one. In development, it is okay to output warning message in site admin panel and site front-end. But I do not hope so in production site. So how to make Couch not print the warning message? Because it will not look cool if visitors see this warning printed.
The expected behavior for Couch is to *not* output the warning messages anywhere - be it localhost or a production server (the warning messages should only appear in the log file).

Your case where your local installation does show the messages is an anomaly (perhaps some peculiar configuration of the server stack). If I understood it correctly, once you installed the same site on a proper server you did not get those messages. That is the expected behavior.

Anyway, the ideal condition is that those warning messages are not generated at all and I am trying to do just that.
What you are experiencing are deprecation messages raised by PHP7 which is a pretty new platform. I am addressing the issues as they get reported. You previous report helped in quashing a whole set of messages and I'll push out the commit soon.

Thanks.
I copy here a part of my php.ini server settings regarding Errors/Notifications.

[PHP]

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0)
; E_ERROR - fatal run-time errors
; E_RECOVERABLE_ERROR - almost fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_STRICT - run-time notices, enable to have PHP suggest changes
; to your code which will ensure the best interoperability
; and forward compatibility of your code
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR - user-generated error message
; E_USER_WARNING - user-generated warning message
; E_USER_NOTICE - user-generated notice message
; E_DEPRECATED - warn about code that will not work in future versions
; of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common Values:
; E_ALL (Show all errors, warnings and notices including coding standards.)
; E_ALL & ~E_NOTICE (Show all errors, except for notices)
; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.)
; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; http://php.net/error-reporting
; error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
display_errors = On
display_startup_errors = On
log_errors = On

log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = Off
;report_zend_debug = 0
track_errors = On
;xmlrpc_errors = 0
;xmlrpc_error_number = 0
html_errors = On
5 posts Page 1 of 1