Welcome Guest ( Log In | Register )

 Forum Rules Extensions Support
 
Reply to this topicStart new topic
> Post By Email: Windows Cron
Reggie
post May 21 2012, 09:26 PM
Post #1


Newbie
*

Group: Members
Posts: 8
Joined: 10-May 12
Member No.: 1,189



I was pretty excited after having the extension work through the GUI but when I tried to schedule the cron I get all kinds of errors:

CODE
C:\wamp\bin\php\php5.3.10>php -f "c:\wamp\docs\administrator\components\com_post
_by_email\cron.post_by_email.php"


CODE
C:\wamp\bin\php\php5.3.10>php -f "c:\wamp\docs\administrator\components\com_post
_by_email\cron.post_by_email.php"
PHP Notice:  Undefined index: HTTP_HOST in C:\wamp\docs\libraries\joomla\environ
ment\uri.php on line 182
PHP Stack trace:
PHP   1. {main}() C:\wamp\docs\administrator\components\com_post_by_email\cron.p
ost_by_email.php:0
PHP   2. JSite->initialise() C:\wamp\docs\administrator\components\com_post_by_e
mail\cron.post_by_email.php:22
PHP   3. JApplication->initialise() C:\wamp\docs\includes\application.php:117
PHP   4. JPluginHelper::importPlugin() C:\wamp\docs\libraries\joomla\application
\application.php:257
PHP   5. JPluginHelper::_import() C:\wamp\docs\libraries\joomla\plugin\helper.ph
p:125
PHP   6. plgSystemKunena->__construct() C:\wamp\docs\libraries\joomla\plugin\hel
per.php:194
PHP   7. require_once() C:\wamp\docs\plugins\system\kunena\kunena.php:28
PHP   8. JURI::root() C:\wamp\docs\administrator\components\com_kunena\api.php:3
0
PHP   9. JURI::base() C:\wamp\docs\libraries\joomla\environment\uri.php:271
PHP  10. JURI::getInstance() C:\wamp\docs\libraries\joomla\environment\uri.php:2
32

Notice: Undefined index: HTTP_HOST in C:\wamp\docs\libraries\joomla\environment\
uri.php on line 182

Call Stack:
    0.0005     642496   1. {main}() C:\wamp\docs\administrator\components\com_po
st_by_email\cron.post_by_email.php:0
    0.0893    6322512   2. JSite->initialise() C:\wamp\docs\administrator\compon
ents\com_post_by_email\cron.post_by_email.php:22
    0.1198    8030520   3. JApplication->initialise() C:\wamp\docs\includes\appl
ication.php:117
    0.1202    8030768   4. JPluginHelper::importPlugin() C:\wamp\docs\libraries\
joomla\application\application.php:257
    0.1369    8653896   5. JPluginHelper::_import() C:\wamp\docs\libraries\jooml
a\plugin\helper.php:125
    0.1378    8687912   6. plgSystemKunena->__construct() C:\wamp\docs\libraries
\joomla\plugin\helper.php:194
    0.1412    8752208   7. require_once('C:\wamp\docs\administrator\components\c
om_kunena\api.php') C:\wamp\docs\plugins\system\kunena\kunena.php:28
    0.1429    8944800   8. JURI::root() C:\wamp\docs\administrator\components\co
m_kunena\api.php:30
    0.1429    8945104   9. JURI::base() C:\wamp\docs\libraries\joomla\environmen
t\uri.php:271
    0.1429    8945200  10. JURI::getInstance() C:\wamp\docs\libraries\joomla\env
ironment\uri.php:232

PHP Warning:  Invalid argument supplied for foreach() in C:\wamp\docs\libraries\
joomla\string\string.php on line 970
PHP Stack trace:
PHP   1. {main}() C:\wamp\docs\administrator\components\com_post_by_email\cron.p
ost_by_email.php:0
PHP   2. JSite->initialise() C:\wamp\docs\administrator\components\com_post_by_e
mail\cron.post_by_email.php:22
PHP   3. JApplication->initialise() C:\wamp\docs\includes\application.php:117
PHP   4. JPluginHelper::importPlugin() C:\wamp\docs\libraries\joomla\application
\application.php:257
PHP   5. JPluginHelper::_import() C:\wamp\docs\libraries\joomla\plugin\helper.ph
p:125
PHP   6. plgSystemKunena->__construct() C:\wamp\docs\libraries\joomla\plugin\hel
per.php:194
PHP   7. require_once() C:\wamp\docs\plugins\system\kunena\kunena.php:28
PHP   8. JURI::root() C:\wamp\docs\administrator\components\com_kunena\api.php:3
0
PHP   9. JURI::base() C:\wamp\docs\libraries\joomla\environment\uri.php:271
PHP  10. JURI::getInstance() C:\wamp\docs\libraries\joomla\environment\uri.php:2
32
PHP  11. JURI->__construct() C:\wamp\docs\libraries\joomla\environment\uri.php:1
98
PHP  12. JURI->parse() C:\wamp\docs\libraries\joomla\environment\uri.php:121
PHP  13. JString::parse_url() C:\wamp\docs\libraries\joomla\environment\uri.php:
339

Warning: Invalid argument supplied for foreach() in C:\wamp\docs\libraries\jooml
a\string\string.php on line 970

Call Stack:
    0.0005     642496   1. {main}() C:\wamp\docs\administrator\components\com_po
st_by_email\cron.post_by_email.php:0
    0.0893    6322512   2. JSite->initialise() C:\wamp\docs\administrator\compon
ents\com_post_by_email\cron.post_by_email.php:22
    0.1198    8030520   3. JApplication->initialise() C:\wamp\docs\includes\appl
ication.php:117
    0.1202    8030768   4. JPluginHelper::importPlugin() C:\wamp\docs\libraries\
joomla\application\application.php:257
    0.1369    8653896   5. JPluginHelper::_import() C:\wamp\docs\libraries\jooml
a\plugin\helper.php:125
    0.1378    8687912   6. plgSystemKunena->__construct() C:\wamp\docs\libraries
\joomla\plugin\helper.php:194
    0.1412    8752208   7. require_once('C:\wamp\docs\administrator\components\c
om_kunena\api.php') C:\wamp\docs\plugins\system\kunena\kunena.php:28
    0.1429    8944800   8. JURI::root() C:\wamp\docs\administrator\components\co
m_kunena\api.php:30
    0.1429    8945104   9. JURI::base() C:\wamp\docs\libraries\joomla\environmen
t\uri.php:271
    0.1429    8945200  10. JURI::getInstance() C:\wamp\docs\libraries\joomla\env
ironment\uri.php:232
    0.1518    8946856  11. JURI->__construct() C:\wamp\docs\libraries\joomla\env
ironment\uri.php:198
    0.1518    8946856  12. JURI->parse() C:\wamp\docs\libraries\joomla\environme
nt\uri.php:121
    0.1563    9179136  13. JString::parse_url() C:\wamp\docs\libraries\joomla\en
vironment\uri.php:339

xajax Error: xajax failed to automatically identify your Request URI.Please set
the Request URI explicitly when you instantiate the xajax object.


Please don't tell me the scheduling will not work under windows!!!

Go to the top of the page
 
+Quote Post
Web Design Seo
post May 22 2012, 02:19 PM
Post #2


Web Design Seo
****

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



You must configure your server and you must open files from server. You trying to start script local. We cant configure your wamp server, joomla work not so well on such servers. We are not server administrators and our support can't help you.


--------------------
Правила на форума | 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
Reggie
post May 23 2012, 04:05 AM
Post #3


Newbie
*

Group: Members
Posts: 8
Joined: 10-May 12
Member No.: 1,189



QUOTE (Web Design Seo @ May 22 2012, 10:19 AM) *
You must configure your server and you must open files from server. You trying to start script local. We cant configure your wamp server, joomla work not so well on such servers. We are not server administrators and our support can't help you.


Well my friend, that's a disclaimer you should have put in your product that "it's only tested on linux based installation". In addition it's running locally from the server Command Line Interface.

HOWEVER, and despite I purchased the commercial version I'm really grateful for a great extension you created so far and I will share with your community my workaround to this issue...

1- Make sure you enable the php_curl extension through php.ini
2- Create a simple php file to use the curl extension like this one, curl.php:
CODE
<?php


$ch = curl_init();

curl_setopt ($ch, CURLOPT_URL, "http://<your-domain>/administrator/components/com_post_by_email/cron.post_by_email.php");
curl_setopt ($ch, CURLOPT_HEADER, 0);

curl_exec ($ch);

curl_close ($ch);
?>

3-Now launch the import from the windows CLI or batch, and point to the php.ini file used by Apache:
CODE
C:\wamp\bin\php\php5.3.10>php -c "C:\wamp\bin\apache\Apache2.2.21\bin\php.ini" -f curl.php


And also make sure you modify the cron.post_by_email.php code to update with your credentials and comment the original $controller variable definition.

Hope it helps all the other windows users for which "joomla work not so well on such servers" !

Thanks!

This post has been edited by Reggie: May 23 2012, 04:19 AM
Go to the top of the page
 
+Quote Post
Web Design Seo
post May 23 2012, 06:44 AM
Post #4


Web Design Seo
****

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



Reggie, thank you for tip!

As i say - we are not server admins. We have hundreds of users that use our extensions and we can't make free support in any complicated case. In our tos (written on Nov 20 2010) is described:

Цитат
Other servers:
In many cases extensions will work on Microsoft servers, IIS and other server types but We dont guarantee this.


--------------------
Правила на форума | 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

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,518 9th September 2021 - 06:41 PM
Last post by: Kat
No New Posts Cron Jobs Failing
1 Kat 62,345 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 631,036 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,203 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,235 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,117 17th January 2019 - 06:29 AM
Last post by: Web Design Seo
No New Posts Cron Job Working But With Notices
1 Kat 48,984 5th May 2017 - 05:56 AM
Last post by: Web Design Seo
No new Post By Email Not Working Since Joomla 3.5.0 Update [solved]
5 tompuchner 135,100 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,530 13th April 2016 - 09:44 AM
Last post by: Web Design Seo
No New Posts Post By Email Jomsocial - Unable To Post To Wall
3 uglykidjoe 96,443 11th February 2016 - 07:25 AM
Last post by: Web Design Seo


 



RSS Lo-Fi Version Time is now: 2nd June 2026 - 03:40 AM