Wrong value type sent to the database. Integer expected. (last_update)

Started by clothahump, March 18, 2012, 08:47:59 AM

Previous topic - Next topic

clothahump

Moved servers overnight now getting errors "Wrong value type sent to the database. Integer expected. (last_update)"

http://www.tropicalfishforums.co.uk/index.php?action=dlattach;attach=68912;type=avatar

Wrong value type sent to the database. Integer expected. (last_update)
Function: sessionGC

File: /home/tropical/public_html/Sources/Load.php
Line: 2512

kat

Any chance of attaching Load.php to your next post, so that we can have a gander?

clothahump

Getting similar now with mobiquo.

http://www.tropicalfishforums.co.uk/index.php?http://www.tropicalfishforums.co.uk/mobiquo/mobiquo.php

Wrong value type sent to the database. Integer expected. (last_update)
Function: sessionGC

File: /home/tropical/public_html/mobiquo/include/Load.php
Line: 2362

kat

Is that file from the first site or the second?

Line 2362 in the file you attached is simply:

}

Whereas on the first site, line 2512 is:

array(

which looks totally wrong, to me.

Try renaming the file to something like Load0.php and put a virgin copy of the file in there, instead (So you can delete it and rename the original back, if you need to) and see what happens.

clothahump



clothahump

In both places or does the script call the file form one source?

kat

Well, to be honest, not much of that file, around that area, looks like the original. There's nothing in there that suggests there's a mod that's altered the code, either.

It rather looks as though someone's edited it, manually, and known even less about coding than I do.

But, I could be wrong, which is why I made the suggestion.

clothahump



clothahump

All it did was wipe out the site completely, anybody else know what is going on?

kat

You renamed the file to Load0.php and put a virgin copy of the file in there?

That wiped your site out? I actually find that difficult to believe, depending what you mean by "Wiped out".

No way should that have happened. The worst that should have happened is that any mods that you have, which have changed that file, wouldn't have worked.

So, I guess we're looking at some deeper problem going down.

clothahump

White page with a virgin copy in place, switched back to the old one and all back and running, still getting the errors.

kat

Is it me? Or does that really not make any sense?

Let me give the support team a wave and see if it makes any sense to them.

clothahump

I changed the name of the file on the server, uploaded a fresh copy of Load.php, this caused white page, removed Load.ph and renamed original and all fine apart from still getting errors.

Kermit

Can you please attach the related file again ? Because the file which you attached have something like this in the beginning

application/x-httpd-php Load.php
PHP script text


which shouldn't be there
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Matthew K.

Clear your browsers cache and cookies. If that doesn't work, run repair_settings.php.

What is repair_settings.php?

clothahump

Quote from: Kermit on March 20, 2012, 04:33:42 PM
Can you please attach the related file again ? Because the file which you attached have something like this in the beginning

application/x-httpd-php Load.php
PHP script text


which shouldn't be there


Matthew K.


clothahump

So I will need to get all the members to clear their cache and cookies as well for it to work then?

Advertisement: