Razor42 Posted January 27, 2014 Posted January 27, 2014 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! Quote
sniko Posted January 27, 2014 Posted January 27, 2014 (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 January 27, 2014 by sniko Quote
Razor42 Posted January 27, 2014 Author Posted January 27, 2014 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 Quote
sniko Posted January 27, 2014 Posted January 27, 2014 (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 January 27, 2014 by sniko Quote
Razor42 Posted January 27, 2014 Author Posted January 27, 2014 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 Quote
Dayo Posted January 27, 2014 Posted January 27, 2014 when you try to manualy run the cron what HTTP code is being returned 500? Quote
Razor42 Posted January 27, 2014 Author Posted January 27, 2014 How do I go about running it manually? Quote
sniko Posted January 27, 2014 Posted January 27, 2014 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> Quote
Razor42 Posted January 28, 2014 Author Posted January 28, 2014 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! Quote
Dayo Posted January 28, 2014 Posted January 28, 2014 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) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.