Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Deprecated: Function ereg_replace() is deprecated

  1. #11
    Join Date
    Dec 2009
    Posts
    4

    Default Re: Deprecated: Function ereg_replace() is deprecated

    Quote Originally Posted by houba View Post
    Hi,

    This is probably a good fix for solution 2.5.7, but we get the same but different error for 2.5.8.

    Deprecated: Function eregi() is deprecated in C:\xampp\xampp\htdocs\cndp\include\misc.inc.php on line 376

    Perhaps its best if I stick with 1.7.1 XAMPP?

    Unless you also have a fix for this?

    Thanks
    you can see here how to solve the problem until you update OR to a next version

    http://devthought.com/tumble/2009/06...ors-in-php-53/

  2. #12
    Join Date
    Apr 2010
    Posts
    2

    Default Re: Deprecated: Function ereg_replace() is deprecated

    code : ereg_replace()

    Replace it the code with: preg_replace( )

    ( if its invoke some error like No End Demiliters ....... Then place a "/^" at the starting of the single quote ( ' ) and "^/" at the end of the string. )

  3. #13
    Join Date
    Apr 2010
    Posts
    6

    Default Re: Deprecated: Function ereg_replace() is deprecated

    Here is what I have found needing to be changed so far in my installation.

    // Change line 376 of file include/misc.inc.php to - if (preg_match('/0$/', $count)) {
    // Change line 426 of file include/misc.inc.php to - if (preg_match ("/$referers[0]/i", $referer) || $skipRefCheck==TRUE) {
    // Change line 528 of file include/misc.inc.php to - if (preg_match("/$regexp/i", $email)) {
    // Change line 529 of file include/misc.inc.php to - list($username, $domaintld) = preg_split("@", $email);
    // Change line 566 of file include/listing_editor.inc.php to - if (preg_match('/[0-9]/', substr($ElementContents, $i, 1))) {
    // Change line 569 of file include/listing_editor.inc.php to - if (preg_match('/[.]/', substr($ElementContents, $i, 1))) {
    // Change line 44 of file include/user_manager.inc.php to - if (preg_match ("/$referers[0]/i", $referer)) {

  4. #14
    Join Date
    Apr 2010
    Posts
    2

    Default Re: Deprecated: Function ereg_replace() is deprecated

    / Change line 376 of file include/misc.inc.php to - if (preg_match('/0$/', $count)) {
    // Change line 426 of file include/misc.inc.php to - if (preg_match ("/$referers[0]/i", $referer) || $skipRefCheck==TRUE) {
    // Change line 528 of file include/misc.inc.php to - if (preg_match("/$regexp/i", $email)) {
    // Change line 529 of file include/misc.inc.php to - list($username, $domaintld) = preg_split("@", $email);
    // Change line 566 of file include/listing_editor.inc.php to - if (preg_match('/[0-9]/', substr($ElementContents, $i, 1))) {
    // Change line 569 of file include/listing_editor.inc.php to - if (preg_match('/[.]/', substr($ElementContents, $i, 1))) {
    // Change line 44 of file include/user_manager.inc.php to - if (preg_match ("/$referers[0]/i", $referer)) {

    Change the define error line codes with

    / Change line 376 of file include/misc.inc.php to - if (preg_match('/^0$/^', $count)) {
    // Change line 426 of file include/misc.inc.php to - if (preg_match ("/^$referers[0]/^i", $referer) || $skipRefCheck==TRUE) {
    // Change line 528 of file include/misc.inc.php to - if (preg_match("/^$regexp/^i", $email)) {
    // Change line 529 of file include/misc.inc.php to - list($username, $domaintld) = preg_split("/^@/^", $email);
    // Change line 566 of file include/listing_editor.inc.php to - if (preg_match('/[0-9]/', substr($ElementContents, $i, 1))) {
    // Change line 569 of file include/listing_editor.inc.php to - if (preg_match('/[.]/', substr($ElementContents, $i, 1))) {
    // Change line 44 of file include/user_manager.inc.php to - if (preg_match ("/$referers[0]/i", $referer)) {

  5. #15
    Join Date
    May 2010
    Posts
    1

    Default Re: Deprecated: Function ereg_replace() is deprecated

    Quote Originally Posted by greengiant View Post
    Open-Realty does not support PHP 5.3 at this time. For the next 2.6.0 release we will be adding support for 5.3 in the meantime you should stick with PHP 5.2.x
    Any idea when 2.6.0 will be released?

    Thanks

  6. #16
    Join Date
    Jul 2010
    Posts
    1

    Thumbs up Re: Deprecated: Function ereg_replace() is deprecated

    Quote Originally Posted by pradeep View Post
    Hi,

    Just follow following steps -

    [1] Please open the file misc.inc.php
    [2] Go to the line 144
    [3] You will find code -
    $output = ereg_replace (";", "", $output);

    [4] Change the code to -
    $output = preg_replace ("( ; )", "", $output);

    [5] Save and close the file

    Error is fixed.


    Please feel free to get back to me.

    -- Pradeep Somani
    Thank you, I resolved the problem

  7. #17
    Join Date
    Jan 2007
    Location
    USA!
    Posts
    128

    Default Re: Deprecated: Function ereg_replace() is deprecated

    Quote Originally Posted by pradeep View Post
    Hi,

    Just follow following steps -

    [1] Please open the file misc.inc.php
    [2] Go to the line 144
    [3] You will find code -
    $output = ereg_replace (";", "", $output);

    [4] Change the code to -
    $output = preg_replace ("( ; )", "", $output);

    [5] Save and close the file

    Error is fixed.


    Please feel free to get back to me.

    -- Pradeep Somani
    Thank you - I so appreciate this! It resolved my problem. :-)

  8. #18
    Join Date
    Jan 2007
    Location
    USA!
    Posts
    128

    Default Re: Deprecated: Function ereg_replace() is deprecated

    Quote Originally Posted by greengiant View Post
    Open-Realty does not support PHP 5.3 at this time. For the next 2.6.0 release we will be adding support for 5.3 in the meantime you should stick with PHP 5.2.x
    Sadly, some of us don't have a choice on the PHP upgrading as it is determined by our hosting providers. They upgraded to 5.3, which broke all of my sites running OR.

    Thankfully, I found the work around in OR's forum to use until I can upgrade my OR to the newer version. :-)

Similar Threads

  1. RSS function
    By opalweb in forum General Help (CLOSED)
    Replies: 1
    Last Post: 06-11-2007, 04:18 AM
  2. Replies: 5
    Last Post: 09-24-2006, 04:38 PM
  3. how do we use the mls function in or2.2
    By easyweb in forum General Help (CLOSED)
    Replies: 1
    Last Post: 04-10-2006, 11:26 AM
  4. GetPrice function - pls help
    By iceman in forum HELP (CLOSED)
    Replies: 2
    Last Post: 03-11-2004, 08:32 AM
  5. Newsletter function
    By branflake2267 in forum Feature Request (CLOSED)
    Replies: 2
    Last Post: 09-20-2003, 03:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •