Unstoppable Domains

Help! PhP issue on image.ws

Spacemail by SpaceshipSpacemail by Spaceship
Watch
Impact
6
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
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Paste config.php around line 35. Seems you're trying to get an integer value out of a class.
 
0
•••
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:
0
•••
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.
 
0
•••
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.
 
0
•••
Thanks Peter - will do

Regards

Ian
 
0
•••
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)
 
0
•••
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

LittleBigMan said:
Thanks Daniel

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


Ian
 
0
•••
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
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back