Ok, I was able to setup the php.ini file and can see the parameters that I set in phpinfo including the path for the error log. I made sure the Error handling and logging section of the php.ini file has display_errors = On, display_startup_errors = On and log_errors = On and uncommented. I saw php messages from another application in the error log so I know this is working.
In Site administration -> Development -> Debugging I have Debug messages set to DEVELOPER.
I then performed the paypal transaction, but did not see anything captured in the error log.
So I thought that maybe I still needed to include the ini_set parameters in config.php as per https://docs.moodle.org/dev/PHP_error_logs, so I set the following:
ini_set ('display_errors', 'on');
ini_set ('log_errors', 'on');
ini_set ('display_startup_errors', 'on');
ini_set ('error_reporting', E_ALL);
$CFG->debug = DEBUG_ALL;
This messed up the user interface but I was still able to transact the paypal purchase. I got a bunch of messages in the error log, but not related to the purchase:
[20-Apr-2016 15:54:00 America/Chicago] PHP Notice: Use of undefined constant DEBUG_ALL - assumed 'DEBUG_ALL' in /home4/brainyus/public_html/bit/config.php on line 33
[20-Apr-2016 15:54:00 America/Chicago] PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/brainyus/public_html/bit/config.php:33) in /home4/brainyus/public_html/bit/theme/image.php on line 228
[20-Apr-2016 15:54:00 America/Chicago] PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/brainyus/public_html/bit/config.php:33) in /home4/brainyus/public_html/bit/theme/image.php on line 229
[20-Apr-2016 15:54:00 America/Chicago] PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/brainyus/public_html/bit/config.php:33) in /home4/brainyus/public_html/bit/theme/image.php on line 230
[20-Apr-2016 15:54:00 America/Chicago] PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/brainyus/public_html/bit/config.php:33) in /home4/brainyus/public_html/bit/theme/image.php on line 231
[20-Apr-2016 15:54:00 America/Chicago] PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/brainyus/public_html/bit/config.php:33) in /home4/brainyus/public_html/bit/theme/image.php on line 232
[20-Apr-2016 15:54:00 America/Chicago] PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/brainyus/public_html/bit/config.php:33) in /home4/brainyus/public_html/bit/theme/image.php on line 233
[20-Apr-2016 15:54:00 America/Chicago] PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/brainyus/public_html/bit/config.php:33) in /home4/brainyus/public_html/bit/theme/image.php on line 234
[20-Apr-2016 15:54:00 America/Chicago] PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/brainyus/public_html/bit/config.php:33) in /home4/brainyus/public_html/bit/theme/image.php on line 235
[20-Apr-2016 15:54:00 America/Chicago] PHP Warning: Cannot modify header information - headers already sent by (output started at /home4/brainyus/public_html/bit/config.php:33) in /home4/brainyus/public_html/bit/theme/image.php on line 236
So I removed the ini_set parameters from config.php.
I'm not seeing any error messages relevant to the paypal transaction.
What am I missing?