PDA

View Full Version : Something wrong with my website


Duality
11-03-2006, 03:03 PM
On www.fga.bz, the link code isn't working, the
"? Total Videos:
? Total Views:
? Viewed Today:

? Online Now: "
Isn't working either. I upgraded from v.5 but I'm not sure if that's the problem.

kip
11-03-2006, 03:41 PM
Let me look in to this. I see your getting an error:

Warning: rand() expects parameter 2 to be long, string given in /home/dualreal/public_html/fga/functions/cache_update.php on line 7

blank
11-03-2006, 04:05 PM
Let me look in to this. I see your getting an error:

Warning: rand() expects parameter 2 to be long, string given in /home/dualreal/public_html/fga/functions/cache_update.php on line 7

That error tells me the config isn't pulling any information at all. That error is why things like the stats aren't showing because the cache can't be built.

Check your DB to see if there is still a config table. OR hardcode that info into config.php

kleszcz
11-03-2006, 05:25 PM
Same problem. It should fix your nasty warnings turned off. Try... ;)

Change functions/cache_update.php on line 7:
$randnum = rand(1,$cache_update); if ($randnum == "1") {
to:
$randnum = rand(1,intval($cache_update)); if ($randnum == "1") {

kip
11-03-2006, 05:28 PM
Thanks Kleszcz for the support.

We will test this and add this to the main script.

Duality
11-03-2006, 05:52 PM
It works. Thanks a lot kleszcz!