Jump to content
MakeWebGames

Recommended Posts

Posted

Hi guys,

A game I am currently working on that is still under construction recently got hacked and they cause quite a few issues within the game although most of them I have resolved although there is one that’s being a pain! The crons won’t work at all, even when run manually they don’t work. They don’t throw and error when run manually either!

Posted (edited)

Skype message me at around 1900-2100, and I'll look into it for you :)

 

  • Is error reporting on?
  • Is your config code correct?
  • Can you echo text?
  • Have you run the queries manually, to see if they are syntactically correct?
  • Are the files connected to the database?
  • Triple check your error reporting, and run cd /var/log/httpd/; tail -f error_log in console
  • ...
Edited by sniko
Posted

Thanks Sniko,

- I think error reporting is on, errors usually show up on files.

- Config code is correct

- No it doesn’t echo texts it’s just blank

- Yes

- Yes

Posted (edited)
Thanks Sniko,

- I think error reporting is on, errors usually show up on files.

- Config code is correct

- No it doesn’t echo texts it’s just blank

- Yes

- Yes

 

  • What error reporting level are you on? Make it as verbose as possible.
  • If text isn't echo'ing, most likely - from what I remember - the config code is incorrect, I think.
Edited by sniko
Posted
  • What error reporting level are you on? Make it as verbose as possible.
  • If text isn't echo'ing, most likely - from what I remember - the config code is incorrect, I think.

Not 100% sure, ill speak to you on Skype tonight

Posted
How do I go about running it manually?

In your browser;

http://game.com/cron_hour.php?code=<code from config.php>

 

In console;

php cron_hour.php <code from config.php>
Posted

This is fixed now, thanks for the help Sniko! Ran the code and it worked then noticed the code in the config was different to what I had used in cron jobs :P! thanks!

Posted

If you have access on your server it is probably a good idea to remove the crons from your http folder and move then to the directory under it. This way users cant mess with your crons without server access (and if they have this crons are the least of your worries :P)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...