Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#367 Email works but strict standards error generated in 1.4.10

open
nobody
None
1
2015-05-15
2013-07-22
Andrew Hardisty
No

Hi,
I have configured MRBS 1.4.10 to send a message to the booker using the mail backend. Unlike our current 1.4.8 installation, after saving a booking the following message is displayed (I've removed our directory paths). What causes this and given that the email does arrive, is this something to worry about? If not can we change something in MRBS to prevent it or is the display of this message due to the php configuration on the server?
Thanks

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /Mail/mimePart.php on line 307 Strict Standards: Non-static method Mail::factory() should not be called statically in /functions_mail.inc on line 1299 Warning: Cannot modify header information - headers already sent by (output started at /Mail/mimePart.php:307) in /edit_entry_handler.php on line 677

Discussion

  • It's not something to worry about, but you obviously don't want the message appearing. The fact that it appears is unfortunately a bug in 1.4.10. I've now fixed it in the trunk (Rev 2746) but you can patch your system by changing line 396 of internalconfig.inc.php from

      $error_level = $error_level ^ E_STRICT;
    

    to

      $error_level = $error_level & !E_STRICT;
    

    (Incidentally it would be a good idea to have error messages sent to an error log rather than the browser by setting "display_errors" to "0" in your php.ini file. This stops system error messages being displayed to the user. Your error log will fill up, but at least the user won't see anything wrong).

    Campbell

     
  • Hi,
    That's done the trick. Thanks for the speedy response.

     

    • Anonymous
      2013-08-08

      You are the Hero of the Day.
      Thanks a lot Campbell

       
      Last edit: Anonymous 2013-08-08

  • Anonymous
    2013-09-05

    hey !
    just a quick google search for that error, and 1. hit was the solution here !
    nice !

    thanks

     

  • Anonymous
    2014-06-19

    Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/songspkh/public_html/music/id.php on line 468

     


Anonymous


Cancel   Add attachments