| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Jan 2004 Location: Heart of England
Posts: 1,679
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Jan 2004 Location: Heart of England
Posts: 1,679
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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.
|
| |
| | #5 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| |
| | #7 (permalink) |
| Senior Member Join Date: Apr 2005 Location: Joliet, Illinois
Posts: 1,177
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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) |
| |
| | #8 (permalink) | ||||
| NamePros Legend Join Date: Dec 2005 Location: Philippines - www.Nabaza.com
Posts: 19,785
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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
| ||||
| |