We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Users always online | Forum

Topic location: Forum home » Support » General Questions
Chris
Chris Jan 28 '14
I know this has to do with my cron jobs, and I've researched the forum and tried some solutions but I'm out of options.


My users are always online and no one is receiving replies to forum topics. Any help? Thanks!

Kieron H Leader
Kieron H Jan 28 '14
try deleting your cron job and re adding it 
Chris
Chris Jan 28 '14
Still nothing.
ross Team
ross Jan 29 '14
If you Cron is running those users should have been loged out automatically after 30 mins. 

30 mins timelimit is set here: ow_system_plugins/base/bol/user_service.php:
method - deleteExpiredOnlineUsers

So check this file as well. You might have set another timelimit there. 
ross Team
ross Jan 29 '14
try also to run cron locally: http://docs.oxwall.org/install:cron
Chris
Chris Jan 29 '14
Ross, what line am I looking for in that file?
ross Team
ross Jan 29 '14

public function deleteExpiredOnlineUsers()

    {

        $timestamp = time() - 30 * 60;


        $this->userOnlineDao->deleteExpired($timestamp);

Chris
Chris Jan 30 '14
Ok, that's what I thought. My coding looks exact.
Kieron H Leader
Kieron H Jan 30 '14
try declaring your cron by going to youriste.com/ow_cron/run.php/ and see if the users go offline  
Chris
Chris Feb 1 '14
This is what I got when I went to that URL


"Parse error: syntax error, unexpected ':' in /home/tol/public_html/ow_cron/run.php on line 51"

Patricia Zorrilla Leader
Patricia Zorrilla Jul 12 '14

I have read all the forum post is looking for "Always online" understand that if my users are always connected and everything works well is me because of cron. 

My command line is: 

/ usr / bin / curl http://www.mysite/ow_cron/run.php>; / dev / null 

and changing it to: 

/ usr / bin / curl http://www.mysite.com/ow_cron/run.php>; httpdocs / ow_cron / cronrun.txt 

creates the file: cronruntxt of 0 bytes. 

Can anyone give me an idea or help? 

ross Team
ross Jul 14 '14
Patricia, if your users stay always online then your cron is not working properly. Contact your hosting provider to help you to configure it right. 
Patricia Zorrilla Leader
Patricia Zorrilla Jul 14 '14

Ross, all other cron tasks run successfully, including complicated plugins like this: http://www.oxwall.org/store/item/530 ;

Everything works ... except that I have permanently connected 500 members of 661's in total. 

Any help or idea? 

Patricia Zorrilla Leader
Patricia Zorrilla Jul 15 '14

I get the current timestamp value of execution: 

BASE_Cron :: deleteExpiredOnlineUserProcess 

from table: 

ow_base_cron_job that has executed this. 

Translating timestamp value of the image 

http://www.unixtimestamp.com/index.php ;

EVERY MINUTE I see running as scheduled and have as is recommended by Oxwall (I have also tested every 5 to 10 minutes). 

But it does not work. Please help!! 

Patricia Zorrilla Leader
ross Team
ross Jul 16 '14
Do you have any third-party plugins like autonline users or login as a user? 

Do not pay attention to this table. Please enable debug mode and go to www.yourdomain.com/ow_cron/run.php do you get any error or message?

Patricia Zorrilla Leader
Patricia Zorrilla Jul 16 '14

No warning or error, and end up with: 

Not Found 


The requested URL / was not found e500.php on this server. 


Additionally, a 404 Not Found Error was Encountered while trying to use an ErrorDocument to handle the request. 

ross Team
ross Jul 16 '14
Have you enabled debug mode? 

Make sure you have e500.php file on your server. If yes, what is the permission for it?

Patricia Zorrilla Leader
Patricia Zorrilla Jul 16 '14

Yes, I activated the debug mode. 

No, there is no file e500.php

ross Team
ross Jul 16 '14
well, it should be check the default software package and transfer it to your server. 
Pages: 1 2 »