Open jberanek opened 5 years ago
I think this is just because you're displaying PHP errors to the browser, which you shouldn't be doing in "production"...
The following error is because errors have come out before MRBS has had a chance to send its HTTP headers:
Cannot modify header information - headers already sent by (output started at
Original comment by: jberanek
While the errors from "Cannot modify header information - headers already sent by (output started at" are simply caused because you have 'display_errors' on, the first three are not and shouldn't be happening.
I'm not quite sure why you are getting the 'undefined index' errors and will need to think about that, but you are getting the "Invalid email address" error because, I suspect, you haven't set $mail_settings['domain']
in the config file. This is the domain name, eg example.com, that, when using the 'config' authentication type MRBS will append to all usernames to get their email address. Of course, this will only work if all your users share the same domain name.
If you want to have different domain names for different users then I recommend switching to the 'db' authentication scheme. (I'd recommend this anyway as it allows you to administer users through the browser, rather than by editing the config file.)
Original comment by: campbell-m
I now understand the 'undefined index' problems and have fixed the bug in the mrbs_17_branch (10f55d) and default (1ecd3a) branches.
You can avoid the problem by setting
$mail_settings['details'] = true;
in your config file. Alternatively you can upgrade to the latest version of the MRBS 1.7 code, which you can get by following the Download Snapshot link on this page.
Original comment by: campbell-m
Thanks much Campbell...Will give it a shot tomorrow... As far as the 'display_errors' stuff described by John, is this something coming from Firefox which I use or is it coming from elsewhere? Not sure I understand this...I don't believe I ever turned it 'on' anywhere :-)
Thanks
Philippe
Original comment by: *anonymous
Ir comes from your PHP configuration in your php.ini file.
Original comment by: campbell-m
OK...Will check this out.. Thanks much!
Original comment by: *anonymous
Looks live everything's solved now. About php.ini display_errors: there was nocustom php.ini file defined so I created one and switched errors off. I guess my hosting company had this turned on by default.
Thanks again for your help!
Philippe
Original comment by: *anonymous
Hello,
I already wrote a message some time ago about this issue but I just can't seem to be able to fix it alone...
I'm using 1.7.1 with auth type set to 'config'. After I upgraded from 1.7.1 to 1.7.3, keeping the config.inc.php, which DID work ok under 1.7.1, I figured annoying messages being displayed and apparently related to the way I set up the email recipients.
First note that the booking is correctly set.
Messages displayed are herebelow:
I then decided to delete the booking and this also led to other warnings, although the booking has been correcty deleted :
As it definitely looks like being linked to the email system, could youplease tell me how tosimply define correctly the email-to part of the config file so that I and all the configured users can receive the booking info without generating all these warnings?
Thanks and best regards
Philippe
Reported by: *anonymous
Original Ticket: mrbs/support-requests/1835