Welcome Guest ( Log In | Register )

 Forum Rules Extensions Support
 
Reply to this topicStart new topic
> Post By Email Curl Cron Job Not Working [solved]
Chris White
post Jul 17 2013, 08:11 AM
Post #1


Newbie
*

Group: Members
Posts: 7
Joined: 2-April 13
Member No.: 1,639



I have a problem with a cron job I have set up to import email into post by email.

I have a couple of sites that this works beautifully on. I use curl in the cron job under cpanel with Justhost.com.

On one site I have exactly the same setup but it will not work.

The curl command is: curl -sS "http://thetfordgolfclub.co.uk/administrator/components/com_post_by_email/cron.post_by_email.php" >> /dev/null

Just as in all the documentation. On my other sites I can put the http: part in a web browser and run it and it will show me the output. But for the thetfordgolfclub site it will not run. I get a blank screen with no processing at all.

If I run the import from the backend of joomla it runs and imports the emails to post by email.

Have you any idea what the problem might be. I have already uninstalled and reinstalled to no avail. I have also checked the permissions on the cron.post_by_email.php and they are set to 644 the same as my other installations.

Regards,

Chris White. sad.gif
Go to the top of the page
 
+Quote Post
Web Design Seo
post Jul 17 2013, 08:24 AM
Post #2


Web Design Seo
****

Group: Root Admin
Posts: 4,332
Joined: 29-April 09
From: Sofia
Member No.: 1



If you open manual url of cron job and cron is working, problem is not in component. Is supported curl or not is due only on your server configuration.

If curl not work, use php in this way:
Код
/usr/local/bin/php -q /relative path to host directory/public_html/administrator/components/com_post_by_email/cron.post_by_email.php >> /dev/null


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post
Chris White
post Jul 17 2013, 12:06 PM
Post #3


Newbie
*

Group: Members
Posts: 7
Joined: 2-April 13
Member No.: 1,639



The only way that I can get this to work is by going into the backend of joomla and to the Post by email component and clicking on the import icon. This then pulls the emails into joomla.

If I put the url into a browser nothing happens. It normally comes up with a message that says something like: 0 emails were processed (home) in 0 seconds. Or is that just with joomla version 3?

Regards,

Chris.

P.S. I will try the php cron job again.

I have put a info.php file in the same directory and that brings up the php config if you want to check my config.
Go to the top of the page
 
+Quote Post
Web Design Seo
post Jul 17 2013, 12:30 PM
Post #4


Web Design Seo
****

Group: Root Admin
Posts: 4,332
Joined: 29-April 09
From: Sofia
Member No.: 1



Switch on error reporting at max and open url again.


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post
Chris White
post Jul 17 2013, 12:33 PM
Post #5


Newbie
*

Group: Members
Posts: 7
Joined: 2-April 13
Member No.: 1,639



QUOTE (Web Design Seo @ Jul 17 2013, 01:30 PM) *
Switch on error reporting at max and open url again.


Having changed to php 5.4 and now using the php cron version it has started working!!!

Thanks for the rapid support. Sorry not to have been able to get the curl version to work as that is easier to see something happening.

Regards,

Chris.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Collapse

> Similar Topics

  Topic Replies Topic Starter Views Last Action
No new Cron Jobs Not Executing With Easycron After Updating
4 Kat 273,410 9th September 2021 - 06:41 PM
Last post by: Kat
No New Posts Cron Jobs Failing
1 Kat 62,321 29th July 2021 - 06:08 AM
Last post by: Web Design Seo
No new Pinned: Topic has attachmentsPost By Email Pro
Pro version of Post By Email component
116 Ivan Stamenov 630,492 24th March 2021 - 01:56 PM
Last post by: Web Design Seo
No New Posts Post By Email Pro - Cron Warnings
JROUTER_MODE warnings
3 Brian Craigie 124,164 12th March 2020 - 08:35 AM
Last post by: Web Design Seo
No New Posts Post By Email To K2 Images Not Resizing
1 bossies 127,191 31st May 2019 - 10:49 AM
Last post by: Web Design Seo
No New Posts Post By Email, Error 500
500 error on backend
1 galamarco 172,089 17th January 2019 - 06:29 AM
Last post by: Web Design Seo
No New Posts Cron Job Working But With Notices
1 Kat 48,959 5th May 2017 - 05:56 AM
Last post by: Web Design Seo
No New Posts Notepad++ New Line Replace
How to find and replace new line in Notepad++
0 Web Design Seo 84,133 8th December 2016 - 01:45 PM
Last post by: Web Design Seo
No new Post By Email Not Working Since Joomla 3.5.0 Update [solved]
5 tompuchner 135,055 2nd May 2016 - 07:04 AM
Last post by: Web Design Seo
No New Posts Post By Email Using Mms On A Mobile Phone
1 alexilio 122,503 13th April 2016 - 09:44 AM
Last post by: Web Design Seo


 



RSS Lo-Fi Version Time is now: 1st June 2026 - 11:11 PM