When my cron job runs, I will get the following message...
X-Powered-By: PHP/5.2.6
Content-type: text/html
Is this what I should be receiving if it is running correctly?
The reason I ask is because mass mail is stuck in the queue and will not go out. Trying to find the problem...
|
Wow, no repsonse. Is that because nobody seems to be able to get cron jobs to run?
|
Wow, no repsonse. Is that because nobody seems to be able to get cron jobs to run?
My cron jobs didn't work at first (they gave an error about an outdated PHP version), so I had to experiment a little. It turned out that my cron jobs were running under PHP 4 (multiple versions on the server), so I had to set the cron job to run as PHP 5. This got everything working correctly.
If mass mail is stuck in que, then that means the cron job is most definitely not working correctly (edit: see bottom). Try changing the script to the following:
/path/to/php -q /home/whatever/public_html/dolphindirectory/periodic/cron.php - of course, you must edit this accordingly to match your server information.
Also read up, or ask your web host on how cron jobs should be run on your server. For example, my cron job ended up having to run as: php5 /path/to/dolphin/periodic/cron.php - but, this is for Media Temple, and I don't know if others have this kind of setup. I found out after reading a recent KnowledgeBase article from them.
Edit: http://www.boonex.com/unity/forums/?action=goto&topic_id=Mass-Mailer-again-
Seems mass mailer might not be even working, so I can't even back what I've said.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Check to make sure your cron job line contains -q after the php.
/usr/bin/php -q
Or
/usr/bin/php5 -q
The -q switch tells php to supress that output.
https://www.deanbassett.com |
Deano - The -q isn't working for me that I know of, so i'm using the > /dev/null that either you or DosDawg advised in the RC thread when you were helping me out there.
But that's not the problem, so maybe I need to re-phrase the question...
When I'm NOT supressing that output, what message should be sent to me when the cron runs?
My web host helped get the correct command path set up, and I get a message each time the cron runs, but all the message has in it is:
X-Powered-By: PHP/5.2.6
Content-type: text/html
So my question is... is that the message the cron is supposed to send to me?
My mass mails are not being sent, and according to my host, my paths for the cron are correct. Since I have no idea what kind of message it is supposed to send me, I don't know if the setup is actually working or not. Obviously if my mass mails are not going out, it's not correct. So where is that message coming from?
Confused?
|
The powered by message is normal when a php file is run from the command line. The -q option supresses that ouput. So if the cron is running with out it, those messages would be normal. When cron runs you should not see anything unless something is wrong. But the /dev/null thing may also be dumping your error messages as well, so i did not tell you to use that.
As for why it's not working i can't tell you. You host has the weirdest and if i might say, the most confusing setup i have ever seen. I can't even begin to figure it out let alone tell you how to fix it.
https://www.deanbassett.com |
IX Webhosting has their own control panel and way of doing things. I did manage to get the messages to go out once yesterday, but I was just tinkering and don't know what I did to make it happen. I was also just executing the cron.php manually, but doing that today results in nothing, so maybe that wasn't it.
What else does the cron do besides send mass emails and process videos? I can do without mass email, and I may never add the video options. In case I give up, I don't want to miss out on anything important it does.
|
Cron does quite a bit.
Video Processing. Mail Messages.
And all the database pruning options as set in admin.
Old profiles Old Messages Old views Old greetings
https://www.deanbassett.com |
I did some playing around with your suggestions you've made to others, and i got the message queue to empty, but nobody received any messages. My results email said:
No recipient addresses found in header
X-Powered-By: PHP/5.2.6
Content-type: text/html
Just when you think you get ahead, something else goes wrong.
|
I did some playing around with your suggestions you've made to others, and i got the message queue to empty, but nobody received any messages. My results email said:
No recipient addresses found in header
X-Powered-By: PHP/5.2.6
Content-type: text/html
Just when you think you get ahead, something else goes wrong.
if you are saying nobody received any messages then i would be looking at this migration aspect. was your mass mailer working on D6?
did you take a look at this post i put up on a similar question?
http://www.boonex.com/unity/forums/?action=goto&topic_id=trying-to-use-other-template#topic/Mass-Mailer-again-.htm
and sorry about the ugly url dont know what is going on with that.
deano, magnus, zar(g)con, md, caltrade, mrp, anybody else getting ugly URLS from this forum?
Regards, DosDawg
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
https://www.deanbassett.com |
This is a clean install of D7. I wasn't running any previous version. Mail did get sent once yesterday, but I was playing around with suggestions given to others with problems. Only problem is I was trying so many different commands I have no idea which expirement worked! |
yeah look at how screwed up that URL is?
Regards,
DosDawg
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
I saw that earlier. Emails are in the database. When the cron I got working ran, the queue showed empty and the database was empty to. The emails never arrived and I got the No recipient addresses found in header error.
|
yeah look at how screwed up that URL is?
Regards,
DosDawg
URL looks normal to me...
|
yeah look at how screwed up that URL is?
Regards,
DosDawg
URL looks normal to me...
I think he was referring to how it has links to two different topics. One of the many anomalies of Orca, such as why it doesn't have sub-categories and why it has real-time views on the front page, but not in the actual topic pages.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
I saw that earlier. Emails are in the database. When the cron I got working ran, the queue showed empty and the database was empty to. The emails never arrived and I got the No recipient addresses found in header error.
well i got that error message as well, but as you see the email was delivered. one thing is strange and you may want to try it and then test your mass mailer again. i have not evidence that it went to the profiles that were imported on the migration. but you state you never used any other version. so very well could be an issue with the mass mailer, because as stated i got the same error message, checked the database and all members have an email address. but also, as stated and shown the mail was delivered.
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
I wonder if the way i'm calling the cron is making a difference?
My host said this should work:
cd /hsphere/local/home/xxx/yyy.net/h/periodic; /hsphere/local/home/xxx/yyy.net/cgi-bin/php5-custom-ini.cgi -q cron.php
But nothing happens with it.
I'm using this now:
/hsphere/shared/php5/bin/php-cgi -c /hsphere/local/home/xxx/yyy.net/cgi-bin/php.ini /hsphere/local/home/xxx/yyy.net/h/periodic/cron.php
and thats what is working to empty the queue without the email being received.
|
I wonder if the way i'm calling the cron is making a difference?
My host said this should work:
cd /hsphere/local/home/xxx/yyy.net/h/periodic; /hsphere/local/home/xxx/yyy.net/cgi-bin/php5-custom-ini.cgi -q cron.php
But nothing happens with it.
I'm using this now:
/hsphere/shared/php5/bin/php-cgi -c /hsphere/local/home/xxx/yyy.net/cgi-bin/php.ini /hsphere/local/home/xxx/yyy.net/h/periodic/cron.php
and thats what is working to empty the queue without the email being received.
are your video and audio files working with the new command from your host ?
https://dolphin-techs.com - Skype: Dolphin Techs |
I'm not using audio or video yet so that's not set up.
|
So now I just received one of my test messages 54 minutes later. Isn't shared hostng wonderful?
|
So now I just received one of my test messages 54 minutes later. Isn't shared hostng wonderful?
You get what you paid for?
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
So now I just received one of my test messages 54 minutes later. Isn't shared hostng wonderful?
You get what you paid for?
Thats for sure. Besides trying to get this cron to work, my only other major compaint about them is that the servers are slow. Maybe it's time to consider changing.
|
If I run the cron from the browser, should it run? My host tried it and is now blaming Dolphin as the reason it's not working.
|