Menu

Deprecated: preg_replace(): Error Message

roland88
2017-08-18
2017-08-18
  • roland88

    roland88 - 2017-08-18

    Hi guys,

    How can I fix and get rid of this message that appears all over the place:

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/s1002196/public_html/ausgen/includes/functions/functions_print.php on line 1483

    My version appears to be 4.3

    Regards
    Roland

     
  • roland88

    roland88 - 2017-08-18

    OK, I just copied the functions_print.php from phpgedview-svn-7163-trunk\phpgedview-svn-7163-trunk to my install. Seems to have fixed the issue. Was this the best fix?

    Cheers
    Roland

     
  • roland88

    roland88 - 2017-08-18

    Now to the next error: Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/s1002196/public_html/ausgen/includes/classes/class_gedcomrecord.php on line 440

    Wondering if I should replace this file as well?

     
  • roland88

    roland88 - 2017-08-18

    Yep, copying that file across fixed that as well!

     
  • Gerry Kroll

    Gerry Kroll - 2017-08-18

    It's NOT a good idea to just replace a portion of the software. You need to replace the entire set of files in order to be absolutely SURE that you are up-to-date.

    There have been many fixes since the preg_replace fix was implemented. Quite a few of these deal with errors that were reported with PHP versions beyond 5.3.x.

    If you wish, you can download a ZIP file of the whole works (minus a number of useless and not-working modules). Please e-mail me directly at gkroll (at) keldine (dot) ca so that I can make the download URL available to you.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.