[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 03-15-2008, 05:49 AM   #1 (permalink)
Senior Member
 
LittleBigMan's Avatar
 
Join Date: Jan 2004
Location: Heart of England
Posts: 1,680
775.40 NP$ (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
LittleBigMan is offline  
Old 03-15-2008, 02:36 PM   #2 (permalink)
Danltn.com
 
Daniel's Avatar
 
Join Date: May 2007
Location: Danltn.com / Nottingham, UK
Posts: 1,201
13.51 NP$ (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  
Old 03-16-2008, 02:05 AM   #3 (permalink)
Senior Member
 
LittleBigMan's Avatar
 
Join Date: Jan 2004
Location: Heart of England
Posts: 1,680
775.40 NP$ (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 02:32 AM.
LittleBigMan is offline  
Old 03-16-2008, 04:37 AM   #4 (permalink)
Danltn.com
 
Daniel's Avatar
 
Join Date: May 2007
Location: Danltn.com / Nottingham, UK
Posts: 1,201
13.51 NP$ (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  
Old 03-16-2008, 05:04 AM   #5 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
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.
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Old 03-17-2008, 04:38 AM   #6 (permalink)
Senior Member
 
LittleBigMan's Avatar
 
Join Date: Jan 2004
Location: Heart of England
Posts: 1,680
775.40 NP$ (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  
Old 03-17-2008, 03:02 PM   #7 (permalink)
Senior Member
 
Join Date: Apr 2005
Location: Joliet, Illinois
Posts: 1,194
345.00 NP$ (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)
__________________
New Programming Blog! (Both Web [PHP] and Platform [C/C++]!)
RageD is offline  
Old 03-17-2008, 03:25 PM   #8 (permalink)
NamePros Legend
 
weblord's Avatar
 
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,840
21,700.43 NP$ (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

Quote:
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  
Old 03-19-2008, 01:52 AM   #9 (permalink)
Senior Member
 
LittleBigMan's Avatar
 
Join Date: Jan 2004
Location: Heart of England
Posts: 1,680
775.40 NP$ (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  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 11:42 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85