Jump to content
MakeWebGames

Recommended Posts

Posted

I have got mccodes redux and am using hosting24.com but the cron jobs wont work so does anyone no a good hosting site that runs working crons and supports mccodes redux ?

Posted

The crons don't work because you have most likely set them up wrong.

Posted (edited)
How are you putting them in ecactly?

And what errors are you getting?

i am using time stamps at the moment but will add the cron jobs now and screen shot the error

my host says i need to use this command

php -f /home/YOUR_CPANEL_USERNAME/public_html/file.php

so what do i need to add to the command?

 

<br />

<b>Warning</b>: session_regenerate_id() [<a href='function.session-regenerate-id'>function.session-regenerate-id</a>]: Cannot regenerate session id - headers already sent in <b>/home/crimmewa/public_html/Global/globals_nonauth.php</b> on line <b>31</b><br />

 

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>406 Not Acceptable</title>

</head><body>

<h1>Not Acceptable</h1>

<p>An appropriate representation of the requested resource /crons/cron_minute.php could not be found on this server.</p>

<p>Additionally, a 404 Not Found

error was encountered while trying to use an ErrorDocument to handle the request.</p>

</body></html>

Edited by chavdave
Posted

I have never used that command and am not too sure about this host, ive tried using them and I cant even get a webpage to display

php -f /home/YOUR_CPANEL_USERNAME/public_html/file.php

php -f /home/YOUR_CPANEL_USERNAME/public_html/file.php

im assuming you just follow the path they gave you

And I believe you username is that wierd number they give you and file.php is the actual file like minute_cron.php or whatever its called

And if you need a code just get it from your config.php and add after the .php?code=codeinconfig.php

And to set them they should have settings to run the cron at different times so depending on what cron your setting up you choose that setting

For example your day cron will be set up using the everyday setting

Posted

I did some searching around in the forums and google and the only thing I found is this thread in the archives here:

http://makewebgames.io/archive/index.php/t-35743.html?

Basically what the guy did was used:

curl http://www.yourdomain.com/cron_minute.php?code=mygamecode >/dev/null 2>&1

The "mygamecode" again is the "code" in config.php. You just copy and paste it over the mygamecode and change yourdomain to whatever it really is. The >/dev/null 2>&1 I guess disables the email for that cron.

Then just set up the times using the dropdown menus when you are adding the cron in your cron jobs area most places ive seen have the dropdowns

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...