Related to the PEAR_LOG_INFO warning:
I checked back into my older 1.38 store backup, and the file includes/modules/payment/paypal/paypal_curl.php contains these lines, among others:
PHP Code:
/**
* What level should we log at? Valid levels are:
* PEAR_LOG_ERR - Log only severe errors.
* PEAR_LOG_INFO - Date/time of operation, operation name, elapsed time, success or failure indication.
* PEAR_LOG_DEBUG - Full text of requests and responses and other debugging messages.
*
* @access protected
*
* @var integer $_logLevel
*/
var $_logLevel = PEAR_LOG_DEBUG;
The current version has this instead:
PHP Code:
/**
* What level should we log at? Valid levels are:
* 1 - Log only severe errors.
* 2 - Date/time of operation, operation name, elapsed time, success or failure indication.
* 3 - Full text of requests and responses and other debugging messages.
*
* @access protected
*
* @var integer $_logLevel
*/
var $_logLevel = 3;
Therefore, it seems that these were old constants that are no longer defined or used, and that the code in payflow.php at line 171 should be changed from:
PHP Code:
// Regular mode:
if ($this->enableDebugging) $this->_logLevel = PEAR_LOG_INFO;
// DEV MODE:
if (defined('PAYPAL_DEV_MODE') && PAYPAL_DEV_MODE == 'true') $this->_logLevel = PEAR_LOG_DEBUG;
To:
PHP Code:
// Regular mode:
if ($this->enableDebugging) $this->_logLevel = 2;
// DEV MODE:
if (defined('PAYPAL_DEV_MODE') && PAYPAL_DEV_MODE == 'true') $this->_logLevel = 3;
I will test this now....
Bookmarks