NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Help! PhP issue on image.ws

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

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 03-15-2008, 06:49 AM THREAD STARTER               #1 (permalink)
Senior Member
 
LittleBigMan's Avatar
Join Date: Jan 2004
Location: Heart of England
Posts: 1,679
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
????: NamePros.com http://www.namepros.com/programming/444847-help-php-issue-on-image-ws.html

...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
__________________
DomainProfiles :wave:
LLL.orgs NNN.orgs LLLL.com LL.bz
LittleBigMan is offline  
Old 03-15-2008, 03:36 PM   #2 (permalink)
Danltn.com
 
Daniel's Avatar
Join Date: May 2007
Location: Danltn.com / Nottingham, UK
Posts: 1,201
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, 03:05 AM THREAD STARTER               #3 (permalink)
Senior Member
 
LittleBigMan's Avatar
Join Date: Jan 2004
Location: Heart of England
Posts: 1,679
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
__________________
DomainProfiles :wave:
LLL.orgs NNN.orgs LLLL.com LL.bz
Last edited by LittleBigMan; 03-16-2008 at 03:32 AM.
LittleBigMan is offline  
Old 03-16-2008, 05:37 AM   #4 (permalink)
Danltn.com
 
Daniel's Avatar
Join Date: May 2007
Location: Danltn.com / Nottingham, UK
Posts: 1,201
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, 06:04 AM   #5 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,069
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, 05:38 AM THREAD STARTER               #6 (permalink)
Senior Member
 
LittleBigMan's Avatar
Join Date: Jan 2004
Location: Heart of England
Posts: 1,679
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
__________________
DomainProfiles :wave:
LLL.orgs NNN.orgs LLLL.com LL.bz
LittleBigMan is offline  
Old 03-17-2008, 04:02 PM   #7 (permalink)
Senior Member
Join Date: Apr 2005
Location: Joliet, Illinois
Posts: 1,177
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 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  
Old 03-17-2008, 04:25 PM   #8 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
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
????: NamePros.com http://www.namepros.com/showthread.php?t=444847

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


Ian
__________________
Nabaza.com - Amaia
weblord is offline  
Old 03-19-2008, 02:52 AM THREAD STARTER               #9 (permalink)
Senior Member
 
LittleBigMan's Avatar
Join Date: Jan 2004
Location: Heart of England
Posts: 1,679
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
__________________
DomainProfiles :wave:
LLL.orgs NNN.orgs LLLL.com LL.bz
LittleBigMan is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 02:21 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger