Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Cron_job : newsletter_send_all error (Zend ?)
 
pastanislas
Member
 
Total Posts:  46
Joined:  2008-07-29
 

Hello,
I’m on v1.1.3
I have set cron.php to my crontab.
I get an error in cron_schedule mysql table when job newsletter_send_all is called (see attached image)

NoticeUndefined index:  SCRIPT_NAME  in /homepages/46/d252641308/htdocs/lib/Zend/Controller/Request/Http.php on line 404

it seems that it’s related to an URI problem but I’m not an expert.
I’m hosted on 1and1 shared hosting and in function setBaseUrl($baseUrl = null) there seems to be a special line for this:

$baseUrl $_SERVER['ORIG_SCRIPT_NAME']// 1and1 shared hosting compatibility

When there was no magento newsletter queue the job was marked as succes (schedule_id 147 on screencap)

Don’t know if this is related but I’m using mod_rewrite and gzip compression

Anyway my newsletter queue won’t send…

Help will be very appreciated.
Thank you smile

Image Attachments
mysql.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
pastanislas
Member
 
Total Posts:  46
Joined:  2008-07-29
 

anyone please ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiaraweb
Guru
 
Avatar
Total Posts:  721
Joined:  2008-03-21
Aviano ~ Italy
 

Hi

can you post here the cronjob you run?

Is it an absolute path?

I’ve seen your attachment… but for example entries no.  160 and 161 seem to be the same instruction in the same moment… in my table I have only 1 instruction x minute… are you sure that cron doesn’t launch the same instruction in the same moment 2 times?

The first instruction seems to go fine, the second not

 
Magento Community Magento Community
Magento Community
Magento Community
 
pastanislas
Member
 
Total Posts:  46
Joined:  2008-07-29
 

HI Chiara thanks for reply.

Here’s is my crontab :

MAILTO=me@gmail.com
*/* * * * /usr/local/bin/php5 -/kunden/homepages/46/d252641308/htdocs/cron.php

But I think you’re right, It might come from here as when I launch cron.php from my browser, newsletters are send !

I do not understand cause the cron job seem to do what it is meant to do, update cron_schedule in my database.

Another thing I have notice is that now i’ve got only two different job in cron_schedule table : newsletter_send_all and every_10_minutes. No more catalogue_rule_apply_all.

I’m really lost with it...thanks for helping.

Image Attachments
capsql2.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
chiaraweb
Guru
 
Avatar
Total Posts:  721
Joined:  2008-03-21
Aviano ~ Italy
 

Hi

take a look into this file

/shop/app/code/core/Mage/Newsletter/etc/config.xml

at the bottom you have the cronjob of newsletter

I have this code:

<newsletter_send_all>
                <
schedule><cron_expr>*/* * * *</cron_expr></schedule>
                <
run><model>newsletter/observer::scheduledSend</model></run>
            </
newsletter_send_all>
        </
jobs>
    </
crontab>
</
config>

and you?

my server cronjob run every 5 minutes

 
Magento Community Magento Community
Magento Community
Magento Community
 
Lenny2
Sr. Member
 
Total Posts:  171
Joined:  2008-05-21
München
 

Hi,
I have the same problem - I also receive the following error message:
Warnungen: Notice: Undefined index: SCRIPT_NAME in /homepages/17/d215778145/htdocs/eshop/lib/Zend/Controller/Request/Http.php on line 404
But here it seems to be from the PRICEALERT.

Magento is as well running on 1and1 (DE) Shared Hosting (Bussiness Pro).

Any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top