Results 1 to 10 of 10

Thread: Getting fatal errors when my host switched to PHP5

  1. #1
    ideavirus is offline Registered
    Join Date
    Jun 2002
    Location
    Bangalore
    Posts
    156

    Default Getting fatal errors when my host switched to PHP5

    Hi,

    My web host recently switched to PHP5 and my site www.hostoholic.com is now broken.

    The error, i am getting is;

    Fatal error: Cannot redeclare clsUsers::$date_format in /path/to/lib/users.class.php on line 58

    How can i possible fix this problem? Any php5 patch for v3.x of IndexU?

    Thank you for any help.
    Last edited by ideavirus; 11-20-2007 at 11:44 PM.
    Thru' the Unknown, We Shall find the New !
    DotGlum : My Online Identity
    DearSunShine :: A Beautiful Mind | MyBrandInc : Bitten By the StartUp Bug !?!
    InstallBot : Script Installation service ! | HostoHolic : WebHosting Directory !

  2. #2
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Version 3.x is unsupported and came out before php5 was a twinkle in someone's eye.

    Search the forum as someone else had recently had this issue and found a way around it, other than that you're pretty much on your own.

    Why not upgrade?

  3. #3
    ideavirus is offline Registered
    Join Date
    Jun 2002
    Location
    Bangalore
    Posts
    156

    Default

    Isn't there a patch for 3.x version to support php 5.x?

    Upgrading would put more demand on me to custom design the entire site agian which is why I am holding back.
    Thru' the Unknown, We Shall find the New !
    DotGlum : My Online Identity
    DearSunShine :: A Beautiful Mind | MyBrandInc : Bitten By the StartUp Bug !?!
    InstallBot : Script Installation service ! | HostoHolic : WebHosting Directory !

  4. #4
    ideavirus is offline Registered
    Join Date
    Jun 2002
    Location
    Bangalore
    Posts
    156

    Default

    Looks like I found a fix for the issue... in this thread Fatal error

    Could someone confirm if doing this...

    I commented out line 58 in users.class.php and lines 148 & 149 in links.class.php and everything is normal once again
    Would resolve the issue?

    Thanks
    Thru' the Unknown, We Shall find the New !
    DotGlum : My Online Identity
    DearSunShine :: A Beautiful Mind | MyBrandInc : Bitten By the StartUp Bug !?!
    InstallBot : Script Installation service ! | HostoHolic : WebHosting Directory !

  5. #5
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    No there is no patch, because version 3 was unsupported by the time php5 came around. Old versions aren't supported and this is one reason why. There would need to be patches for 10 different releases just to support different software such as PHP and mysql and apache.

    Try commenting those lines, if it doesn't work uncomment them. Would only take a minute to give it a try.

  6. #6
    ideavirus is offline Registered
    Join Date
    Jun 2002
    Location
    Bangalore
    Posts
    156

    Default

    Hi,

    I tried the above commenting of lines. But did not work. The problem still persists.

    Thank you for any help.

    Line 58 for me is - var $date_format;
    Line 148 is - $result = $this->db_connect->Execute($query);
    Line 149 - is a blank line

    I commented out these 3 lines, but no success.

    Thanks for any help.

    Cheers
    Thru' the Unknown, We Shall find the New !
    DotGlum : My Online Identity
    DearSunShine :: A Beautiful Mind | MyBrandInc : Bitten By the StartUp Bug !?!
    InstallBot : Script Installation service ! | HostoHolic : WebHosting Directory !

  7. #7
    ideavirus is offline Registered
    Join Date
    Jun 2002
    Location
    Bangalore
    Posts
    156

    Default

    Hi,

    The problem seems to be partially fixed now.
    However, when the site loads on certain pages including the home page, I am gettign the following error...

    Fatal error: Call to a member function Execute() on a non-object in /path/to/lib/adodb/adodb-session.php on line 154
    How can i get rid of this error?

    Thanks for any help

    Cheers
    Thru' the Unknown, We Shall find the New !
    DotGlum : My Online Identity
    DearSunShine :: A Beautiful Mind | MyBrandInc : Bitten By the StartUp Bug !?!
    InstallBot : Script Installation service ! | HostoHolic : WebHosting Directory !

  8. #8
    ideavirus is offline Registered
    Join Date
    Jun 2002
    Location
    Bangalore
    Posts
    156

    Default

    I had to comment out line # 154, #156 and #160 also in adodb-session.php to overcome other fatal errors.

    Now by commenting out these lines in 3 files... does it affect any of teh functionality of the site??

    Thanks for any help or inputs.

    Cheers
    Thru' the Unknown, We Shall find the New !
    DotGlum : My Online Identity
    DearSunShine :: A Beautiful Mind | MyBrandInc : Bitten By the StartUp Bug !?!
    InstallBot : Script Installation service ! | HostoHolic : WebHosting Directory !

  9. #9
    bilicosouza is offline Registered User
    Join Date
    Mar 2008
    Posts
    1

    Thumbs down New error!

    After commenting on the line 58, "users.class.php" and the lines 148 and 149, "links.class.php" I see the error below. Anyone know what can be?


    Parse error: syntax error, unexpected ';', expecting T_STRING or T_VARIABLE or '$' in /home/itredco/public_html/lib/link.class.php on line 1136

  10. #10
    Aircut is offline Registered User
    Join Date
    Sep 2004
    Posts
    47

    Exclamation

    $date_format is declared twice in these files:

    /lib/users.class.php
    /resources/lib/link.class.php

    comment out one of the declaration and the site will show up.

    HOWEVER

    add.php and modify.php have a bug that does not update the site title.

    looking at the code, i must admit, i have seen better programming.

    anyhow, does someone debug add.php/modify.php for php 5?

Similar Threads

  1. Fatal errors!!
    By SSB in forum v5.x
    Replies: 3
    Last Post: 08-19-2007, 08:04 PM
  2. Fatal PHP Errors after Server Migration
    By sweepsmaster in forum v5.x
    Replies: 7
    Last Post: 11-22-2005, 07:07 PM
  3. :( fatal errors on search.php page
    By life in forum v5.x
    Replies: 1
    Last Post: 09-29-2005, 01:52 AM
  4. Fatal Errors please help
    By searchservers in forum v5.x
    Replies: 5
    Last Post: 09-21-2005, 12:10 AM
  5. Replies: 2
    Last Post: 03-29-2004, 09:06 PM

Posting Permissions

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