Jump to content

Changed Domain Name of hosting server and invoice cron stopped working


Dicko_md

Recommended Posts

Hi

 

I changed the domain name of the web hosting business that I took over a while ago.

 

I changed the cron settings in Settings - Automation settings but since then I have not had any invoices created via the cron.

 

The person who I took the site over from helped me move the site from the old domain name with WHMCS making changes at their side with the license etc.

 

Have I missed somthing ?

 

I also need to update prices of products and domain prices but they dont work in 5.2.7 and I spoke to someone else and they said it was a bug. I need to update before I get the cron setting working with invoicing again though

 

Thanks

 

Martyn

Link to comment
Share on other sites

Hi

 

Yes I have done all that.

 

Is there a special cron for the invoices or another setting?

 

I have 1 cron that runs in admin folder called cron.php - what does that do as its just all random numbers?

 

/usr/bin/php -q /home/*****/public_html/order/admin/cron.php > /dev/null this runs at 5:30am

 

/usr/bin/php -q /home/*****/public_html/order/admin/cron.php escalations > /dev/null this runs at 12:15am

 

 

Thanks

 

Martyn

Link to comment
Share on other sites

there isn't a special cron for invoices - everything should happen at the same time... and as you know you can run it multiple times each day if required.

 

in Utilities -> Logs -> Activity Log are there daily entries for the cron job? i.e does whmcs think the cron job is not running, or it's running but just not sending invoices.

 

btw - I assume there are renewal notices due to be sent out.

Link to comment
Share on other sites

Hi

 

I have a few to change prices of as domain prices wrong.

 

There are no logs for any cron running.

 

I have email templates for invoices created etc

 

Ive set up a new cron to run at 1am tomorrow and the actual command is different from above. I will update you tomorrow as I need to update some invoices first.

 

php -q /home/****/public_html/order/admin/cron.php

Link to comment
Share on other sites

Hi thought id run the cron manually and I got

 

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, webmaster@******.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

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

 

Could the cron.php be corrupt ?

 

Thanks Martyn

Link to comment
Share on other sites

Could the cron.php be corrupt ?

it's possible - but you can just re-upload that file again and see if it makes a difference.

 

aaah forget what I said about running it multiple times per day - the crons documentation page (http://docs.whmcs.com/Crons) says "The cron must be configured to run no more than once per day."... I don't think that is causing your problem, but you might like to remove that second cron job.

 

do you have access to the server error log? I assume not and it doesn't actually exist which is leading to the 404 error.

 

are you hosting this site yourself, or are you using another hosting company - if the latter, then it might be worthwhile getting them to check that other cron jobs are working without an issue on the server.

 

if you can rule out the cron.php isn't corrupt and other server cron jobs are functioning fine, then that should hint at something being wrong with your configuration (either cj or whmcs).

Link to comment
Share on other sites

Hi

 

I will stop one of the cron jobs.

The servers are VPS. I have access to all the server. Which log do you want me to look at ?

 

I host my site and many others (host and resellers)

 

I cant get a cron.php at the moment. I will download one tomorrow.

 

Thanks

 

Martyn

Link to comment
Share on other sites

Many times when you run the cronjob manually, you do so unknowingly as a different user than the one that cron uses. The result is that your user doesn't have appropriate file permissions and such and the script fails, many times giving that 500 Internal Server Error.

 

It's possible, too, that not even your cron user has appropriate permissions to run the necessary jobs, may have an incorrect path to your WHMCS install, etc. Any of those could cause your problems.

 

Probably the easiest way to resolve most normal 500 Internal Errors when running cron manually is to remove every file in the templates_c/ directory first.

 

Also, double check that your cron is pointing to the right path and that all of your whmcs files are owned by the correct user (the ***** in /home/****/).

Link to comment
Share on other sites

Hi

 

Nothing ran this morning again. I looked in the logs but only logs for things Ive done in WHMCS.

 

Ive double checked and the path is correct. Only the domain name changed and no settings changed in regards to access. I changed the name in settings before the above post asked me to check. Is there any other changes apart from whmcs settings and cron jobs that needs updating to run crons ?

 

Ive also uploaded a new cron.php file to make sure its not corrupt and this will run in 15 minutes.

 

Regards

 

Martyn

Link to comment
Share on other sites

Hi

 

I tried this in ssh and I got the error line: Segmentation fault (core dumped)

 

Is that what you expected?

 

I dont think its php as all other php runs fine as i am aware. The cron is the only thing I have wrong apart from updating all bulk prices which I believe is a 5.2.7 issue.

 

would a east apache update be of any use ?

 

Regards

 

Martyn

Edited by Dicko_md
Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

That's not expected. What you're seeing here indicates a PHP crash is occurring and would suggest there is an issue with your PHP installation, for example a malfunctioning extension. If you are unsure of how to resolve this, you will need to contact your hosting provider or a server administrator for help.

Link to comment
Share on other sites

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated