Web based family history software

This Help forum is for issues relates to the latest release (1.4.6). For issues related to beta or git version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here.

Solved Message: deprecated .....

  • hlein
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 8 months ago - 10 years 8 months ago #1 by hlein
Message: deprecated ..... was created by hlein
Hi,

what can I do do avoid messages like

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /users/hlein/www/webtrees/includes/functions/functions_date.php on line 62

or

Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /users/hlein/www/webtrees/library/WT/I18N.php on line 104

ERROR 2: Cannot modify header information - headers already sent by (output started at /users/hlein/www/webtrees/library/WT/I18N.php:104)

Warning: Cannot modify header information - headers already sent by (output started at /users/hlein/www/webtrees/library/WT/I18N.php:104) in /users/hlein/www/webtrees/library/WT/Controller/Page.php on line 181

being shown to the user? These messages seem to have appeared when the provider upgraded to PHP 5.5.0.

Thanks in advance

Regards
Helmut
Last edit: 10 years 8 months ago by hlein.

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
10 years 8 months ago #2 by fisharebest
Replied by fisharebest on topic Message: deprecated .....
Already reported.
Already fixed.

bugs.launchpad.net/webtrees/+bug/1160768

Until the next release, you could modify includes/session.php to change the parameters to error_reporting()

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • hlein
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 8 months ago - 10 years 8 months ago #3 by hlein
Replied by hlein on topic Message: deprecated .....
I had already seen the bug report and tried build 15228. As I did not see a significant difference, I started this thread.

Modifying sessions.php (following your suggestion) to

...
// We want to know about all PHP errors
error_reporting((E_ALL | E_STRICT) ^ E_DEPRECATED);
...

did the trick.

Again, thanks a lot.

Regards
Helmut
Last edit: 10 years 8 months ago by hlein.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}