[advanced search]
Results from the most recent live auction are here.
24 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Domain Name Industry Newsletter
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 03-15-2008, 06:49 AM   · #1
LittleBigMan
Senior Member
 
LittleBigMan's Avatar
 
Location: Heart of England
Trader Rating: (116)
Join Date: Jan 2004
Posts: 1,680
NP$: 775.40 (Donate)
LittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond repute
Help! PhP issue on image.ws

Guys

Can anyone help me please? I was forced to take a site down now for quite some time due to error messages, but am keen to get this site back online again.

I have managed to get the site to load, but with a persistent error on every page. I have checked what I can, but can't seem to resolve this.

The error is...

Notice: Object of class stdClass could not be converted to int in /home/imagews/public_html/includes/config.inc.php on line 35

...as you'll note when accessing the site http://www.image.ws

Perhaps it's a version issue between script and server support I don't know, but I thought most modern offerings now were backwards compatible with such PhP scripts (.i.e version 4 & 5 supported on same server)

If I cant resolve, I'll probably dump the script and start over

Any help would be much appreciated

Thanks

Ian


Please register or log-in into NamePros to hide ads
LittleBigMan is offline   Reply With Quote
Old 03-15-2008, 03:36 PM   · #2
Daniel
Danltn.com
 
Daniel's Avatar
 
Name: Daniel Neville
Location: Danltn.com / Nottingham, UK
Trader Rating: (65)
Join Date: May 2007
Posts: 1,185
NP$: 0.56 (Donate)
Daniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond repute
Ethan Allen Fund Ethan Allen Fund
Paste config.php around line 35. Seems you're trying to get an integer value out of a class.
Daniel is offline   Reply With Quote
Old 03-16-2008, 03:05 AM   · #3
LittleBigMan
Senior Member
 
LittleBigMan's Avatar
 
Location: Heart of England
Trader Rating: (116)
Join Date: Jan 2004
Posts: 1,680
NP$: 775.40 (Donate)
LittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond repute
Thanks Daniel

I'll try that but not sure where line 35 is within the file. as I'm not a coder

Presumably we're talking about the config.inc.php file, but I'm also puzzled if any amendments are necessary to the file, as I haven't edited anything since it worked perfectly well before

I dont think I'm allowed to past code here, as it may contravene the licence agreement, but it would have been useful.

Cheers

Ian

Last edited by LittleBigMan : 03-16-2008 at 03:32 AM.
LittleBigMan is offline   Reply With Quote
Old 03-16-2008, 05:37 AM   · #4
Daniel
Danltn.com
 
Daniel's Avatar
 
Name: Daniel Neville
Location: Danltn.com / Nottingham, UK
Trader Rating: (65)
Join Date: May 2007
Posts: 1,185
NP$: 0.56 (Donate)
Daniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond repute
Ethan Allen Fund Ethan Allen Fund
Try just suppressing errors on it, seeing as it's only a notice.

Alternatively, count to 35 and post that line. from config.inc.php.
Daniel is offline   Reply With Quote
Old 03-16-2008, 06:04 AM   · #5
Peter
NamePros Staff
 
Peter's Avatar
 


Name: Peter
Location: Scotland
Trader Rating: (47)
Join Date: Nov 2003
Posts: 4,300
NP$: 1243.15 (Donate)
Peter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud of
Child Abuse Save The Children Save The Children
Do not supress the error. The reason it worked befoe is because you were on a PHP 4 machine now you are using PHP 5.

There was a big change in how PHP handled objects when the update happened.

If you post the whole of the config script and we can have a look.

Regarding where line 35 is, it is simply the 35th line within the script but if you post the whole lot (remember to edit any private data like passwords etc) it will be easier to see the problem.

It might be a case that the clas itself is in a different folder but we will come to that if it happens.
Peter is offline   Reply With Quote
Old 03-17-2008, 05:38 AM   · #6
LittleBigMan
Senior Member
 
LittleBigMan's Avatar
 
Location: Heart of England
Trader Rating: (116)
Join Date: Jan 2004
Posts: 1,680
NP$: 775.40 (Donate)
LittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond repute
Thanks Peter - will do

Regards

Ian
LittleBigMan is offline   Reply With Quote
Old 03-17-2008, 04:02 PM   · #7
RageD
Senior Member
 
Name: Dennis
Location: Joliet, Illinois
Trader Rating: (43)
Join Date: Apr 2005
Posts: 1,151
NP$: 351.10 (Donate)
RageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to behold
Child Abuse
If you have control of the server or can request php 4 from your host do it. Possibly under the extension .php4 then you can just make the script config.inc.php4 and it will be parsed by PHP 4 rather than 5!

-RageD

NOTE: To be able to do this, you'll need to have PHP 4 installed somewhere else properly so and so it doesn't conflict with your PHP 5 installation. (Unless you wish to completely downgrade)
RageD is offline   Reply With Quote
Old 03-17-2008, 04:25 PM   · #8
weblord
www.1weblord.com
 
weblord's Avatar
 
Name: William R. Nabaza - williamrnabaza.com
Location: Philippines - www.Nabaza.com
Trader Rating: (242)
Join Date: Dec 2005
Posts: 20,915
NP$: 21657.08 (Donate)
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
Autism Protect Our Planet
just download metapad and it's free
http://liquidninja.com/metapad/
open that file using metapad
then press Ctrl+G or click on Edit on the menu and then Go To Line and type 35

Originally Posted by LittleBigMan
Thanks Daniel

I'll try that but not sure where line 35 is within the file. as I'm not a coder


Ian

weblord is offline  
  Reply With Quote
Old 03-19-2008, 02:52 AM   · #9
LittleBigMan
Senior Member
 
LittleBigMan's Avatar
 
Location: Heart of England
Trader Rating: (116)
Join Date: Jan 2004
Posts: 1,680
NP$: 775.40 (Donate)
LittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond reputeLittleBigMan has a reputation beyond repute
Thanks for all the help guys. I'm exploring a few options thanks to feedback via post/pm. It's much appreciated. I'll post back progress.

Thanks again
LittleBigMan is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Website Header Design http://www.mobisitetrader.com/ RealTechNetwork
Advertise your business at NamePros
All times are GMT -7. The time now is 07:06 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0