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

Alert Price & Stock Problem
 
Mageho
Sr. Member
 
Avatar
Total Posts:  291
Joined:  2008-03-24
France, Paris
 

Good morning,

I hope one day I won’t have one error in my store.
Efectly, now my alert cron doesn’t work properly.

This is the error email :

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent in /home/artbambo/www/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 89

Regards,
Ilan

------------------------------------------------------------------------------------------------------------------------------------------------------

Also, I want to notice you, we have a little problem with varien lib :

Notice: Undefined index: SCRIPT_NAME in /home/artbambo/www/lib/Zend/Controller/Request/Http.php on line 404 Notice: Undefined index: SCRIPT_NAME

You have to put a isset to resolve this.

And i don’t understand why varien don’t still modify Varien_Data_Collection.
When you call same products in two differents modules, you meet this error:

Item (’.get_class($item).’) with the same id “‘.$item->getId().’” already exist

/**
* Adding item to item array
*
* @param Varien_Object $item
* @return Varien_Data_Collection
*/
public function addItem(Varien_Object $item)
{
$itemId = $this->_getItemId($item);
if (!is_null($itemId)) {
if (isset($this->_items[$itemId])) {
// throw new Exception(’Item (’.get_class($item).’) with the same id “‘.$item->getId().’” already exist’);
}
$this->_items[$itemId] = $item;
}
else {
$this->_items[] = $item;
}
return $this;
}

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mageho
Sr. Member
 
Avatar
Total Posts:  291
Joined:  2008-03-24
France, Paris
 

Nobody for help ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
redpen
Sr. Member
 
Total Posts:  254
Joined:  2008-01-23
 
ryu007 - 24 November 2008 11:42 AM

This is the error email :


Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent in /home/artbambo/www/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 89

Regards,
Ilan

------------------------------------------------------------------------------------------------------------------------------------------------------

Also, I want to notice you, we have a little problem with varien lib :

Notice: Undefined index: SCRIPT_NAME in /home/artbambo/www/lib/Zend/Controller/Request/Http.php on line 404 Notice: Undefined index: SCRIPT_NAME

Same problems here.  Cron jobs no longer run.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mageho
Sr. Member
 
Avatar
Total Posts:  291
Joined:  2008-03-24
France, Paris
 

Nobody for this essential functionality ?
This session start error could come from a whitespace in my email template or is somewhat else ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
BoostMyShop
Sr. Member
 
Avatar
Total Posts:  155
Joined:  2008-06-11
France
 

Hello,

to solve the ‘script_name’ error, you just have to change cron.php:

Add
“$_SERVER[’SCRIPT_NAME’] = ‘index.php’;” after “$_SERVER[’SCRIPT_FILENAME’] = ‘index.php’;”

 
Magento Community Magento Community
Magento Community
Magento Community
 
Leo27
Sr. Member
 
Total Posts:  127
Joined:  2008-10-08
 

Hey Ryu007,
I’m having the same problem with product alerts, getting:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent in /home/---/---/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 79

How did you solved this?

Best regards,
L. Nunes

 
Magento Community Magento Community
Magento Community
Magento Community
 
Adjustware
Guru
 
Avatar
Total Posts:  654
Joined:  2009-05-11
 

Looks like the newest magento version has this bug fixed

 
Magento Community Magento Community
Magento Community
Magento Community
 
Leo27
Sr. Member
 
Total Posts:  127
Joined:  2008-10-08
 

Hi there,
I’m still getting the same error:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent in /home/---/---/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 79 .

I’m running version 1.1.6. , and I would really like some help on this please, I can the solution is easy, but I don’t have it.

Best regards,
L. Nunes

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