Go Back   NiceCoder Community Forums > Nicecoder Products > IndexU > v3.2
Register Projects FAQ Members List Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-20-2007, 10:24 PM
Registered
 
Join Date: Jun 2002
Location: Bangalore
Posts: 156
ideavirus is on a distinguished road
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.
__________________
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 !

Last edited by ideavirus; 11-20-2007 at 11:44 PM.
Reply With Quote
  #2 (permalink)  
Old 11-20-2007, 11:30 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,018
Bruceper is on a distinguished road
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?
Reply With Quote
  #3 (permalink)  
Old 11-20-2007, 11:35 PM
Registered
 
Join Date: Jun 2002
Location: Bangalore
Posts: 156
ideavirus is on a distinguished road
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 !
Reply With Quote
  #4 (permalink)  
Old 11-20-2007, 11:41 PM
Registered
 
Join Date: Jun 2002
Location: Bangalore
Posts: 156
ideavirus is on a distinguished road
Default

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

Could someone confirm if doing this...

Code:
Content visible to License Owner only.
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 !
Reply With Quote
  #5 (permalink)  
Old 11-21-2007, 12:47 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,018
Bruceper is on a distinguished road
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.
Reply With Quote
  #6 (permalink)  
Old 11-22-2007, 07:41 AM
Registered
 
Join Date: Jun 2002
Location: Bangalore
Posts: 156
ideavirus is on a distinguished road
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 !
Reply With Quote
  #7 (permalink)  
Old 11-22-2007, 07:46 AM
Registered
 
Join Date: Jun 2002
Location: Bangalore
Posts: 156
ideavirus is on a distinguished road
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...

Code:
Content visible to License Owner only.
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 !
Reply With Quote
  #8 (permalink)  
Old 11-22-2007, 07:50 AM
Registered
 
Join Date: Jun 2002
Location: Bangalore
Posts: 156
ideavirus is on a distinguished road
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 !
Reply With Quote
  #9 (permalink)  
Old 03-29-2008, 08:05 AM
Registered User
 
Join Date: Mar 2008
Posts: 1
bilicosouza is on a distinguished road
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
Reply With Quote
  #10 (permalink)  
Old 09-25-2008, 07:39 AM
Registered User
 
Join Date: Sep 2004
Posts: 47
Aircut is on a distinguished road
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?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal errors!! SSB v5.x 3 08-19-2007 08:04 PM
Fatal PHP Errors after Server Migration sweepsmaster v5.x 7 11-22-2005 07:07 PM
:( fatal errors on search.php page life v5.x 1 09-29-2005 01:52 AM
Fatal Errors please help searchservers v5.x 5 09-21-2005 12:10 AM
Numerous Fatal Errors when I moved servers Rewdog v5.x 2 03-29-2004 09:06 PM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 12:52 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate