WordVertiser Script Error !

Discussion in 'PHP' started by Red_Virus, Apr 27, 2007.

  1. #1
    Hi Guys,

    I just installed the WordVertiser script which was shared for free on DP forums.

    But I am getting the following error after installation on the homepage.

    Fatal error: Cannot redeclare date_format() in /home/tagonli/public_html/lib/lib_common.php on line 279

    Does anyone know, how do u fix this error ! Please post the fix on this thread.

    Thanks in advance.
     
    Red_Virus, Apr 27, 2007 IP
  2. brealmz

    brealmz Well-Known Member

    Messages:
    335
    Likes Received:
    24
    Best Answers:
    3
    Trophy Points:
    138
    #2
    hi,
    im really unaware about wordvertiser.

    i search at php.net and found out that date_format() was implemented at php 5 - 5.1.0
    so it just means that if wordvertiser was developed under php below v.5 it will give that kind of error.
    if i were you ill do this.
    replace all date_format accross all files into some other function name (e.g date_format_old)
    if youre using editor like ultraedit it will be no problem replacing all occurence at once.

    i assume you have a backup copy so you can rollback anything if you do that.
     
    brealmz, Apr 27, 2007 IP
  3. Red_Virus

    Red_Virus Well-Known Member

    Messages:
    3,756
    Likes Received:
    249
    Best Answers:
    0
    Trophy Points:
    135
    #3
    Hi, I tried what u said brealmz, But that is also not working, U are correct that the script is coded for the older versions of php.

    I am sharing original WordVertiser script here, Can some one please fix this script for me.

    http://rapidshare.com/files/28318024/WordVertiser.zip.html

    Please help me & thanks in advance.
     
    Red_Virus, Apr 27, 2007 IP
  4. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Change the function date_format() -> achievo_date_format this may solve your problem. Try this once.
     
    Subikar, Apr 28, 2007 IP
  5. Red_Virus

    Red_Virus Well-Known Member

    Messages:
    3,756
    Likes Received:
    249
    Best Answers:
    0
    Trophy Points:
    135
    #5
    Not working either..
     
    Red_Virus, Apr 28, 2007 IP
  6. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #6
    What the error it is showing now can u please show us.
     
    Subikar, Apr 28, 2007 IP
  7. Red_Virus

    Red_Virus Well-Known Member

    Messages:
    3,756
    Likes Received:
    249
    Best Answers:
    0
    Trophy Points:
    135
    #7
    Hi Subikar, I tried installing it on http://www.tagonlinks.com & now I am getting the following error after changing the function name to function achievo_date_format


     
    Red_Virus, Apr 28, 2007 IP
  8. brealmz

    brealmz Well-Known Member

    Messages:
    335
    Likes Received:
    24
    Best Answers:
    3
    Trophy Points:
    138
    #8
    check your database.....
     
    brealmz, Apr 28, 2007 IP