*

Recent

Author Topic: errors  (Read 5639 times)

wibble

  • Newbie
  • *
  • Posts: 5
  • Force: +0/-0
errors
« on: July 03, 2009, 10:21:48 AM »
http://www.arcadehot.co.uk/  I have errors on right hand side and cannot work out why help would be great :)

Adam LaCombe

  • Sr. Member
  • ****
  • Posts: 433
  • Force: +17/-0
    • My Blog
Re: errors
« Reply #1 on: July 03, 2009, 10:48:40 AM »
Try opening up your functions.php file located /includes/functions.php

And look to see from line 40 to line 52 reads:
Code: [Select]
function countusersonline() {
   $count = 0;

   $handle = opendir(session_save_path());
   if ($handle == false) return 1;

   while (($file = readdir($handle)) != false) {
       if (ereg("^sess", $file)) $count++;
   }
   closedir($handle);

   return $count;
}

If so and it still spits out that error Im not sure but it might be a server configuration.
You might also want to talk to Kurt or admin, they probably would know more about.

wibble

  • Newbie
  • *
  • Posts: 5
  • Force: +0/-0
Re: errors
« Reply #2 on: July 03, 2009, 11:05:16 AM »
Hi thanks for the response yes it does read that I am not sure why :( thanks for responding and trying to help though

Danny

  • Newbie
  • *
  • Posts: 41
  • Force: +5/-0
Re: errors
« Reply #3 on: July 03, 2009, 11:43:10 AM »
Yeah, it's the server settings remove the line:
Code: [Select]
Users Online: <? echo countusersonline(); ?><br />
in your footer.php file in the template directory, or contact your host to change the settings.

wibble

  • Newbie
  • *
  • Posts: 5
  • Force: +0/-0
Re: errors
« Reply #4 on: July 03, 2009, 03:11:47 PM »
What settings do I need host to change ?

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: errors
« Reply #5 on: July 03, 2009, 06:18:38 PM »
I don't see the error. You take care of it?

wibble

  • Newbie
  • *
  • Posts: 5
  • Force: +0/-0
Re: errors
« Reply #6 on: July 04, 2009, 11:07:56 AM »
I have removed the code for now until I can find out how to get it to work correct
Any Ideas ?

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: errors
« Reply #7 on: July 04, 2009, 01:41:48 PM »
Without knowing what the error codes were, not really. Sorry. It's like a doctor needing to know symptoms before he can figure out what's wrong.

wibble

  • Newbie
  • *
  • Posts: 5
  • Force: +0/-0
Re: errors
« Reply #8 on: July 05, 2009, 07:44:24 AM »
Users Online:
Warning: opendir() [function.opendir]: SAFE MODE Restriction in effect. The script whose uid is 623 is not allowed to access /tmp owned by uid 0 in /home/random/public_html/includes/functions.php on line 43

Warning: opendir(/tmp) [function.opendir]: failed to open dir: Success in /home/random/public_html/includes/functions.php on line 43
1

Robbie

  • Sr. Member
  • ****
  • Posts: 343
  • Force: +16/-0
Re: errors
« Reply #9 on: July 05, 2009, 10:18:26 AM »
Quote
contact your host to change the settings.


Just tested the download no problems
« Last Edit: July 05, 2009, 12:42:11 PM by admin »

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: errors
« Reply #10 on: July 05, 2009, 12:29:55 PM »
Your host has PHP in safe mode. In order to get around that you will need to contact them. It is not very likely that they will though as it was probably set that way on purpose for security reasons. If that is the case, the only thing you can do is not use the feature that is causing the error.

There is a slight possibility that you might get it to work by changing the permissions on /tmp. It is worth a try, but I would not hold my breath. It is located above the public_html folder, in the very root of your account, on most hosting. Give that a try and let me know, I'm curious now. Sorry we couldn't be of more help, but in this case there isn't much we can even try, it most likely is going to be up to your hosting company.